Orchestration
Planning & re-planning
How a goal becomes a phased plan, and what re-plans it.
The planning agent (Claude API + plan templates) turns a described goal into a structured plan. Backed by PlanConversation + PlanMessage (kinds: proposal, question, follow-up, clarification) and a proposed_plan_json.
-
1
Open plan chat
/projects/{p}/plans/createDescribe the goal in Studio.
-
2
Architect run proposes
POST /cli-runs/{uuid}/plan-proposalA planning agent run posts a proposal.
-
3
Proposal parsed
ProposalParser builds Plan → Phases → Tasks.
-
4
Review & edit
/plans/{plan}/editAdjust phases and tasks in the plan editor.
-
5
Activate
bootstrap_epicPlan → active; the epic branch is pinned and bootstrapped, then level-0 tasks dispatch.
- Loops back until the verdict is approved
Plan lifecycle
Plans move through draft → active → completed → archived, with paused and cancelled as side states. Only an active plan is dispatchable: pausing halts new dispatch, auto-review and merge until resumed; cancelling abandons it; completing/archiving requires every task terminal. See the Epic & release page for what active triggers on the git side.
-
1
Trigger
MAESTRO:SUBTASK{...}A plan edit, a scope change, or an executing agent emitting a subtask directive.
-
2
Re-run / subtask
POST /cli-runs/{uuid}/subtaskArchitect re-run or a routed child task is created.
-
3
Plan updated
New or changed phases and tasks; affected tasks re-dispatched.
- Loops back until the verdict is approved