Catalog
orchestrator-workers
An orchestrator agent takes every task, spends its model calls on handing it out, and dispatches it over an order link to a worker swarm whose copies start one after another.
The architecture orchestrator-workers, optimized by the experiment orchestrator-workers-tuning: 31 variants of its marked places, each simulated for 24h with 8 seeds under the behaviour profile coding of the field coding.
Fitness 150.5 → 212.1 (+40.9 %), as written → optimized. Fitness is the weighted sum of the KPIs the experiment scores.
What the optimization changed
2 of 4 marked places take another value; the others keep theirs.
| marked place | as written | optimized |
|---|---|---|
parts.orchestrator.count | 1 | 2 |
parts.workers.count | 8 | 12 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
The weighted KPIs that moved, the largest change of the fitness first:
| KPI | weight | as written | optimized | fitness |
|---|---|---|---|---|
tasks_correct | +10 | 80.50 | 107.9 | +273.8 |
false_completions_shipped | −5 | 98.50 | 130.8 | −161.2 |
cost_usd | −0.05 | 1805.6 | 2423.2 | −30.88 |
questions_defaulted | −1 | 53.88 | 76.62 | −22.75 |
owner_wait_share | −200 | 0.082 | 0.073 | +1.86 |
backlog_wait_p90_seconds | −0.001 | 1462.9 | 597.3 | +0.866 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
The architecture as a whole
Read from the document alone, before any simulation: its size, autonomy, exposure, weak points and fixed limits. agenticspec sim check reports the same numbers; a marked place counts at its value as built. The KPIs are in the KPI catalogue under the block architecture.
| KPI | as written | optimized | what it counts |
|---|---|---|---|
agents_total | 9 | 14 | Agent copies: the sum of count over the agent parts. |
principals_total | 1 | 1 | Principal parts. |
human_touchpoints | 1 | 1 | Links that end at a principal and carry a question or a proposal. |
autonomy_depth | 1 | 1 | Links in the longest chain of order and question links from agent to agent. |
model_call_paths | 2 | 2 | Distinct paths of model_call links from an agent part to a model part. |
ungated_model_calls | 0 | 0 | Paths of model_call links from an agent to a model that pass no gateway part. |
single_points | 2 (gateway, model) | 2 | Parts whose removal leaves some agent with no model_call path to a model. |
border_parts | 0 | 0 | Parts named in the border, the parts that take input from outside. |
egress_targets | 0 | 0 | Distinct parts and endpoints named in the egress of the sandbox parts. |
shared_workspaces | 0 | 0 | Workspace parts whose sharing is not exclusive. |
capacity_ratio | 0.5 | 0.75 | Agent copies that claim a pool divided by its capacity, the largest over the pools. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Result
Contract
The ports a runtime implements to run this architecture: each port's protocol, the part that uses it with the settings that narrow it, and how many instances run. Derived from the document and the ports of the building blocks; how. The contract file: orchestrator-workers.contract.yaml.
| port | kind | block | protocol | part | settings | instances |
|---|---|---|---|---|---|---|
resource.claim | Outbound | resource | Request | builds | capacity: 16, job_, kind: build_ | 1 |
gateway.call | Outbound | gateway | Admit | gateway | rate_ | 1 |
model.inference | Outbound | model | Start | model | route: frontier | 1 |
harness.session | Outbound | harness | (Open | orchestrator | harness: coding, role: orchestrator | 1 |
model.inference | Outbound | model | Start | orchestrator | none | 1 |
question.question | Principal | question | Ask (Answer | Record | owner | kind: human | 1 |
workspace.lease | Outbound | workspace | Request | tree | sharing: exclusive | 8 |
workspace.proposal | Outbound | workspace | Propose (Merge | tree | sharing: exclusive | 8 |
harness.session | Outbound | harness | (Open | workers | harness: coding | 8 |
model.inference | Outbound | model | Start | workers | none | 8 |
question.question | Principal | question | Ask (Answer | Record | workers | none | 8 |
resource.claim | Outbound | resource | Request | workers | none | 8 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Routing invariants, one per link whose value travels in a port:
workers -> owner carries question:every question.question@workers to ownerorchestrator -> gateway carries model_call:every model.inference@orchestrator inside gateway.call@gatewayworkers -> gateway carries model_call:every model.inference@workers inside gateway.call@gatewaygateway -> model carries model_call:every gateway.call@gateway to modelworkers -> builds carries claim:every resource.claim@workers to builds
Border: none.
Ingresses: who reaches the architecture from outside, what each audience may use, and over which protocols.
| ingress | audience | authenticated | exports | commands | views | feeds | metrics |
|---|---|---|---|---|---|---|---|
| metrics | control. | no | metrics_ | 0 | 0 | 0 | 9 |
| operator | control. | yes | http, event_, ui, tool | 4 | 26 | 68 | 0 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
- metrics:
cache_bust_count,cache_hit_share,context_size_p90_tokens,cost_usd,human_prompt_share,owner_wait_share,priced_message_share,sub_agents_started,subagent_cost_share - operator:
agentic.gateway.DetachUpstream,agentic.gateway.DrainGateway,agentic.gateway.StopGateway,agentic.question.Answer
Download
- Architecture as writtenorchestrator-workers.yamlthe parts, links and policies, with the marked places at their values as written
- Contractorchestrator-workers.contract.yamlthe ports a runtime implements to run the architecture as written, with their protocols, settings, instances and routing invariants
- Optimized architectureorchestrator-workers.best.yamlevery marked place at the value of the best variant; its vary ranges are kept, so it can be searched again
- Experimentorchestrator-workers-tuning.yamlseeds, horizon, faults, the search and its weights; it names the two files beside it
- Behaviour profilecoding.yamlhow long turns, builds and answers take, and what model calls cost
- Resultresult.jsonevery variant with its KPIs, the best one and the timeline, as the result page draws it
Run it
Put the downloaded files in one directory and run the experiment with agenticspec sim. agenticspec is the binary of every release; a checkout of the repository builds it with cargo build --release -p agenticspec. The same seeds give the same result.json.
agenticspec sim run orchestrator-workers-tuning.yaml --out out/
agenticspec sim check orchestrator-workers.best.yaml accepts the optimized architecture. To search on from it, set architecture: orchestrator-workers.best.yaml in the experiment; its fitness as written is then the best fitness above.
In a checkout, the same run is agenticspec sim run experiments/orchestrator-workers-tuning.yaml --out out/.
With --events, the run also writes out/events.jsonl: the run of the result's timeline as an event log, one line per building-block event (agentic.work.TaskCreated, agentic.resource.ClaimQueued, ...) with its sequence number, time, part, copy and subject key (task-3). The same seed writes the same lines, and result.json does not change.
It also writes out/replay.json, and out/index.html plays it back over the graph: the baseline and the best variant at every seed, each part's waiting and busy items and its spend over simulated time, and the links that carry an item at the time shown. Play, pause, a speed, a scrubber and a choice of run and seed move it; open the page from the directory, it needs no server.
With --live, the run streams to that page while it runs: the first line it prints is the address, agenticspec sim: live on http://127.0.0.1:<port>/, on this machine only. The baseline at the first seed is streamed before the search and the shown run after it, paced in simulated time (--pace, simulated seconds per second, 60 by default), each event as events.jsonl writes it, and the graph moves as the events arrive; the scrubber ends at the last one. When both are sent the command ends once the last page closes its connection, or after --linger seconds (0 by default) when none is open. The files it writes are the same bytes.
Deploy
Later. An entry runs in the simulator today; the agent runtime and the compute that implement the building blocks come later, and with them a way to deploy an entry.