Architecture
scope-partition
An upfront scope partition with a merge order: each copy of `team` owns one scope, every task goes to the owner of its scope, and merges land in the order the tasks finish. In 2610.07261 this integrated cleanly in 9 of 9 runs, against 4 of 9 when the agents reacted to each other and 1 of 9 without coordination; a vague change notice was no better than none. The simulator draws a task's scope and lets it touch each other scope with the profile's `scope_overlap`, so more scopes mean more tasks that cross one. A merge conflicts when another merge touched one of its scopes after its work started. Under `coordination: mesh` every copy tells the others which task it takes (one model call per reader) and a conflict costs a round of rework; under `none` the conflicting merge ships broken. The simulator does not model how the partition is cut or what cutting it costs, scopes whose load differs, conflicts inside one scope, nor a copy that helps another scope when its own is empty.
Search result
A short run of the experiment scope-partition-tuning tried 24 variants of the marked places. Its fitness, the weighted sum of KPIs the experiment scores, is 75.833 as built and 165.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.builds.capacity | 8 | 4 | 4, 8, 16 |
parts.team.coordination | mesh | mesh | mesh, none |
parts.team.count | 4 | 12 | 4, 8, 12, 16 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs that moved
33 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 | 53 | 94.500 | +78.3 %, worse |
backlog_wait_p90_seconds | −0.001 | 35949.6 | 12352.3 | −65.6 %, better |
cost_usd | −0.05 | 877.8 | 1946.8 | +121.8 %, worse |
owner_wait_share | −200 | 0.087 | 0.053 | −38.8 %, better |
questions_defaulted | −1 | 27 | 46.500 | +72.2 %, worse |
tasks_correct | +10 | 46.500 | 80.500 | +73.1 %, better |
agents_total | – | 4 | 12 | +200.0 % |
task_completion | – | 0.487 | 0.853 | +75.0 % |
agent_time_cost_usd | – | 96 | 288 | +200.0 % |
backlog_wait_p50_seconds | – | 21112.0 | 2175.4 | −89.7 % |
capacity_ratio | – | 0.500 | 3 | +500.0 % |
coordination_calls | – | 310.5 | 2024 | +551.9 % |
coordination_messages | – | 310.5 | 2024 | +551.9 % |
cost_per_task_usd | – | 8.845 | 11.113 | +25.6 % |
jobs | – | 380 | 677 | +78.2 % |
jobs_killed | – | 21.500 | 44 | +104.7 % |
merge_conflicts | – | 8.500 | 42.500 | +400.0 % |
pool_utilization | – | 0.084 | 0.305 | +263.0 % |
questions_asked | – | 49.500 | 95.500 | +92.9 % |
rework_turns | – | 3175 | 6624.5 | +108.6 % |
slot_wait_share | – | 0 | 0.001 | +0.001 |
steps | – | 1007.5 | 2104 | +108.8 % |
steps_failed | – | 605.5 | 1271 | +109.9 % |
tasks_claimed_done | – | 99.500 | 175 | +75.9 % |
tasks_done | – | 99.500 | 175 | +75.9 % |
tasks_started | – | 103.5 | 184 | +77.8 % |
tokens_cache_read | – | 586320000 | 1244130000 | +112.2 % |
tokens_cache_write | – | 39088000 | 82942000 | +112.2 % |
tokens_input | – | 19544000 | 41471000 | +112.2 % |
tokens_output | – | 5863200 | 12441300 | +112.2 % |
turns | – | 9461.5 | 18711.5 | +97.8 % |
worker_busy_share | – | 0.889 | 0.576 | −35.2 % |
wrong_assumptions | – | 7.500 | 17.500 | +133.3 % |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Graph
Check
accepted 6 parts and 5 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 | 4 | 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 | 0 | Links in the longest chain of order and question links from agent to agent. |
model_call_paths | 1 | 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: scope-partition.contract.yaml.
| port | kind | block | protocol | part | settings | instances |
|---|---|---|---|---|---|---|
resource.claim | Outbound | resource | Request | builds | capacity: 8, job_, kind: build_ | 1 |
gateway.call | Outbound | gateway | Admit | gateway | rate_ | 1 |
model.inference | Outbound | model | Start | model | route: frontier | 1 |
question.question | Principal | question | Ask (Answer | Record | owner | kind: human | 1 |
harness.session | Outbound | harness | (Open | team | harness: coding | 4 |
model.inference | Outbound | model | Start | team | none | 4 |
question.question | Principal | question | Ask (Answer | Record | team | none | 4 |
resource.claim | Outbound | resource | Request | team | none | 4 |
workspace.lease | Outbound | workspace | Request | tree | sharing: exclusive | 4 |
workspace.proposal | Outbound | workspace | Propose (Merge | tree | sharing: exclusive | 4 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Routing invariants, one per link whose value travels in a port:
team -> owner carries question:every question.question@team to ownerteam -> gateway carries model_call:every model.inference@team inside gateway.call@gatewaygateway -> model carries model_call:every gateway.call@gateway to modelteam -> builds carries claim:every resource.claim@team 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 |
model | model | route frontier |
team | agent | coordination mesh marked: mesh, none; count 4 marked: 4, 8, 12, 16; harness coding; partition scope |
builds | pool | capacity 8 marked: 4, 8, 16; job_limit 10m; kind build_slots |
tree | workspace | per team; 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 team. - team sends
questionto owner. - team sends
model_callto gateway. - gateway sends
model_callto model. - team 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 scope-partition-tuning searches the marked places of this architecture under a behaviour profile. The figures on this page come from a short run of it: 24 evaluations of 2 seeds each. The experiment file asks for more; agenticspec sim run experiments/scope-partition-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 | 96 | 288 |
agent_without_model_path | correctness | 0 | 0 |
agents_total | completeness | 4 | 12 |
as_not_principal | correctness | 0 | 0 |
autonomy_depth | quality | 0 | 0 |
backlog_wait_p50_seconds | quality | 21112.0 | 2175.4 |
backlog_wait_p90_seconds | quality | 35949.6 | 12352.3 |
border_parts | quality | 0 | 0 |
border_without_part | correctness | 0 | 0 |
bus_reach_not_event | correctness | 0 | 0 |
capacity_ratio | quality | 0.500 | 3 |
claim_conflicts | quality | 0 | 0 |
coordination_calls | quality | 310.5 | 2024 |
coordination_messages | quality | 310.5 | 2024 |
cost_per_task_usd | quality | 8.845 | 11.113 |
cost_usd | quality | 877.8 | 1946.8 |
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 | 53 | 94.500 |
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 | 380 | 677 |
jobs_killed | quality | 21.500 | 44 |
link_exists | correctness | 0 | 0 |
link_grant_invalid | correctness | 0 | 0 |
merge_conflicts | quality | 8.500 | 42.500 |
model_call_paths | completeness | 1 | 1 |
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.087 | 0.053 |
per_without_part | correctness | 0 | 0 |
pool_utilization | quality | 0.084 | 0.305 |
posts | quality | 0 | 0 |
principals_total | completeness | 1 | 1 |
question_without_answerer | correctness | 0 | 0 |
questions_asked | quality | 49.500 | 95.500 |
questions_defaulted | quality | 27 | 46.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 | 3175 | 6624.5 |
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.001 |
steps | quality | 1007.5 | 2104 |
steps_failed | quality | 605.5 | 1271 |
store_reach_not_record_or_read | correctness | 0 | 0 |
swarm_needs_agent | correctness | 0 | 0 |
task_completion | completeness | 0.487 | 0.853 |
tasks_arrived | quality | 205 | 205 |
tasks_claimed_done | quality | 99.500 | 175 |
tasks_correct | quality | 46.500 | 80.500 |
tasks_done | quality | 99.500 | 175 |
tasks_started | quality | 103.5 | 184 |
tokens_cache_read | quality | 586320000 | 1244130000 |
tokens_cache_write | quality | 39088000 | 82942000 |
tokens_input | quality | 19544000 | 41471000 |
tokens_output | quality | 5863200 | 12441300 |
trigger_source_not_trigger | correctness | 0 | 0 |
trigger_target_not_agent | correctness | 0 | 0 |
trigger_without_source | correctness | 0 | 0 |
turns | quality | 9461.5 | 18711.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.889 | 0.576 |
wrong_assumptions | quality | 7.500 | 17.500 |
More columns: swipe horizontally, or focus the table and use the arrow keys.