Skip to main content

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.

architectures/scope-partition.yaml

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.

placeas builtbest valuethe search may try
parts.builds.capacity844, 8, 16
parts.team.coordinationmeshmeshmesh, none
parts.team.count4124, 8, 12, 16

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.

KPIweightas builtbest variantchange
false_completions_shipped−55394.500+78.3 %, worse
backlog_wait_p90_seconds−0.00135949.612352.3−65.6 %, better
cost_usd−0.05877.81946.8+121.8 %, worse
owner_wait_share−2000.0870.053−38.8 %, better
questions_defaulted−12746.500+72.2 %, worse
tasks_correct+1046.50080.500+73.1 %, better
agents_total–412+200.0 %
task_completion–0.4870.853+75.0 %
agent_time_cost_usd–96288+200.0 %
backlog_wait_p50_seconds–21112.02175.4−89.7 %
capacity_ratio–0.5003+500.0 %
coordination_calls–310.52024+551.9 %
coordination_messages–310.52024+551.9 %
cost_per_task_usd–8.84511.113+25.6 %
jobs–380677+78.2 %
jobs_killed–21.50044+104.7 %
merge_conflicts–8.50042.500+400.0 %
pool_utilization–0.0840.305+263.0 %
questions_asked–49.50095.500+92.9 %
rework_turns–31756624.5+108.6 %
slot_wait_share–00.001+0.001
steps–1007.52104+108.8 %
steps_failed–605.51271+109.9 %
tasks_claimed_done–99.500175+75.9 %
tasks_done–99.500175+75.9 %
tasks_started–103.5184+77.8 %
tokens_cache_read–5863200001244130000+112.2 %
tokens_cache_write–3908800082942000+112.2 %
tokens_input–1954400041471000+112.2 %
tokens_output–586320012441300+112.2 %
turns–9461.518711.5+97.8 %
worker_busy_share–0.8890.576−35.2 %
wrong_assumptions–7.50017.500+133.3 %

Graph​

The architecture as a graph, with the best variant of a short run of the experiment scope-partition-tuning at its marked places.Open full screen ↗

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.

KPIvaluewhat it counts
agents_total4Agent copies: the sum of count over the agent parts.
principals_total1Principal parts.
human_touchpoints1Links that end at a principal and carry a question or a proposal.
autonomy_depth0Links in the longest chain of order and question links from agent to agent.
model_call_paths1Distinct paths of model_call links from an agent part to a model part.
ungated_model_calls0Paths of model_call links from an agent to a model that pass no gateway part.
single_points2 (gateway, model)Parts whose removal leaves some agent with no model_call path to a model.
border_parts0Parts named in the border, the parts that take input from outside.
egress_targets0Distinct parts and endpoints named in the egress of the sandbox parts.
shared_workspaces0Workspace parts whose sharing is not exclusive.
capacity_ratio0.5Agent copies that claim a pool divided by its capacity, the largest over the pools.

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.

portkindblockprotocolpartsettingsinstances
resource.claimOutboundresourceRequestClaim (ExpireWait | GrantClaim (ExpireClaim | KillClaim | ReleaseClaim) | WithdrawClaim)buildscapacity: 8, job_limit: 10m, kind: build_slots1
gateway.callOutboundgatewayAdmitCall CompleteCallgatewayrate_limit_per_minute: 1201
model.inferenceOutboundmodelStartInference FinishInferencemodelroute: frontier1
question.questionPrincipalquestionAsk (Answer | RecordUnreadableAnswer | TakeDefault ReviseAnswer? | Withdraw)ownerkind: human1
harness.sessionOutboundharness(OpenSession | SpawnSubAgent) (CompactContext | NameSession | RecordRestart | RecordTurn | RequestRoute)* EndSessionteamharness: coding4
model.inferenceOutboundmodelStartInference FinishInferenceteamnone4
question.questionPrincipalquestionAsk (Answer | RecordUnreadableAnswer | TakeDefault ReviseAnswer? | Withdraw)teamnone4
resource.claimOutboundresourceRequestClaim (ExpireWait | GrantClaim (ExpireClaim | KillClaim | ReleaseClaim) | WithdrawClaim)teamnone4
workspace.leaseOutboundworkspaceRequestLease GrantLease RecordWrite* (ExpireLease | ReleaseLease)treesharing: exclusive4
workspace.proposalOutboundworkspacePropose (MergeProposal | RejectProposal | SupersedeProposal)treesharing: exclusive4

Routing invariants, one per link whose value travels in a port:

  • team -> owner carries question: every question.question@team to owner
  • team -> gateway carries model_call: every model.inference@team inside gateway.call@gateway
  • gateway -> model carries model_call: every gateway.call@gateway to model
  • team -> 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.

ingressaudienceauthenticatedexportscommandsviewsfeedsmetrics
metricscontrol.monitornometrics_scrape0009
operatorcontrol.operatoryeshttp, event_stream, ui, tool426680
  • 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​

partblocksettings
ownerprincipalkind human
gatewaygatewayrate_limit_per_minute 120
modelmodelroute frontier
teamagentcoordination mesh marked: mesh, none; count 4 marked: 4, 8, 12, 16; harness coding; partition scope
buildspoolcapacity 8 marked: 4, 8, 16; job_limit 10m; kind build_slots
treeworkspaceper team; sharing exclusive

No link, no reach: a part reaches only what a link names.

  • owner sends prompt to team.
  • team sends question to owner.
  • team sends model_call to gateway.
  • gateway sends model_call to model.
  • team sends claim to builds.

Policies​

policyvalue
question_default_after15m

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:

KPIkindas builtbest variant
acts_for_not_principalcorrectness00
acts_for_without_partcorrectness00
agent_time_cost_usdquality96288
agent_without_model_pathcorrectness00
agents_totalcompleteness412
as_not_principalcorrectness00
autonomy_depthquality00
backlog_wait_p50_secondsquality21112.02175.4
backlog_wait_p90_secondsquality35949.612352.3
border_partsquality00
border_without_partcorrectness00
bus_reach_not_eventcorrectness00
capacity_ratioquality0.5003
claim_conflictsquality00
coordination_callsquality310.52024
coordination_messagesquality310.52024
cost_per_task_usdquality8.84511.113
cost_usdquality877.81946.8
decision_kind_unknowncorrectness00
duplicate_runsquality00
egress_targetsquality00
egress_without_partcorrectness00
empty_architecturecorrectness00
endpoint_invalidcorrectness00
external_store_not_in_egresscorrectness00
false_completions_shippedcorrectness5394.500
firing_failure_sharecorrectness00
firing_skip_sharequality00
firing_start_wait_p90_secondsquality00
firingsquality00
firings_emptyquality00
firings_queuedquality00
firings_skippedquality00
firings_startedquality00
gateway_without_modelcorrectness00
human_touchpointsquality11
invalid_concurrencycorrectness00
invalid_schedulecorrectness00
jobsquality380677
jobs_killedquality21.50044
link_existscorrectness00
link_grant_invalidcorrectness00
merge_conflictsquality8.50042.500
model_call_pathscompleteness11
module_link_cyclescorrectness00
not_a_channelcorrectness00
not_reached_by_principalcorrectness00
operator_decided_owner_questionsquality00
operator_wait_sharequality00
owner_wait_sharequality0.0870.053
per_without_partcorrectness00
pool_utilizationquality0.0840.305
postsquality00
principals_totalcompleteness11
question_without_answerercorrectness00
questions_askedquality49.50095.500
questions_defaultedquality2746.500
questions_forwardedquality00
queue_wait_p50_secondsquality00
queue_wait_p90_secondsquality00
rate_limited_secondsquality00
review_callsquality00
review_without_reviewercorrectness00
reviewsquality00
reviews_rejectedquality00
rework_turnsquality31756624.5
self_referencecorrectness00
semantic_store_without_modelcorrectness00
setting_invalidcorrectness00
setting_unknowncorrectness00
shared_workspacesquality00
single_pointsquality22
slot_wait_sharequality00.001
stepsquality1007.52104
steps_failedquality605.51271
store_reach_not_record_or_readcorrectness00
swarm_needs_agentcorrectness00
task_completioncompleteness0.4870.853
tasks_arrivedquality205205
tasks_claimed_donequality99.500175
tasks_correctquality46.50080.500
tasks_donequality99.500175
tasks_startedquality103.5184
tokens_cache_readquality5863200001244130000
tokens_cache_writequality3908800082942000
tokens_inputquality1954400041471000
tokens_outputquality586320012441300
trigger_source_not_triggercorrectness00
trigger_target_not_agentcorrectness00
trigger_without_sourcecorrectness00
turnsquality9461.518711.5
under_not_authoritycorrectness00
ungated_model_callsquality00
ungoverned_tool_callcorrectness00
unknown_blockscorrectness00
unknown_carriescorrectness00
unknown_link_partscorrectness00
unreachable_partscorrectness00
via_not_in_egresscorrectness00
via_without_endpointcorrectness00
worker_busy_sharequality0.8890.576
wrong_assumptionsquality7.50017.500