Skip to main content

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.

architectures/planner-executor.yaml

Graph​

The architecture as a graph: parts by layer, links labelled by what they carry, the border marked.Open full screen ↗

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.

KPIvaluewhat it counts
agents_total9Agent 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_paths2Distinct 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: planner-executor.contract.yaml.

portkindblockprotocolpartsettingsinstances
resource.claimOutboundresourceRequestClaim (ExpireWait | GrantClaim (ExpireClaim | KillClaim | ReleaseClaim) | WithdrawClaim)buildscapacity: 16, job_limit: 10m, kind: build_slots1
harness.sessionOutboundharness(OpenSession | SpawnSubAgent) (CompactContext | NameSession | RecordRestart | RecordTurn | RequestRoute)* EndSessionexecutorharness: coding, role: executor8
model.inferenceOutboundmodelStartInference FinishInferenceexecutornone8
question.questionPrincipalquestionAsk (Answer | RecordUnreadableAnswer | TakeDefault ReviseAnswer? | Withdraw)executornone8
resource.claimOutboundresourceRequestClaim (ExpireWait | GrantClaim (ExpireClaim | KillClaim | ReleaseClaim) | WithdrawClaim)executornone8
gateway.callOutboundgatewayAdmitCall CompleteCallgatewayrate_limit_per_minute: 1201
model.inferenceOutboundmodelStartInference FinishInferencemodelroute: frontier1
trigger.firingOutboundtriggerFireTrigger (RecordFailure | RecordStart (RecordEnd | RecordReplaced) | SkipFiring)on_planchannel: plans, kind: on_message, max_parallel: 8, policy: parallel1
question.questionPrincipalquestionAsk (Answer | RecordUnreadableAnswer | TakeDefault ReviseAnswer? | Withdraw)ownerkind: human1
channel.postOutboundchannelPostMessage TakePost?plannernone1
harness.sessionOutboundharness(OpenSession | SpawnSubAgent) (CompactContext | NameSession | RecordRestart | RecordTurn | RequestRoute)* EndSessionplannerharness: coding, role: planner1
model.inferenceOutboundmodelStartInference FinishInferenceplannernone1
channel.postOutboundchannelPostMessage TakePost?plansdistribution: queue, kind: agent_message1
channel.subscriptionOutboundchannelSubscribe (Beat | ReceiveEvent | ResumeSubscription)* EndSubscriptionplansdistribution: queue, kind: agent_message1
workspace.leaseOutboundworkspaceRequestLease GrantLease RecordWrite* (ExpireLease | ReleaseLease)treesharing: exclusive8
workspace.proposalOutboundworkspacePropose (MergeProposal | RejectProposal | SupersedeProposal)treesharing: exclusive8

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

  • planner -> plans carries message: every channel.post@planner to plans
  • on_plan -> executor carries trigger: every trigger.firing@on_plan to executor
  • executor -> owner carries question: every question.question@executor to owner
  • planner -> gateway carries model_call: every model.inference@planner inside gateway.call@gateway
  • executor -> gateway carries model_call: every model.inference@executor inside gateway.call@gateway
  • gateway -> model carries model_call: every gateway.call@gateway to model
  • executor -> 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.

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

partblocksettings
ownerprincipalkind human
gatewaygatewayrate_limit_per_minute 120
modelmodelroute frontier
executoragentcount 8 marked: 4, 8, 12; harness coding; role executor
planneragentcount 1 marked: 1, 2; harness coding; role planner
on_plantriggerchannel plans; kind on_message; max_parallel 8 marked: 4, 8, 12; policy parallel
planschanneldistribution queue; kind agent_message
buildspoolcapacity 16; job_limit 10m; kind build_slots
treeworkspaceper executor; sharing exclusive

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

  • owner sends prompt to planner.
  • planner sends message to plans.
  • on_plan sends trigger to executor.
  • executor sends question to owner.
  • planner sends model_call to gateway.
  • executor sends model_call to gateway.
  • gateway sends model_call to model.
  • executor sends claim to builds.

Policies​

policyvalue
question_default_after15m

Marked places​

A marked place carries vary: the value as built and the values a search may try there.

placeas builtthe search may try
parts.executor.count84, 8, 12
parts.on_plan.max_parallel84, 8, 12
parts.planner.count11, 2