Skip to main content

Architecture

auto-merger

An agent that watches the change requests of one repository on a forge and merges each one whose checks passed at the head a reviewer approved, acting under a grant its owner issued. A recorded check result wakes it; it reads the change request, and merges or leaves it. The merge rule is the source-control pack's (agentic.scm.change.MergeChangeRequest): the named head is still the head, an approval binds exactly that head, its checks passed, and the grant is active. A push after an approval leaves the approval behind, so the merger waits for a new one. The parts of the pack (forge, repository, change requests, check runs) are named by their blocks; the simulator checks the structure and does not simulate them.

fields/coding/architectures/auto-merger.yaml

Graph​

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

Check​

accepted 12 parts and 12 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_total1Agent copies: the sum of count over the agent parts.
principals_total3Principal 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_parts1Parts 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_ratio0Agent 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: auto-merger.contract.yaml.

portkindblockprotocolpartsettingsinstances
gateway.callOutboundgatewayAdmitCall CompleteCallgatewayrate_limit_per_minute: 301
authority.decisionPrincipalauthority(DecideRequest | DenyRequest) (ApproveDecision | RejectDecision)?merge_grantkind: grant1
harness.sessionOutboundharness(OpenSession | SpawnSubAgent) (CompactContext | NameSession | RecordRestart | RecordTurn | RequestRoute)* EndSessionmergeracts_for: owner, harness: coding, role: merger1
model.inferenceOutboundmodelStartInference FinishInferencemergernone1
question.questionPrincipalquestionAsk (Answer | RecordUnreadableAnswer | TakeDefault ReviseAnswer? | Withdraw)mergernone1
model.inferenceOutboundmodelStartInference FinishInferencemodelroute: small1
trigger.firingOutboundtriggerFireTrigger (RecordFailure | RecordStart (RecordEnd | RecordReplaced) | SkipFiring)on_checksevent_name: agentic.scm.change.ChecksRecorded, kind: on_event, max_parallel: 1, policy: queue1
question.questionPrincipalquestionAsk (Answer | RecordUnreadableAnswer | TakeDefault ReviseAnswer? | Withdraw)ownerkind: human1

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

  • on_checks -> merger carries trigger: every trigger.firing@on_checks to merger
  • merge_grant -> merger carries grant: every authority.decision@merge_grant to merger
  • merger -> owner carries question: every question.question@merger to owner
  • merger -> gateway carries model_call: every model.inference@merger inside gateway.call@gateway
  • gateway -> model carries model_call: every gateway.call@gateway to model

Border: merger.

Ingresses: who reaches the architecture from outside, what each audience may use, and over which protocols.

ingressaudienceauthenticatedexportscommandsviewsfeedsmetrics
metricscontrol.monitornometrics_scrape00011
operatorcontrol.operatoryeshttp, event_stream, ui, tool931780
  • metrics: cache_bust_count, cache_hit_share, context_size_p90_tokens, cost_usd, decider_recorded_share, human_decided_share, human_prompt_share, owner_wait_share, priced_message_share, sub_agents_started, subagent_cost_share
  • operator: agentic.authority.RevokeGrant, 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
ciprincipalkind service
ownerprincipalkind human
reviewerprincipalkind human
gatewaygatewayrate_limit_per_minute 30
modelmodelroute small
mergeragentacts_for owner; harness coding; role merger
merge_grantauthorityaction_class execute; expires_after 24h; kind grant; scope merge
on_checkstriggerevent_name agentic.scm.change.ChecksRecorded; kind on_event; max_parallel 1; policy queue
changesscm.change–
checksscm.check–
forgescm.forge–
reposcm.repository–

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

  • forge sends hosts to repo.
  • repo sends change_request to changes.
  • ci sends check_result to checks.
  • checks sends checks to changes.
  • reviewer sends approval to changes.
  • on_checks sends trigger to merger.
  • owner sends grant to merge_grant.
  • merge_grant sends grant to merger.
  • merger sends merge to changes.
  • merger sends question to owner.
  • merger sends model_call to gateway.
  • gateway sends model_call to model.

Border​

What a human reaches directly: merger.

Policies​

policyvalue
question_default_after15m

Marked places​

None: this architecture is not searched.