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.
Graph
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.
| KPI | value | what it counts |
|---|---|---|
agents_total | 1 | Agent copies: the sum of count over the agent parts. |
principals_total | 3 | 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 | 1 | 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 | 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: auto-merger.contract.yaml.
| port | kind | block | protocol | part | settings | instances |
|---|---|---|---|---|---|---|
gateway.call | Outbound | gateway | Admit | gateway | rate_ | 1 |
authority.decision | Principal | authority | (Decide | merge_ | kind: grant | 1 |
harness.session | Outbound | harness | (Open | merger | acts_, harness: coding, role: merger | 1 |
model.inference | Outbound | model | Start | merger | none | 1 |
question.question | Principal | question | Ask (Answer | Record | merger | none | 1 |
model.inference | Outbound | model | Start | model | route: small | 1 |
trigger.firing | Outbound | trigger | Fire | on_ | event_, kind: on_, max_, policy: queue | 1 |
question.question | Principal | question | Ask (Answer | Record | owner | kind: human | 1 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Routing invariants, one per link whose value travels in a port:
on_checks -> merger carries trigger:every trigger.firing@on_checks to mergermerge_grant -> merger carries grant:every authority.decision@merge_grant to mergermerger -> owner carries question:every question.question@merger to ownermerger -> gateway carries model_call:every model.inference@merger inside gateway.call@gatewaygateway -> 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.
| ingress | audience | authenticated | exports | commands | views | feeds | metrics |
|---|---|---|---|---|---|---|---|
| metrics | control. | no | metrics_ | 0 | 0 | 0 | 11 |
| operator | control. | yes | http, event_, ui, tool | 9 | 31 | 78 | 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,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
| part | block | settings |
|---|---|---|
ci | principal | kind service |
owner | principal | kind human |
reviewer | principal | kind human |
gateway | gateway | rate_limit_per_minute 30 |
model | model | route small |
merger | agent | acts_for owner; harness coding; role merger |
merge_grant | authority | action_class execute; expires_after 24h; kind grant; scope merge |
on_checks | trigger | event_name agentic.scm.change.ChecksRecorded; kind on_event; max_parallel 1; policy queue |
changes | scm.change | – |
checks | scm.check | – |
forge | scm.forge | – |
repo | scm.repository | – |
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.
- forge sends
hoststo repo. - repo sends
change_requestto changes. - ci sends
check_resultto checks. - checks sends
checksto changes. - reviewer sends
approvalto changes. - on_checks sends
triggerto merger. - owner sends
grantto merge_grant. - merge_grant sends
grantto merger. - merger sends
mergeto changes. - merger sends
questionto owner. - merger sends
model_callto gateway. - gateway sends
model_callto model.
Border
What a human reaches directly: merger.
Policies
| policy | value |
|---|---|
question_default_after | 15m |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Marked places
None: this architecture is not searched.