Skip to content

Add configuration hierarchy for automated workflows#759

Draft
danimcgoo wants to merge 4 commits into
preset-io:mainfrom
danimcgoo:test-permission-config
Draft

Add configuration hierarchy for automated workflows#759
danimcgoo wants to merge 4 commits into
preset-io:mainfrom
danimcgoo:test-permission-config

Conversation

@danimcgoo
Copy link
Copy Markdown
Contributor

Summary

Enables Agor Assistants to create multi-stage workflows where different zones use different models (Opus for research, Sonnet for implementation).

Two complementary features:

  1. Zone Trigger Model Config: Zone-specific model selection for automated sessions

    • Research zones automatically use Opus (deep thinking)
    • Implementation zones automatically use Sonnet (fast iteration)
  2. Worktree Default Config: Worktree-level defaults for user-created sessions

    • Assistants can set default configs for worktrees they create
    • Users can override when manually creating sessions

Unified configuration hierarchy clearly defines precedence for automated vs manual session creation.

Changes

  • Single design document: specs/DESIGN.md
  • Complete implementation plan with types, backend, UI, and testing
  • Security model with ownership checks and user override
  • Phased rollout strategy (zone config first, worktree defaults second)

Test Plan

  • Review design document for completeness
  • Validate configuration hierarchy makes sense
  • Check security model is sound
  • Confirm UI design is clear
  • Ready for implementation phase

🤖 Generated with Claude Code

danimcgoo and others added 4 commits March 7, 2026 16:20
…pecs

Conducted full design review of worktree permission config and zone model
config specifications. Key findings:

Critical Issues:
- No unified configuration hierarchy between worktree defaults and zone triggers
- Missing product reasoning for features
- Security concerns with worktree-level permission defaults

Recommendation: REVISE both specs with unified hierarchy, product justification,
and enhanced security model. Consider phased rollout (zone model config first).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace three separate specs with one clear design document covering:
- Product reasoning: Assistant workflows with zone-based model selection
- Unified configuration hierarchy for automated vs manual session creation
- Zone trigger model config (for automated workflows)
- Worktree default config (for user sessions)
- Security model, UI design, implementation plan

Addresses all design review findings with focus on purpose and outcome.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removed worktree permission defaults feature - out of scope for this PR.

Changes:
- Focus exclusively on zone trigger model config (the actual use case)
- Remove security model section (not applicable - model config only)
- Update UI design to reuse existing ModelSelector component
- Simplify configuration hierarchy (zone → recent session → user → SDK)
- Remove worktree-related items from implementation checklist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
More descriptive filename that clearly indicates the feature scope.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@danimcgoo
Copy link
Copy Markdown
Contributor Author

@mistercrunch, also curious for your feedback on this one. Seeking to optimise compute by allowing zones to use specific models.

A key question: Should zone triggers apply to session reuse, as well as auto new session? Currently I've said no - but am unsure - as there's a good argument for it to apply to both. Probably better UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant