Harness Intelligence Wiki
HarnessEntry Points

Orchestration

Run several cross-dependent, large scopes across threads and repositories from one AFK Orchestrator that spawns Tracks, merges, ships and reports

$orchestrator-phase runs work that spans several scopes that depend on each other, often in 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 you while you are away. When the work does not need that, it goes solo and runs the work itself as a normal thread.

  • Use this when: several large scopes depend on each other and move in parallel threads, PRs and deploys, for example a backend change, the SDK that exposes it, and the apps that consume the SDK. Start it from a home repository that holds guidance for all the projects involved.
  • It gives you: one place to state intent; Tracks that run requirements and then delivery; merges at the exact commit a Track reported ready; releases, deploys and post-deploy verification; short reports with a Needs-you list.
  • It ends with: a closed run whose exit criteria all hold, or a Solo Thread when orchestration is not needed. The final report lists what shipped, its verification evidence, the Autonomous Decisions (out-of-bounds first) and any open Needs-you items.
  • Wrapped phase/skills: each Track runs $requirements-phase, $delivery-phase or $debugging-phase; Workers run checks such as $agent-browser and $verify-behavior; reports go through $wait-what; reopening a Solo Thread uses $handoff.

Do not use it for one bounded change in one thread: use Brainstorming, Requirements, And Backlog Definition or Implementation directly. If you start it anyway, the Orchestrator goes solo.

Invocation

$orchestrator-phase is explicit-only: type it with your request. You can name existing threads in the same message; the Orchestrator adopts them as Tracks. The Orchestrator is AFK from then on:

  • it never opens a question dialog, because an open dialog blocks every Track message until you answer; every pending choice is an Autonomous Decision, reported afterwards;
  • it waits for you only at a Human Gate: a production deploy, the merge of a new functional PR, infrastructure that costs money, or deletion of production data outside an approved migration;
  • everything else is autonomous, including fix merges, package publishes, dev and staging deploys, and new secrets it generates into the project's secret store.

Approve a gate by typing in the Orchestrator thread, or by quoting a Needs-you line. A relayed "go" counts only when the Orchestrator finds the quoted words in your own messages.

Loop

Listen is the steady state. Each event (a Track line, a PR update, a deploy or Worker result, or your message) updates the Ledger, triggers one action or a Worker, and ends the turn, so the Orchestrator is always free to receive the next message.

StepWhat happens
IntakeAn unclear requirement becomes a Track that runs $requirements-phase and then $delivery-phase in the same thread. An accepted spec, plan or clear bug becomes a delivery Track. Small work with no decision goes to a Worker. A runtime failure goes to a debugging Track or a Worker.
Charter.orchestrator/<run>/charter.md: repositories, review gate, deploy targets and guard, secret stores, Human Gates, model settings. Shown once in the first report; Tracks start without waiting.
SplitTracks and their dependencies go into .orchestrator/<run>/ledger.md. An integration branch is used only when the final PR would exceed about 1.5 million changed lines.
SpawnEach Track starts in its repository's project with a brief: the phase command, scope, dependencies, the Charter path, "report each state change in one line", "never merge, report ready with the head commit", "never use a question tool". A Worker confirms the Track started within 2 minutes.
MergeThe Orchestrator merges the reported commit after the repository's own checks and review tool are clean. Squash always; rebases allowed.
ShipReleases and dev or staging deploys run on their own; production waits on a Human Gate.
VerifyA Worker checks the deployed target with the method that fits: $agent-browser for UI, $verify-behavior for API behavior, model checking for state and concurrency flows.
SettleFinished Tracks close; the run closes when every exit criterion in the Ledger holds.

What You Do

  • Grill inside a Track. When a Track runs $requirements-phase, open that thread and answer the grill there. When the grill closes, the Orchestrator starts $delivery-phase in the same thread, unless you said to hold.
  • Answer the Needs-you list. Each report starts with it. Each item has an id such as N3; quote the line or name the id.
  • Change scope in the Orchestrator thread. It updates the Charter and the Ledger's exit criteria.

Go Solo And Reopen

The deciding invariant is cross-dependency between scopes, weighed with their size. Many cross-dependent big scopes are orchestrated; many small scopes, or one big scope, go solo. The Orchestrator goes solo only when no Track is live. A Solo Thread runs its phase under that phase's normal rules, so merging returns to you. When its work grows to need parallel scopes or other repositories, it reopens $orchestrator-phase: it forks itself with a $handoff document so a new Track keeps the work, and becomes the Orchestrator again with the same Ledger.

Hosts

The skill names thread capabilities (spawn, fork, send, read, run a Worker, watch a PR, ask for a secret), and a binding file inside the skill maps them to the host's tools. The skill ships a binding for T3 Code. A host that cannot spawn or message threads cannot orchestrate, so the Orchestrator goes solo there.

On this page