Architecture
planner-executor
One planner agent writes a plan for every task and posts it to a queue; executor agents, woken by each post, take the plans in order. With a plan before the first change, resolved rose from 50.2% to 65.0% while the planner used under 2% of the executor's tokens (2610.29870); a plan preceded every first change in 23 of 23 runs (2610.35992). The simulator gives the planner the profile role `planner` (one turn per task) and the executors the role `executor`, whose pass rate after a failed step is set so that the share of correct tasks rises by the ratio of 2610.29870: the gain of a plan is an input of the run, not a result of it. A post that finds every executor busy is offered again when a run ends. The simulator does not model a wrong plan, an executor that departs from its plan, plans that depend on each other, nor a planner that learns from failed runs.
Graph
Check
accepted 9 parts and 8 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 | 0 | 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: planner-executor.contract.yaml.
| port | kind | block | protocol | part | settings | instances |
|---|---|---|---|---|---|---|
resource.claim | Outbound | resource | Request | builds | capacity: 16, job_, kind: build_ | 1 |
harness.session | Outbound | harness | (Open | executor | harness: coding, role: executor | 8 |
model.inference | Outbound | model | Start | executor | none | 8 |
question.question | Principal | question | Ask (Answer | Record | executor | none | 8 |
resource.claim | Outbound | resource | Request | executor | none | 8 |
gateway.call | Outbound | gateway | Admit | gateway | rate_ | 1 |
model.inference | Outbound | model | Start | model | route: frontier | 1 |
trigger.firing | Outbound | trigger | Fire | on_ | channel: plans, kind: on_, max_, policy: parallel | 1 |
question.question | Principal | question | Ask (Answer | Record | owner | kind: human | 1 |
channel.post | Outbound | channel | Post | planner | none | 1 |
harness.session | Outbound | harness | (Open | planner | harness: coding, role: planner | 1 |
model.inference | Outbound | model | Start | planner | none | 1 |
channel.post | Outbound | channel | Post | plans | distribution: queue, kind: agent_ | 1 |
channel.subscription | Outbound | channel | Subscribe (Beat | Receive | plans | distribution: queue, kind: agent_ | 1 |
workspace.lease | Outbound | workspace | Request | tree | sharing: exclusive | 8 |
workspace.proposal | Outbound | workspace | Propose (Merge | tree | sharing: exclusive | 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:
planner -> plans carries message:every channel.post@planner to planson_plan -> executor carries trigger:every trigger.firing@on_plan to executorexecutor -> owner carries question:every question.question@executor to ownerplanner -> gateway carries model_call:every model.inference@planner inside gateway.call@gatewayexecutor -> gateway carries model_call:every model.inference@executor inside gateway.call@gatewaygateway -> model carries model_call:every gateway.call@gateway to modelexecutor -> builds carries claim:every resource.claim@executor 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 | 9 | 43 | 105 | 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.channel.SetPostingRule,agentic.gateway.DetachUpstream,agentic.gateway.DrainGateway,agentic.gateway.StopGateway,agentic.question.Answer,agentic.trigger.DisableSchedule,agentic.trigger.DisableTrigger,agentic.trigger.EnableTrigger,agentic.trigger.PassScheduleChecks
Parts
| part | block | settings |
|---|---|---|
owner | principal | kind human |
gateway | gateway | rate_limit_per_minute 120 |
model | model | route frontier |
executor | agent | count 8 marked: 4, 8, 12; harness coding; role executor |
planner | agent | count 1 marked: 1, 2; harness coding; role planner |
on_plan | trigger | channel plans; kind on_message; max_parallel 8 marked: 4, 8, 12; policy parallel |
plans | channel | distribution queue; kind agent_message |
builds | pool | capacity 16; job_limit 10m; kind build_slots |
tree | workspace | per executor; 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 planner. - planner sends
messageto plans. - on_plan sends
triggerto executor. - executor sends
questionto owner. - planner sends
model_callto gateway. - executor sends
model_callto gateway. - gateway sends
model_callto model. - executor sends
claimto builds.
Policies
| policy | value |
|---|---|
question_default_after | 15m |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Marked places
A marked place carries vary: the value as built and the values a search may try there.
| place | as built | the search may try |
|---|---|---|
parts.executor.count | 8 | 4, 8, 12 |
parts.on_plan.max_parallel | 8 | 4, 8, 12 |
parts.planner.count | 1 | 1, 2 |
More columns: swipe horizontally, or focus the table and use the arrow keys.