Grilling
Orchestrator Phase Grill Status
Topic: orchestrator-phase, a new HI phase skill for one long-lived AFK
Orchestrator thread that runs dependent Tracks across repositories from a home
repository. Decisions: grill log. Input:
brainstorm brief.
| Branch | Completion | Target altitude | Settled altitude | Locked direction | Open items | Parked |
|---|
| Entry and routing | 100% | L3 | L3 (R6: Q49, Q52) | Orchestrator-first; adopt; Charter autonomous; loop Intake…Settle; track-brief.md | — | — |
| Going solo | 100% | L3 | L3 (R6: Q49) | Cross-dependent big scopes orchestrate, else go solo; solo and reopen gates | — | — |
| Track lifecycle | 100% | L3 | L3 (R6: Q57) | Start check 2 min; delivery once; verify before merge and after deploy; delivery and requirements phases report to the Orchestrator | — | — |
| Gates and decisions | 100% | L3 | L3 (R6: Q51) | Human Gates in the Charter; relayed go checked | — | — |
| Orchestrator turns | 100% | L3 | L3 (R6: Q49) | listen gate: one event, Ledger, act or delegate, end turn | — | — |
| Durable state | 100% | L3 | L3 (R6: Q50, Q51) | ledger.md and charter.md schemas in references | — | — |
| Integration topology | 100% | L3 | L3 (R6: Q49) | merge gate: reported commit, squash, optional integration branch, rebase, restack | — | — |
| Reports | 100% | L3 | L3 (R6: Q53) | report.md | — | — |
| Packaging and guardrails | 100% | L3 | L3 (R6: Q54–Q56) | hosts.md; graph contract test; planning Pack | — | — |
- Brief import:
apps/wiki/content/docs/project/grilling/orchestrator-phase-brainstorm-brief.md sha256 6c0daef00261f3f0b71f4ddfc41670ce3ccbcd00e9a21ee3d4837370da1ebbd5 R0
- Fog: not supplied
- Altitude upgrade: not needed
- Auto-pin: not authorized
- Conservative closure: not requested
- Compile gaps: none
- Round: R6
- Altitude: L3
- Current frontier: empty
- Shared-understanding confirmation: confirmed
- Closure: closed R6
| Question id | Name | Branch | Altitude | Prerequisites | Question | State |
|---|
| Q49 | Skill file layout and gate set | Packaging and guardrails | L3 | Q9, Q45, Q46 | Which files and gates make up skills/phases/orchestrator-phase/? | answered |
| Q50 | Ledger schema | Durable state | L3 | Q23, Q40 | Which sections and fields does ledger.md hold? | answered |
| Q51 | Charter schema | Durable state | L3 | Q23, Q44, Q46 | Which sections and fields does charter.md hold? | answered |
| Q52 | Track brief template | Entry and routing | L3 | Q39 | Where does the brief template live and what is its exact shape? | answered |
| Q53 | Report template | Reports | L3 | Q13, Q40 | Where does the report template live and what is its exact shape? | answered |
| Q54 | Host binding reference | Packaging and guardrails | L3 | Q46 | What is the host binding file called and what shape does it take? | answered |
| Q55 | Graph contract test | Packaging and guardrails | L3 | Q49 | Which test validates the skill structure? | answered |
| Q56 | Catalog registration | Packaging and guardrails | L3 | Q41 | Which catalog entries register the skill? | answered |
| Q57 | Changes to existing phases | Track lifecycle | L3 | Q24, Q39 | Which existing skills change so a Track reports to its Orchestrator? | answered |
- grilling: R1 run — Q14, Q15, Q16, Q17, Q18, Q19, Q20, Q21, Q22
- wait-what: R1 run
- show-me: R1 run — Track lifecycle with Human Gates via html_render
- domain-modeling: R1 run — Orchestrator confirmed; Human Gate refined; Solo Thread flagged (Q29)
- flow-lenses: R1 run — relayed quote check -> Q35 (lens 1); merge on a moving head -> Q36 (lens 5); duplicate delivery start -> Q37 (lens 6); verification owner -> Q38 (lens 10); going solo with live Tracks -> Q31 (lens 9); hold persisted as Track
parked (lens 8, resolved by Q21 and Q4)
- expand: R1 run — Q29, Q30, Q32, Q33 (going solo), Q34 (vault writes)
- level derivation: R1 run — Entry and routing L2: Q39; Reports L2: Q40; Packaging L2: Q41; Track lifecycle L2: Q37, Q38
- grilling: R2 run — Q29, Q30, Q31, Q32, Q33, Q34
- wait-what: R2 run
- show-me: R2 run — Orchestrator loop and the go-solo transition via html_render
- domain-modeling: R2 run — go solo, Solo Thread pinned; loop step names flagged as unclear by the user (Q45)
- flow-lenses: R2 run — Solo Thread reopening hands its own work to another thread -> Q43 (lens 9); Charter written without human sight -> Q44 (lens 3); size versus scope rule -> Q42 (lens 1)
- expand: R2 run — Q42, Q44, Q45
- level derivation: R2 run — Going solo L2: Q43 (L1 not yet settled; derived early from the human's handoff instruction)
- grilling: R3 run — Q42, Q44, Q45
- wait-what: R3 run
- show-me: R3 run — Orchestrator loop step table via markdown
- domain-modeling: R3 run — loop step names pinned (Intake, Charter, Split, Spawn, Listen, Merge, Ship, Verify, Settle)
- flow-lenses: R3 run — none (Charter changes update in place, covered by Q44; size judged by the Orchestrator as an Autonomous Decision at intake)
- expand: R3 run — none
- level derivation: R3 run — all branches settled at L1; L2 frontier already derived (Q23, Q25, Q27, Q28, Q35–Q41, Q43)
- grilling: R4 run — Q23, Q25, Q27, Q28, Q35, Q36, Q37, Q38, Q39, Q40, Q41, Q43
- wait-what: R4 run
- show-me: R4 run — threads, files and message paths via html_render
- domain-modeling: R4 run — no term change; agnostic direction recorded: roles bound per run in the Charter
- flow-lenses: R4 run — integration rebase leaves Track branches on the old base -> Q47 (lens 9); integration decision timing -> Q48 (lens 2); host tools named in the skill break agnosticism -> Q46 (lens 1)
- expand: R4 run — Q46, Q47, Q48
- level derivation: R4 run — L3: Q49–Q57
- grilling: R5 run — Q46, Q47, Q48
- wait-what: R5 run
- show-me: R5 run — capability table via markdown
- domain-modeling: R5 run — Capability and Host binding added
- flow-lenses: R5 run — a host missing a non-core capability (for example PR watching): resolved by evidence, the Orchestrator falls back to checking at Listen events; recorded in Q54's scope
- expand: R5 run — none
- level derivation: R5 run — all branches settled at L2; L3 frontier Q49–Q57 (derived R4)
- grilling: R6 run — Q49, Q50, Q51, Q52, Q53, Q54, Q55, Q56, Q57
- wait-what: R6 run
- show-me: R6 run — module tree of
skills/phases/orchestrator-phase/ via markdown
- domain-modeling: R6 run — no term change
- flow-lenses: R6 run — none (module decisions only; flows unchanged)
- expand: R6 run — none ("agree all")
- level derivation: R6 run — not due (all branches at Target Altitude L3)
- domain-modeling: run — glossary final (no change at close)
- show-me: run — module tree of the accepted skill via markdown (R6)
- wiki synthesis: run — project wiki page on the Orchestrator pattern (docs-ingest, same change)
| Branch | Evidence anchors | Applicable dimensions | Open technical decisions | Grounding |
|---|
| Entry and routing | existing: apps/cli/skills/phases/requirements-phase/SKILL.md:14-31 (entry modes), :129-132 (Requirements result); apps/cli/skills/agnostic/cli/ask-hi/references/phase-graph.md:23-34 (explicit-only phases start by typed command; agents read SKILL.md directly) | invocation, handoff | Q14, Q21 | grounded |
| Track lifecycle | existing: t3_thread_transfer fork keeps source history and project; t3_thread_launch starts with only its brief, returns status:"preparing"; child messages arrive as user turns prefixed [T3 Code: the agent in T3 thread … sent this message, not the user.]; launch failure seen as Workspace preparation failed during provision worktree with no signal to the sender (transcript 2026-11-25T22:26) | topology, messaging, liveness | Q19, Q28 | grounded |
| Gates and decisions | existing: apps/cli/skills/phases/delivery-phase/SKILL.md:24-55 (AFK, Autonomous Decision, out-of-bounds message); delivery-phase/phases/closeout.md:47,115 ("Delivery never merges; the human merges."); goalify/SKILL.md:17-35 | authority, approvals | Q15–Q18, Q20, Q22 | grounded |
| Orchestrator turns | existing: delegate_task completion "wakes this thread"; from ci-home, delegate_task with projectId fails "A local task runs in this thread's project"; worktree isolation fails "Unable to resolve the parent checkout commit" (ci-home is not a git repository) | runtime, project scope | Q27 | grounded |
| Durable state | existing: ~/repos/ci-home/.goals/2026-11-23-monday.md (goal, objective, context, workflow, proof, stop); ~/repos/ci-home/.goals/deploy-guard.sh (fails closed since 2026-11-20; per-target checks); ci-home is not a git repository | persistence | Q23 | grounded |
| Integration topology | existing: #762 prep branch release/harness-engine-main = integration branch + git merge origin/main, squash-merged to main as b4a3ed00ffa1905020d8742e220ba7620a3924cd | git topology | Q24, Q25 | grounded |
| Reports | existing: .agents/skills/wait-what/SKILL.md (names, not codes) | copy | Q22 | grounded |
| Packaging and guardrails | existing: skills/phases/delivery-phase/ and skills/phases/design-phase/ layouts (SKILL.md, agents/openai.yaml, AUTHORING-HANDOFF.md, flat phases/, references/); tests/design-phase-graph.contract.test.mjs (exact phase file set, gate section order); tests/delivery-afk.contract.test.mjs; skills/agnostic/docs/write-graph-based-skills/SKILL.md:55-72, references/authoring-contract.md:88-205; skills/phases/* layout with agents/openai.yaml; registration apps/cli/src/data/catalog/skills.ts, catalog/packs.ts:297-321; hooks apps/cli/src/registry/publisher/sources/hooks.ts:33-74 (no PreToolUse today; PackHookId = "format-edited-file" only, catalog/packs.ts:6); vendored swarm-planner/SKILL.md:29,47 tells agents to use AskUserQuestion | packaging, hooks | Q26 | grounded |
- Phase: ground
- Status: complete
- Exit: grounded
- Scope: R0; all branches
- Artifacts: status file and log created; Brief imported (Q1–Q13 answered with
Source: Brainstorm Brief); open forks became Q14–Q28; Technical Grounding from three fact subagents
- Validation: every active branch has Target and Settled Altitude; each code-bearing branch has a grounding row
- Grill state: four branches settled at L1 by the Brief; frontier L1
- Next suggested route: round R1 at L1
- Blockers: none
- Resume identity: none
- Phase: checkpoint
- Status: complete
- Exit: recorded
- Scope: R6; all branches
- Artifacts: log entries Q49–Q57; Required Calls R6
- Validation: each R6 answer in the log with its Altitude
- Grill state: every branch settled at L3
- Next suggested route: close
- Blockers: none
- Resume identity: none
- Phase: close
- Status: complete
- Exit: closed
- Scope: R6; all branches
- Artifacts: log
## Closure; status Closure closed R6; wiki synthesis page
- Validation: Close Guard passes: no open question, every branch at L3, grounded, Required Calls complete
- Grill state: confirmation confirmed; closed R6
- Next suggested route: none (implementation starts directly by the human's direction; no
$create-architecture pass)
- Blockers: none
- Resume identity: none
- Orchestrator: the one long-lived AFK thread that routes intake, spawns and adopts Tracks, merges, ships, and reports to the human while
orchestrator-phase is open.
Avoid: Conductor, coordinator
- Track: a real T3 thread with one scope that runs
requirements-phase and then delivery-phase, or delivery-phase or debugging-phase alone, and reports state changes to the Orchestrator.
- Worker: a short-lived subagent for one sweep, smoke, fix, E2E check or ping triage; it never talks to the human.
- Charter: the run's operating rules, written by the Orchestrator at run start and shown in its first report: tool bindings (review gate, secret store, env manager, deploy targets and guard, git host), branch layout, merge style, model settings, ownership and Human Gates.
- Capability: a thread operation the skill names without a host tool: spawn, fork, send, read, run Worker, watch PR, ask secret.
- Host binding: the reference file in the skill that maps each Capability to the host's real tool; T3 is the first host.
- Integration branch: an optional shared branch that collects several Track PRs before one PR to
main; used only when the final PR would exceed about 1.5 million changed lines.
- Track Ledger: the on-disk record of every Track's state, open Needs-you items and exit criteria; the Orchestrator reads it every turn.
- Human Gate: an action that waits for the human's approval (typed in the Orchestrator thread, or relayed with the human's quoted words): a production deploy, the merge of a new functional PR, paid infrastructure, or production data deletion outside an approved migration.
- go solo: the transition in which the Orchestrator decides the work needs no orchestration and closes
orchestrator-phase.
- Solo Thread: the thread an Orchestrator becomes after it goes solo; it runs the work itself and has no Tracks. It is not a Track.
Avoid: plain thread, stand down
- Autonomous Decision: a choice the Orchestrator or a Track makes with the recommended answer and reports afterwards.
- Needs-you item: one quotable line with a stable id that asks the human for a gate approval, access, or a reversal; it never blocks other work.
- Intake, Charter, Split, Spawn, Listen, Merge, Ship, Verify, Settle: the Orchestrator loop steps, in order; Listen is the steady state.
Avoid: Track graph, Dispatch, React, Integrate
- Adopt: take an existing thread under the Orchestrator by sending it the Charter and the report contract.
- Start check: proof, read from the thread, that a spawned Track began a run.
- An Orchestrator owns one Charter and one Track Ledger.
- A Track belongs to exactly one Orchestrator.
- A Human Gate is shown as a Needs-you item.
- The Orchestrator never calls a blocking question tool.
Checkable as: not-checkable (hook-enforceable; see Q26)
- A Human Gate opens only on the human's own words, typed or quoted.
Checkable as: not-checkable
- Only the Orchestrator merges a Track PR while
orchestrator-phase is open.
Checkable as: not-checkable
- "coordinator" and "orchestrator" were used for the same role in thread
06dbd00c. Resolution: Orchestrator (Q14).
- "becomes itself a track, only that it's not actually a track": the demoted thread is not a Track (no Orchestrator above it). Resolution: Solo Thread (Q29).
- Loop step labels "Track graph", "Dispatch", "React", "Integrate" did not land with the user ("intake charter track what??"). Resolution: Split, Spawn, Listen, Merge (Q45).