← System handbook

Orchestrator design

Partialoperations

Turn an objective into bounded work, independent review and traceable integration.

TL;DR

The orchestrator coordinates; it should not personally do every job. It refreshes state, reconciles claims, prevents path collisions, activates well-specified jobs, dispatches the right model, assigns independent review, enforces exact-head CI/review gates, records receipts and checkpoints, then adapts the topology when work changes.

ELI5

The orchestrator is the foreman, not the whole construction crew. It decides what jobs exist, makes sure two crews are not drilling into the same wall, sends each job to a suitable worker, gets somebody independent to inspect it, and only then lets the finished piece join the building.

Synthesis

Primitive separates job authority from execution resources. A Claude, Codex, Gemini or OpenRouter model can execute work without owning the orchestrator role. The orchestrator's real value is maintaining one coherent state: objective, scope, leases, paths, review independence, build evidence, usage/cost and next action.

Cycle

The orchestration loop

One control cycle
RefreshPull state, jobs, PRs, inbox
ReconcileClaims, stale work, collisions
ActivatePacket, paths, tests, click path
DispatchChoose resource by fit + live capacity
ReviewIndependent family, exact head
Merge gateAccepted review + green CI + no HIGH
RecordLedger, usage, decision/receipt
CheckpointActive / ready / blocked / next
↺ back into the next cycle
Identity

Role × Scale × Scope × Authority stay separate

DimensionQuestionExample
RoleWhat function?Builder / reviewer / researcher
ScaleAt what recursive level?System / Cell / Unit
ScopeWhat may it work on?Repo / project / paths / task
AuthorityWhat effects may it cause?Read / write / merge / deploy / spend
Common mistake: Calling something 'reviewer' or 'orchestrator' does not grant authority. The lease/permit and canonical policy do.
Quality gate

Independent review is a contract, not a vibe

  • The reviewer family must differ from every author's family where independence is required.
  • The verdict must apply to the exact PR head that will merge.
  • Canonical CI must be green; skipped is not green.
  • No unresolved HIGH/BLOCKER may survive the gate.
  • Shared-file PRs are integrated serially and rechecked after base sync.
Focus

Five-hour windows make the orchestration objective explicit

At takeover, an orchestrator records one objective, one ordered sequence, up to three evidence-bearing outcomes, exclusions and usage state. At the review time it records ACHIEVED, PARTIAL or BLOCKED and either starts a new window, hands over or parks the seat.

Adaptive topology

Blocked work should create a signal, not a silent queue

A blocked lane should signal its parent/orchestrator. The parent may repair, reallocate, escalate or contract the lane subject to its authority and topology budget. Fixed seats are not the goal; justified capacity is.

Keep reading

Related pages

Reference / evidence

Canonical sources

These pages are explanatory read models. Where wording conflicts with implementation or a Control decision, the linked implementation/decision is authoritative and this page should be corrected.