Architecture
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. Task-specific sub-agents helped (+5.91, +4.46) and general stage sub-agents hurt (-0.70, -2.31) (2609.32459); sub-agent concurrency helped only on the largest tasks (2610.10263); an author-reviewer loop cost $0.95-1.07 per file against $1.98-2.91 for a multi-agent workflow (2610.09995). The simulator charges the orchestrator the profile role `orchestrator` for every task, counts those calls as coordination calls, and makes it a queue every task passes; the workers take the handed tasks in order. With an orchestrator handing out the work no two copies race for one task, so a start stagger here only holds copies back. The simulator does not model how the orchestrator splits a task, results that come back to it, nor any gain or loss in success from orchestration: workers keep the coding role's pass rates.
Search result
A short run of the experiment orchestrator-workers-tuning tried 26 variants of the marked places. Its fitness, the weighted sum of KPIs the experiment scores, is 203.2 as built and 228.7 for the best variant. How the run was made: Optimization.
Marked places
A marked place carries vary: the value as built and the values a search may try there. The best value is that of the best variant.
| place | as built | best value | the search may try |
|---|---|---|---|
parts.gateway.rate_limit_per_minute | 120 | 120 | 60, 120, 240 |
parts.orchestrator.count | 1 | 1 | 1, 2 |
parts.workers.count | 8 | 12 | 4, 8, 12, 16 |
parts.workers.start_stagger | 30s | 30s | 0s, 3s, 30s |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs that moved
27 of 102 KPIs differ between the architecture as built and its best variant; the others are equal. A weight is what the experiment scores a KPI by: above 0 more is better, below 0 less is better.
| KPI | weight | as built | best variant | change |
|---|---|---|---|---|
false_completions_shipped | −5 | 99.500 | 129.5 | +30.2 %, worse |
cost_usd | −0.05 | 1750.3 | 2285.7 | +30.6 %, worse |
owner_wait_share | −200 | 0.084 | 0.073 | −13.6 %, better |
questions_defaulted | −1 | 58.500 | 73.500 | +25.6 %, worse |
tasks_correct | +10 | 86.500 | 108 | +24.9 %, better |
agents_total | – | 9 | 13 | +44.4 % |
task_completion | – | 0.762 | 0.969 | +27.2 % |
agent_time_cost_usd | – | 215.8 | 311.4 | +44.3 % |
capacity_ratio | – | 0.500 | 0.750 | +50.0 % |
cost_per_task_usd | – | 9.443 | 9.608 | +1.7 % |
jobs | – | 774.5 | 967 | +24.9 % |
jobs_killed | – | 48 | 58.500 | +21.9 % |
pool_utilization | – | 0.090 | 0.112 | +24.3 % |
questions_asked | – | 109 | 134 | +22.9 % |
rework_turns | – | 6831.5 | 8754 | +28.1 % |
steps | – | 2226 | 2781.5 | +25.0 % |
steps_failed | – | 1170.5 | 1516.5 | +29.6 % |
tasks_claimed_done | – | 430.5 | 482 | +12.0 % |
tasks_done | – | 186 | 237.5 | +27.7 % |
tasks_started | – | 439 | 489.5 | +11.5 % |
tokens_cache_read | – | 1142190000 | 1471950000 | +28.9 % |
tokens_cache_write | – | 76636000 | 98620000 | +28.7 % |
tokens_input | – | 39053000 | 50045000 | +28.1 % |
tokens_output | – | 11568900 | 14866500 | +28.5 % |
turns | – | 19526.5 | 25022.5 | +28.1 % |
worker_busy_share | – | 0.826 | 0.731 | −11.6 % |
wrong_assumptions | – | 20 | 27 | +35.0 % |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Graph
Check
accepted 7 parts and 7 links; the structural check refuses nothing.
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 | value | what it counts |
|---|---|---|
agents_total | 9 | Agent copies: the sum of count over the agent parts. |
principals_total | 1 | Principal parts. |
human_touchpoints | 1 | Links that end at a principal and carry a question or a proposal. |
autonomy_depth | 1 | Links in the longest chain of order and question links from agent to agent. |
model_call_paths | 2 | Distinct paths of model_call links from an agent part to a model part. |
ungated_model_calls | 0 | Paths of model_call links from an agent to a model that pass no gateway part. |
single_points | 2 (gateway, model) | Parts whose removal leaves some agent with no model_call path to a model. |
border_parts | 0 | Parts named in the border, the parts that take input from outside. |
egress_targets | 0 | Distinct parts and endpoints named in the egress of the sandbox parts. |
shared_workspaces | 0 | Workspace parts whose sharing is not exclusive. |
capacity_ratio | 0.5 | 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.
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
Parts
| part | block | settings |
|---|---|---|
owner | principal | kind human |
gateway | gateway | rate_limit_per_minute 120 marked: 60, 120, 240 |
model | model | route frontier |
orchestrator | agent | count 1 marked: 1, 2; harness coding; role orchestrator |
workers | agent | coordination orchestrator; count 8 marked: 4, 8, 12, 16; harness coding; start_stagger 30s marked: 0s, 3s, 30s |
builds | pool | capacity 16; job_limit 10m; kind build_slots |
tree | workspace | per workers; sharing exclusive |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Links
No link, no reach: a part reaches only what a link names.
- owner sends
promptto orchestrator. - orchestrator sends
orderto workers. - workers sends
questionto owner. - orchestrator sends
model_callto gateway. - workers sends
model_callto gateway. - gateway sends
model_callto model. - workers sends
claimto builds.
Policies
| policy | value |
|---|---|
question_default_after | 15m |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Optimization
The experiment orchestrator-workers-tuning searches the marked places of this architecture under a behaviour profile. The figures on this page come from a short run of it: 40 evaluations of 2 seeds each. The experiment file asks for more; agenticspec sim run experiments/orchestrator-workers-tuning.yaml runs it in full.
Every KPI of the architecture as built and of its best variant:
| KPI | kind | as built | best variant |
|---|---|---|---|
acts_for_not_principal | correctness | 0 | 0 |
acts_for_without_part | correctness | 0 | 0 |
agent_time_cost_usd | quality | 215.8 | 311.4 |
agent_without_model_path | correctness | 0 | 0 |
agents_total | completeness | 9 | 13 |
as_not_principal | correctness | 0 | 0 |
autonomy_depth | quality | 1 | 1 |
backlog_wait_p50_seconds | quality | 0 | 0 |
backlog_wait_p90_seconds | quality | 1429.4 | 1429.4 |
border_parts | quality | 0 | 0 |
border_without_part | correctness | 0 | 0 |
bus_reach_not_event | correctness | 0 | 0 |
capacity_ratio | quality | 0.500 | 0.750 |
claim_conflicts | quality | 0 | 0 |
coordination_calls | quality | 735 | 735 |
coordination_messages | quality | 0 | 0 |
cost_per_task_usd | quality | 9.443 | 9.608 |
cost_usd | quality | 1750.3 | 2285.7 |
decision_kind_unknown | correctness | 0 | 0 |
duplicate_runs | quality | 0 | 0 |
egress_targets | quality | 0 | 0 |
egress_without_part | correctness | 0 | 0 |
empty_architecture | correctness | 0 | 0 |
endpoint_invalid | correctness | 0 | 0 |
external_store_not_in_egress | correctness | 0 | 0 |
false_completions_shipped | correctness | 99.500 | 129.5 |
firing_failure_share | correctness | 0 | 0 |
firing_skip_share | quality | 0 | 0 |
firing_start_wait_p90_seconds | quality | 0 | 0 |
firings | quality | 0 | 0 |
firings_empty | quality | 0 | 0 |
firings_queued | quality | 0 | 0 |
firings_skipped | quality | 0 | 0 |
firings_started | quality | 0 | 0 |
gateway_without_model | correctness | 0 | 0 |
human_touchpoints | quality | 1 | 1 |
invalid_concurrency | correctness | 0 | 0 |
invalid_schedule | correctness | 0 | 0 |
jobs | quality | 774.5 | 967 |
jobs_killed | quality | 48 | 58.500 |
link_exists | correctness | 0 | 0 |
link_grant_invalid | correctness | 0 | 0 |
merge_conflicts | quality | 0 | 0 |
model_call_paths | completeness | 2 | 2 |
module_link_cycles | correctness | 0 | 0 |
not_a_channel | correctness | 0 | 0 |
not_reached_by_principal | correctness | 0 | 0 |
operator_decided_owner_questions | quality | 0 | 0 |
operator_wait_share | quality | 0 | 0 |
owner_wait_share | quality | 0.084 | 0.073 |
per_without_part | correctness | 0 | 0 |
pool_utilization | quality | 0.090 | 0.112 |
posts | quality | 0 | 0 |
principals_total | completeness | 1 | 1 |
question_without_answerer | correctness | 0 | 0 |
questions_asked | quality | 109 | 134 |
questions_defaulted | quality | 58.500 | 73.500 |
questions_forwarded | quality | 0 | 0 |
queue_wait_p50_seconds | quality | 0 | 0 |
queue_wait_p90_seconds | quality | 0 | 0 |
rate_limited_seconds | quality | 0 | 0 |
review_calls | quality | 0 | 0 |
review_without_reviewer | correctness | 0 | 0 |
reviews | quality | 0 | 0 |
reviews_rejected | quality | 0 | 0 |
rework_turns | quality | 6831.5 | 8754 |
self_reference | correctness | 0 | 0 |
semantic_store_without_model | correctness | 0 | 0 |
setting_invalid | correctness | 0 | 0 |
setting_unknown | correctness | 0 | 0 |
shared_workspaces | quality | 0 | 0 |
single_points | quality | 2 | 2 |
slot_wait_share | quality | 0 | 0 |
steps | quality | 2226 | 2781.5 |
steps_failed | quality | 1170.5 | 1516.5 |
store_reach_not_record_or_read | correctness | 0 | 0 |
swarm_needs_agent | correctness | 0 | 0 |
task_completion | completeness | 0.762 | 0.969 |
tasks_arrived | quality | 245 | 245 |
tasks_claimed_done | quality | 430.5 | 482 |
tasks_correct | quality | 86.500 | 108 |
tasks_done | quality | 186 | 237.5 |
tasks_started | quality | 439 | 489.5 |
tokens_cache_read | quality | 1142190000 | 1471950000 |
tokens_cache_write | quality | 76636000 | 98620000 |
tokens_input | quality | 39053000 | 50045000 |
tokens_output | quality | 11568900 | 14866500 |
trigger_source_not_trigger | correctness | 0 | 0 |
trigger_target_not_agent | correctness | 0 | 0 |
trigger_without_source | correctness | 0 | 0 |
turns | quality | 19526.5 | 25022.5 |
under_not_authority | correctness | 0 | 0 |
ungated_model_calls | quality | 0 | 0 |
ungoverned_tool_call | correctness | 0 | 0 |
unknown_blocks | correctness | 0 | 0 |
unknown_carries | correctness | 0 | 0 |
unknown_link_parts | correctness | 0 | 0 |
unreachable_parts | correctness | 0 | 0 |
via_not_in_egress | correctness | 0 | 0 |
via_without_endpoint | correctness | 0 | 0 |
worker_busy_share | quality | 0.826 | 0.731 |
wrong_assumptions | quality | 20 | 27 |
More columns: swipe horizontally, or focus the table and use the arrow keys.