Harness Intelligence Wiki
Domains

Orchestrator Phase

One long-lived AFK Orchestrator thread runs dependent Tracks across repositories from a home repository, and why each of its rules exists.

Orchestrator Phase

orchestrator-phase is an explicit-only HI phase skill for work that spans several dependent scopes, often across several repositories. One long-lived Orchestrator thread routes the work, starts one Track thread per scope, merges and ships what the Tracks finish, and reports to a human who is mostly away. Terms follow the glossary; the loop and the Track lifecycle are in the flow. The skill lives at skills/phases/orchestrator-phase in the shared skills repository and ships in the planning Pack.

When to use it

Use it from a home repository: one repository that holds shared skills, prompts and guidance about a set of dependent projects, so that agents can work on all of them at once. The Orchestrator fits when several scopes depend on each other, each is large, and their work runs in parallel threads, PRs and deploys. When the work does not need that, the Orchestrator goes solo (see Going solo and reopening).

Roles

RoleWhat it isTalks to the human
OrchestratorThe one long-lived AFK thread. It routes intake, writes the Charter, spawns and adopts Tracks, merges, ships, verifies and reports.Reports only; never blocks on a question
TrackA real thread with one scope, in the project of the repository it changes. It runs requirements-phase and then delivery-phase in the same thread, or delivery-phase or debugging-phase alone.Only during the requirements grill
WorkerA short-lived subagent for one triage, sweep, smoke, end-to-end check or deploy watch.Never
Solo ThreadWhat an Orchestrator becomes after it decides the work needs no orchestration. It runs the work itself and has no Tracks. It is not a Track.As a normal phase thread

Only the requirements grill needs the human live. The Orchestrator and delivery are AFK.

Rules

Decisions and Human Gates

  • Every pending choice is an Autonomous Decision: the Orchestrator takes the recommended answer, acts, and reports it afterwards. The Orchestrator and every Track brief forbid AskUserQuestion, request_user_input and every other structured question tool.
  • Human Gates are the only actions that wait for the human: production deploys, merges of new functional PRs, infrastructure that costs money, and deletion of production data outside a migration already approved in a merged PR.
  • Autonomous: fix PR merges, pre-approved code merges, package publishes, dev and staging deploys, messages to colleagues, and new secrets the Orchestrator generates (stored in the project's own secret store or env manager).
  • The Orchestrator classifies a PR by what it does: new behavior a user or an API caller can see is functional; a fix, test, tooling change, sync or review repair is not. When unclear, it counts as functional.
  • A Human Gate opens on the human's words typed in the Orchestrator thread, or on a relayed "go" whose quoted words the Orchestrator finds in the human's own messages in the source thread.
  • Needs-you items hold only Human Gates, access only the human can give, and out-of-bounds Autonomous Decisions the human may reverse. Work behind an item waits; every other Track keeps moving.

Turns

The Orchestrator routes, decides, delegates and ends its turn. Triage of incoming messages, sweeps, smokes, end-to-end checks and deploy waits go to Workers or background tasks, so the Orchestrator stays free to receive the next message. Its own Workers do read-only, outside-in work; a code change goes to the Track that owns the repository, or to a new small Track there.

State on disk

  • .orchestrator/<run>/charter.md holds the run's rules: host, repositories, integration branch, merge style, review gate and deploy targets per repository, secret stores, Human Gates, model settings, and people whose PRs to watch for overlap. The Orchestrator writes it on its own and shows it in its first report.
  • .orchestrator/<run>/ledger.md is the Track Ledger: run state, exit criteria, Tracks, Needs-you items, Autonomous Decisions and an append-only event list. The Orchestrator reads it every turn, so it can resume cold after compaction. Git is not required.
  • One Orchestrator runs for the whole job; it does not rotate. Run goals are exit criteria in the Ledger, which the Orchestrator updates when the human changes scope.

Merging and integration

  • While orchestrator-phase is open, only the Orchestrator merges a Track PR, and only the exact commit the Track reported ready, after that repository's own checks and PR review mechanism are clean on it. A moved head waits for a new "ready".
  • PR merges are always squash. Rebases are allowed.
  • An integration branch is optional. It is used only when the final PR would exceed about 1.5 million changed lines; above that size git diff cuts out and PR guides cannot be generated, so implementation and review split into individual PRs. The decision is made at Split and may be taken later if a PR grows. After the integration branch is rebased, each Track rebases its own branch and reports a new ready commit.

Hosts and capabilities

The skill names capabilities, not host tools. A reference file inside the skill binds each capability to the host's real tool. The skill ships a binding for T3 Code:

CapabilityT3 Code binding
Spawn a thread in a project, with a brieft3_thread_launch
Fork a threadt3_thread_transfer (fork)
Send a line to a threadt3_thread_send
Read a threadt3_thread_read
Run a Worker that wakes the Orchestrator when donedelegate_task
Watch a PRwatch_pull_request
Ask for a secretrequest_secret

A host that cannot spawn or message threads cannot orchestrate, so the Orchestrator goes solo. The Charter binds every other tool role (review gate, secret store, env manager, deploy guard, git host) per project; the skill names none of them.

Going solo and reopening

The Orchestrator checks at Intake, and whenever its last live Track settles, whether the work needs orchestration. The deciding invariant is cross-dependency between scopes, weighed with their size:

ScopesSizeResult
Many, cross-dependentBigOrchestrate
ManySmallMay go solo
OneBigMay go solo

Several PRs into one integration branch, each with its own deploys, always orchestrate. "Will it fit in one thread's context" is not a signal: models cannot estimate it. The Orchestrator goes solo only with no live Track and no Needs-you item of another Track. A Solo Thread runs its phase under that phase's normal rules, so merging returns to the human. If its work grows to need parallel scopes or other repositories, it reopens orchestrator-phase: it forks itself so a new Track keeps the full context, gives that fork a $handoff document and the Track brief, and becomes the Orchestrator again with the same Ledger.

Why each rule exists

Each rule prevents one failure that a coordinator thread over many dependent threads otherwise falls into.

Failure without the ruleRule
A blocking question dialog holds the coordinator's turn, so every Track message queues behind it; when the human answers hours later, the coordinator acts on stale state.Question tools are forbidden; choices become Autonomous Decisions; what needs the human becomes a non-blocking Needs-you item
Long hands-on turns (polling, sleeps, deploy waits, debugging) keep the coordinator busy, so messages arrive mid-turn or wait. A stop-hook goal keeps re-entering work and cannot drop a criterion the human removed.Short turns; Workers and background tasks for waits and triage; goals as Ledger exit criteria the Orchestrator may amend
Top-level threads do not wake their parent, and a thread that fails to start reports nothing, so the coordinator sits idle.A report contract in every brief (one line per state change); a start check after every spawn, stalled after 2 minutes
The coordinator asks the human for work it can do, applies a rule beyond its scope, or acts on a relayed approval nobody checked.A fixed Human Gate list; everything else autonomous; relayed approvals checked against the human's own words
Rules are learned one correction at a time and scattered across memory notes; sync and merge styles drift, and an integration branch falls behind main.One Charter written at the start; the integration branch rule; rebase allowed
Run state lives only in the context window and is lost or stale after compaction.The Track Ledger on disk, read every turn
Long reports full of artifact codes are hard to answer.Three-part reports (Needs you, Changed since last report, Running) written with names, not codes; Needs-you items with stable ids to quote
Acknowledgement messages wake the coordinator for nothing.Tracks send state changes only, never acknowledgements
Host tools differ and fail in host-specific ways.Capabilities in the skill; host tools and their failure modes in one binding file; model settings in the Charter; home Workers stay read-only
Secrets get pasted into chat.Secrets only through the host's private secret request; the Orchestrator looks in the project's secret tools first

On this page