Skip to content

Latest commit

 

History

History
1057 lines (932 loc) · 66.3 KB

ARCHITECTURE.md

File metadata and controls

1057 lines (932 loc) · 66.3 KB

Architecture

Current truth only. The invariants live in INVARIANTS.md; history and adjudication live in adr/; the self-improvement design lives in designs/SELF_IMPROVEMENT.md. Historical, non-normative planning records live in plans/.

Constructicon is an OS for agentic software-engineering pipelines. One authored graph IR; one sealed ExecutionManifest per run; scoped capability leases; journal-minted attestations; idempotent effects with receipts; component versions that reach dependents only through explicit promotion. Agents are the first-class user; humans are observer, advisor, and approver.

Authored intent may be ergonomic; executed reality must be explicit.

Layers

L4  api        ControlPlane · typed describe/admission · MCP server · CLI skin ·
               injection root: constructs L1, hands it to L2
L3  sdk        @task · component/flow/harness/loop/panel sugar — process-local
               authoring carriers compiling immediately to the core IR
L2  runtime    graph IR · registry/resolution · authoring preflight + validator
               → ExecutionManifest · walker · resume/effects [L0 only]
L1  substrate  workspace · executors · gates · channels · journal
L0  core       every contract in the system, defined once

Two ladders, deliberately distinct: code layers depend downward on contracts (I8); the component ladder — functions → atomic nodes → components → harnesses → workflows — composes upward from simpler pieces (I10). Authoring starts at the highest component that fits.

The graph IR

Exactly three constructs, closed under composition:

  • Ref — a namespaced name in the registry, never code. version=None resolves the stable channel at run start; sha256:<hash> pins exactly.
  • Graph — composition; nests; declares typed boundary ports.
  • Loop — generic feedback: a body, a feedback map (next input ← previous output), a typed continue_from decision, max_iterations. The kernel does not know what a gate is — gate checking, triage, and repair are ordinary registered components inside the body. A loop executes its body at least once, threads feedback into the next iteration, reads continue_from after each completed iteration, exports the final iteration's non-control outputs, and parks with policy_exhausted on exhaustion.

Ports declare a nominal contract (type_id + schema hash) and cardinality one|optional|many. At admission, unmapped scalar ports prefer a unique exact name plus nominal-contract match, else a unique nominal-contract match; optional also permits absence. An unmapped many port gathers every nominally compatible producer in the pool and requires at least one. That admitted set is not necessarily the set the author expected: the pool spans the transitive closure and graph inputs. Conversions require an explicit adapter; missing required sources or ambiguous scalar matches produce an itemized fault naming the per-port override.

Connection.map names a destination input and its node.port or $input.port selector. Every selector must resolve to exactly one source whose port has cardinality one and matches the destination's nominal contract. Several connections may map one many input: distinct selectors form an ordered union in connection-array order, with identical selectors coalescing at their first position. A mapped one or optional input accepts one distinct selector. Maps replace the pool for that destination; they never add to it. Map-object entries are visited by destination key, not insertion order.

Every connection endpoint must name a declared node at its own graph level; every map destination must name an input on the resolved boundary. Neither unknown nodes nor unused destinations are silently discarded. These checks do not require a connection's own source to bind a value at its destination: transitive visibility and explicit selection remain valid. See ADR 0017.

Admission → ExecutionManifest

Every authoring surface passes one validator. Its output is the sealed manifest: resolved component versions (ScopePath-addressed, so nested duplicates stay distinct), explicit resolved connections (typed PortAddress endpoints — graph inputs, node ports, graph outputs), capability bindings with fully concrete EffectiveGrants (no None, no "inherit" survives admission; root inheritance is a fault), complete LoopResolutions (boundary bindings, feedback substitutions, boolean continuation source, explicit non-control exports, and topologically ordered atomic members), and three identities: input_hash, world_hash, manifest_hash. Composites flatten at admission; boundary renames never leak inner names.

The walker accepts only an ExecutionManifest. After validation it never resolves a reference, searches for a port, inherits a grant, chooses a capability, interprets a selector string, or decides whether an effect is safe.

Executors declare an IsolationProfile; admission rejects a live execution whose executor cannot mechanically satisfy the requested posture — it never degrades to "best effort".

M8's complete ExecutorProfile.grant_policy adds a finite, normalized inventory of exact tool sets, network modes/access, inheritable environment names, and workspace presence. ExecutorProfile.grant_faults is the one pure predicate used by admission and complete-policy adapters: posture/isolation, tools, network/enforcement, environment, explicit effort, and nonempty explicit model. An absent policy stays absent in serialized historical profiles; it is not evidence of complete enforcement.

An ExecutorProvider extends the existing LeasedCapability contract with a content-derived ExecutorLaunchIdentity and cached unavailability reasons. Assembly compares its actual profile and revision with the descriptor and requires kind executor and leased injection. Missing or known-unavailable complete providers remain discoverable as unavailable and are refused by admission; legacy lazy descriptors keep their historical behavior. These are non-I/O L0 facts, not permission for runtime to probe the host. The identity binds backend/runtime, adapter/decoder, recipe/configuration/limits, profile, and any provider-route build/configuration/policy/conformance revision. It also binds the source-derived shared executor law automatically. A production factory must obtain these facts from its actual artifacts and recheck them before use; constructing the identity model proves no physical containment.

Executor.execute accepts the existing WorkspaceView | None. The optional in-memory AcquiredCapability.materialize callback adds no durable state: acquire handle → record lease → enroll cleanup → await materialization → expose resource. The walker does not interpret its provider work. Recording failure closes an inert new handle locally without external I/O; once materialization enters, cleanup applies the provider's complete closure law. After the await, the existing run-control check refuses observed ownership loss or cooperative cancellation before exposure. Before cancellation starts recorded cleanup, an already-observed ownership loss takes precedence: joined invocation teardown cannot turn shutdown cancellation into permission to close a successor's acquisitions. Recorded cleanup joins the entire batch of resource closes and fenced row transitions despite repeated task cancellation, then propagates cancellation; cleanup failure is never suppressed. The same waiting mechanism serves unrecorded cleanup, with its original disposition. Recovery always uses the durable row, including when materialization never began. Legacy callbacks default to None and retain their eager behavior. PR A proves this sequence with genuine deferred-resource doubles, not Linux processes.

Known cleanup failures escape at their own site instead of becoming invocation failures. An original invocation/setup error is retained explicitly, and a completed checkpoint is not relabeled failed when its subsequent close fails. Close positively observes ownership before each physical close; failed closes relinquish local custody, and observed ownership loss switches remaining work to relinquishment. Normal run shutdown joins heartbeats and releases ownership despite ordinary errors. Worker cancellation rechecks latched loss after joining the heartbeat and atomically fences its intent write with the current lease; external cancellation requests retain their run-scoped authority. Task cancellation records user intent only in cancel mode; shutdown abandonment records none. Normal cleanup preserves hard-death crash semantics; already-known ownership loss stays primary while relinquishing. Future terminal transitions, including parking, refuse active acquisitions with CleanupUnresolved in the same fenced journal transaction. The released RUNNING run remains eligible for recovery. Existing terminal rows are not migrated or repaired, and an unrecorded acquisition has no invented durable recovery obligation.

Owned process conversations

L0 core/process.py declares ProcessIO: bounded byte reads, cumulative-budget writes, and stdin half-close. LinuxLauncher.exchange lends it to a trusted asynchronous adapter for one callback. The existing batch run and duplex callback use the same subprocess pump, supervisor, acquisition guards, bounded output capture and absolute deadline. A cursor reads that capture; there is no second transcript, process manager or renewable conversation lifetime.

Callback return invalidates the handle and closes stdin; it does not establish process success. Deadline and output ceilings return bounded ProcessResult salvage. An independent callback/I/O failure raises ProcessExchangeError with that result and its original cause after teardown; caller cancellation propagates. Cleanup failures remain failures, preserving earlier causes. Protocol framing and provider semantics belong to adapters, not the byte transport. The launch revision binds the L0 protocol source as well as the pump. No network, authentication, executor-profile or persistence law changes.

Contained WRITE capture

AsyncWriteWorkspace preserves the existing GitRef/GitSha values but requires awaiting reset_to and commit_all. workspace.contained and new consumer versions distinguish it from legacy synchronous WriteWorkspace. substrate/git/capture.py reuses the deferred provider in contained.py: staging Git runs inside the Linux launcher, every writer is reaped, and a separate READ launch exports immutable pack bytes for the exact candidate. Reset imports an authority-exported pack inside containment; no host Git interprets the stage or copies its configuration.

pack.py verifies the pack in a fresh acquisition-owned quarantine outside the staging mount. Git checks object format, hashes/types and reachable closure; framing, byte/count/expanded bounds and exact candidate OID are checked before authority import. process.py supplies bounded asynchronous trusted Git plumbing, with Linux parser memory/file/CPU limits and inherited physical guards. Quarantine cleanup joins before the guard is released. Verified objects carry no permanent .keep; normal authority GC may reclaim unreferenced imports. No target branch or installation receipt changes.

acquisition.py owns one external fence: publication atomically verifies the closure marker is absent and creates/verifies the candidate. Close/reconcile atomically closes the acquisition and retains or CAS-deletes/verifies absence of its candidate according to the existing lease disposition. Physical work is quiescent before publication, so successor disposal may finish while an old publisher is paused; Git must then refuse that publisher. The walker's in-memory LeaseContext.check_control observes cancellation/ownership loss before publication, but is not an atomic SQLite/Git fence. Counterfactual captures discard their own candidates, never the source run's.

New WRITE process providers cannot be assembled with legacy workspace or gate bindings, including relabeled concrete instances. This does not create a live provider or require a gate in a credential-free capture-only test graph. Contained gates and routed authority are separate prerequisites for the live adapter slices; capture alone offers no live WRITE configuration.

Contained merge gates

L0 MergeGate.verify(candidate) is explicitly async. MergeEvaluation is the same data contract used by the historical synchronous runner, re-exported at its old import path. New gates.contained bindings and awaiting component versions do not reinterpret retained consumers.

substrate/gates/contained.py identifies the installed runtime through mount-free contained probes before publishing its check-set identity. That identity binds actual runtime and trusted tool content, checks, launch law and limits; it is independent of the candidate. Assembly requires the exact descriptor and journal, a canonical absolute authority locator, and the same journal/authority objects as an assembled merge effect. A legacy runner cannot gain containment by relabeling.

Verification reuses GitAuthority's exact current-base merge preparation. Its recorded acquisition owns the temporary snapshot; exported blobs and modes must match the prepared Git tree before checks start. Lossy archive attributes and unsupported gitlinks refuse. Checks run in the existing READ-only Linux boundary without host environment, network or a provider route. Their combined stdout/stderr has the launcher's enforced bound. Timeout, overflow and teardown failure cannot become passed checks.

The bound gate observes the walker's control callback while work is pending. Cancellation joins check teardown and any trusted metadata/filesystem workers; the transient snapshot is removed before minting. Final control observation precedes the journal's fenced attestation write. Existing acquisition guards and subject-independent closure refs fence use and recovery, including leases that never verified a candidate. No new journal phase or scheduler is involved.

Live execution

A live executor is never generally available. Its provider publishes its own unavailable reasons, and admission clears them only for a provider that holds a verified authorization for exactly the graph being admitted. Three records govern such a run.

The run permit. One file in root custody (owned by root, mode 0640, read through one primitive) authorizes one run. It exists today as two types:

  • QualificationAuthorization, with stage qualification-no-dispatch, qualification-read or qualification-write;
  • the maintenance attempt authorizations, one per fixed contribution task (plan-manifest-maintenance, channel-stored-reply).

Both pin the run, the invocation path, the binding, the source graph, the capability, the adapter revision, the operator binding, the epoch and an expiry. A permit that dispatches also pins its grants and names its attempt record; the no-dispatch stage carries neither. Admission's question is timeless: is this graph authorized for this executor? Expiry, the run and the epoch are refused at acquisition.

The models keep their own wire fields and validators; core/permit.py shares their run identity, admission, acquisition checks and bounded WRITE grant law. Qualification epochs are exact positive integers, and both custody readers refuse repeated JSON keys. Unpinned grants still match for no-dispatch permits. Permit refusals are selected from the actual failed checks, never recovered from their sentences.

The attempt budget. Two records of intent are written before a turn is dispatched:

  • The attempt record is one private file per dispatching permit. It moves through acquired, intent and outcome, each made durable before anything depends on it, and it holds bounded facts and no text. It is created exclusively, so a second acquisition refuses. After intent, a death reads as possibly dispatched and the attempt is never retried.
  • The metering intent is a journal record (ADR 0024). It is written and its dispatch check passes before turn/start is written. Native start-up requests come earlier, so an absent intent does not mean no native exchange.

The dedicated journal. A maintenance run requires a journal that retains only that task's two components and no other run. The attempt record is a file so that the budget outlives a journal reset.

A maintenance contribution is a fixed Graph of a writer and a checker. Its acceptance is a journal-minted merge attestation plus a history proof. It does not install its candidate: merge_verified is not part of that Graph.

Agent authoring and introspection

M5 adds surfaces, never another workflow representation:

Python SDK sugar ─┐
                  ├─→ strict Graph → one validator → ExecutionManifest
Architect JSON ───┘

@task lowers a module-level typed function into a canonical atomic ComponentDef and an importable async adapter. The adapter's source identity covers both the user function and the SDK adapter revision, so a persisted task can be activated by a fresh process without receiving an in-memory closure. component, flow, harness, loop, and panel sugar emit only Ref, Graph, and Loop; DefinitionBundle is process-local registration convenience and never crosses admission.

Graph JSON is strict (extra=forbid, exact schema version, $-prefixed ids reserved). system.admit_graph() accepts JSON, mappings, or canonical Graphs, applies bounded authoring preflight, and enters the same validator. Expected rejection is typed data:

AdmissionFault{code, message, path, scope, repair, details}
AdmissionAccepted{graph, manifest}
AdmissionRejected{graph?, faults}

Endpoint and map faults retain exact coordinates: proposal-owned faults use path; retained definitions use {component, version, definition_path} in framed details, including through nested Graph and Loop bodies. Endpoint validation collects the failing level's faults, then unwinds compilation before parents can invent missing-output or unused-pin cascades. Diagnostics are bounded, not exhaustive across sibling levels; a repair may reveal another structural fault on the next admission.

Semantic rejection returns the canonical parsed Graph. Constructicon never auto-repairs: the caller edits and resubmits. An accepted manifest is an inspection preview, not a public execution token; ControlPlane.runs_start() re-admits the Graph while creating its durable command and run.

system.describe() derives one bounded, secret-free authoring contract from an immutable RegistrySnapshot, the assembled capability catalog and live availability, the effective root grants, and shared authoring constants. It publishes strict Graph and AdmissionResult schemas, deduplicated port schemas by their exact contract hash, component contracts and completeness, capability requirements and availability, binding/selector and loop vocabulary, limits, and content identities for the snapshot, catalog, and description. Legacy components remain usable but are marked honestly as capability-opaque or schema-opaque where applicable. See adr/0011.

SystemDescription and its digest domain are version 4. Each capability now carries unavailable_reasons beside available, and executor_profile is the explicit union of the unversioned v1 ExecutorProfile and NativeOperatorExecutorProfileV3, decoded by the raw object's schema_version: absent selects v1, exact 3 selects the native operator profile, and every other value refuses. Version 3 published complete executor policy without silently extending version 2; binding vocabulary separately publishes explicit_map_source_cardinality="one" and mapped_many_policy="ordered_scalar_selector_union_replaces_pool". Strict version-1, version-2 and version-3 description readers refuse the new description. The embedded Graph and admission schemas remain version 1. Graph's wire shape is unchanged; older validators reject the newly lawful multi-map fan-in rather than misread it.

Identity

One law (constructicon.core.identity): every hash is a domain-separated SHA-256 over canonical JSON — digest(domain, schema_version, payload). Digest fields never participate in their own payloads; idempotency keys are computed, never caller-authored. A static ScopePath locates a definition instance in the manifest; a dynamic ExecutionPath (scope + iteration frames) locates one invocation; invocation_id(run_id, path) is the identity used by envelopes, checkpoints, events, receipts, channels, cancellation, and API references. One invocation, one address, everywhere.

Effects

Evidence → authority → outcome, one mechanism for every externally visible action:

CheckResult  →  Attestation  →  EffectReceipt
(observed)      (journal-minted authority        (what actually happened)
                 for THIS action on THIS subject)

A Gate is one producer of CheckResults; a promotion evaluator is another. Every effect adapter declares native idempotency or reconcilability; the recovery law: prepared + no receipt → reconcile externally — found → record receipt; absent → execute; indeterminate → park. Never blindly repeat an unknown external effect. Preparing an effect returns the first durable request under its derived identity; every contender reconciles or executes that canonical request, never its caller's losing value. A receipt is valid only over that preparation and its (receipt_json, receipted_at) lifecycle is all-or-nothing. Idempotency keys derive from (manifest_hash, path, kind, subject).

Workspace merges follow the exact-merge-tree rule: gates run against the prepared merge commit of candidate into the current base; merge_verified(attestation_id) installs that exact commit or refuses if the base moved. "Approval" is reserved for human discretion (ApprovalRecord).

Registry and release

Registration appends an immutable exact-hash version and moves no pointer. Bare references resolve stable; promote(component, version, attestation_id) re-reads the journal-minted attestation, verifies subject identity and checks, and appends a PromotionRecord; rollback is another pointer move; in-flight runs keep their pinned resolution. A candidate is a query (any eligible unpromoted version), never a channel. rdeps(name) answers what a change touches before it is changed.

A fresh rollback plan refuses with control.registry.rollback_proof_used when its deterministic policy proof already has a promotion receipt. A completed command replay or reconciliation of an already persisted plan retains its historical receipt; that receipt does not certify the current stable pointer.

Atomic M5 components may declare required capability aliases and descriptor kinds. None means a historical capability-opaque definition; () means a complete declaration with no capabilities. Complete declarations participate in the next component-identity version; legacy definitions preserve their M1–M4 hashes. Composite capability bindings remain encoded in their Graph body.

Every RegistrySnapshot identifies one coherent vector cut:

RegistryRevision{registration_seq, promotion_seq}

The SQLite store reconstructs that exact cut from its append-only registration and promotion sequences; the memory store implements the same contract. Version, candidate, reverse-dependency, comparison, and description reads use one snapshot. A continuation cursor carries the vector, so later registrations and promotions cannot drift into an older page. A future or incoherent vector is a refusal, never a best-effort reconstruction.

Durable control plane

ControlPlane is the only public mutation gateway. Its two private delegation collaborators have disjoint responsibilities:

_CommandExecutor   thirteen mutations; claim, immutable plan, apply/reconcile, record
_ControlQueries    authorized bounded reads and page continuations

Every mutation follows one command law:

authorize → lifecycle admission → claim → plan → apply once → record → replay

The caller supplies a bounded idempotency key; actor, operation, key, canonical request hash, plan, domain receipt, and terminal response are related and validated. Response loss after the plan, domain fact, or command completion cannot duplicate a run, attempt, approval, registration, promotion, rollback, or cancellation. Historical v1/v2 responses replay as control schema 3 in memory without rewriting their durable bytes.

A rejection is an exact fact, not a lawful error code. A pre-domain refusal stores its complete typed response in the rejection plan; a post-plan race uses one response derivable from the immutable domain plan and retained facts. A command that already owns a co-located approval, reply, or acknowledgement cannot become rejected, because that lifecycle would contradict the mutation the same store already committed.

The control plane is one assembled world, not a set of compatible-looking handles. Its store is the exact journal already assembled into Constructicon and implements ControlPlaneStore, which co-locates commands, approvals, and channel exchange transactions. Its registry is the system's exact registry, and a concrete RunHost serves that same system and journal. A second handle is refused even when it points at the same SQLite file: object identity also binds the live implementation cache and process-local scheduler state.

Local component registration and initial promotion use the same command law. They require a launcher-minted static actor with admin scope and are absent from MCP. Constructicon exposes neither public mutation wrappers nor mutable journal/registry handles. See ADR 0012 and ADR 0013.

ControlPlane also owns the race-safe process lifecycle:

new → starting → started → stopping → stopped

Authorized first mutations join the same full startup as explicit launchers; unauthorized calls start nothing. Shutdown admits no new commands, waits for already-admitted command orchestration to reach a durable terminal response, then abandons workers without inventing user cancellation. RunHost owns only bounded process-local workers and recovery scans; the walker remains the sole graph scheduler. A resume command is receipted by one resume_attempt relationship co-committed with the exact transition carrying its resume_command_id. The relationship binds the command claim, plan, baseline event (or the sequence-zero PENDING fact), and attempt event. Command and event point reads validate both halves; current-open inventory proves their bijection, and a command that owns the relationship cannot later be rejected.

Opaque cursor schema 2 binds actor, endpoint, canonical query, calibrated checksum, snapshot bound, and continuation key. The checksum detects accidental corruption; it grants no authority. Run/event pages use immutable upper bounds, registry pages use RegistryRevision, and detail chunks remain digest-bound. An authorized event page or addressed channel query can mint a detail reference from the complete immutable fact it already validated. This avoids reloading that same fact merely to hash it. A reference retains no authority or cached proof: each later detail read authorizes the caller and validates the current durable fact again. Channel inbox references retain their governing-request authorization path; mutable acknowledgement state never enters message detail.

Counterfactual admission first validates the retained source Graph under the source manifest's exact version lock. Preflight and compilation share one version-selection rule; neither substitutes current stable for a pin. An invalid baseline is REQUEST_INVALID, with reproduce-or-reauthor repair. Only a valid baseline reaches override admission, where invalidity is COUNTERFACTUAL_LOCK_MISMATCH. Successful override compilation must also preserve the complete ComponentResolution.contract_hash at every affected scope, including boundary ports the graph does not consume. Refusals follow the existing durable command law and create no run. runs_reproduce retains the old manifest without re-admitting its Graph; history is not retrofitted.

Channels

A channel makes a participant on another rhythm an ordinary typed participant in a run. One L0 Channel contract has two transports: InProcessChannel for same-process composition and contract tests, and MailboxChannel, which persists in the one authoritative journal database so a message and the run parked on it survive or fail together. Neither owns a second database, broker, or schema manager, and describe() publishes each transport's honest ChannelProfile.

Identity is derived, never authored. A request id comes from invocation_id(run_id, path) plus the sealed channel binding, lane, interaction, and port; a reply id comes from the request it answers. One invocation therefore sends at most one request per bound channel, lane, and port, and a send reconstructed after process death recomputes the same id rather than appending a second message. A request pins both halves of the exchange: contract/port type its own envelope, while reply_contract/reply_port are sealed values saying what reply is admissible.

History is retained and delivery is honestly at-least-once. Nothing is deleted or dequeued; an acknowledgement is a delivery fact about one actor and never claims a component consumed the payload. UNIQUE(reply_to) admits one reply per request, so concurrent repliers yield one exact reply and a typed conflict. A reply records its writing command and ensures the sender's acknowledgement in the same transaction; an acknowledgement written earlier remains its original command's fact rather than being stolen by the reply. One command cannot write two replies or cross from reply ownership into an unrelated acknowledgement. Schema 7 adds a nullable writer and nullable reply-provenance version plus a partial unique writer index: two NULLs identify true schema-6 history, while a current reply must carry both its writer and provenance version 1. It also adds an acknowledgement-provenance version and independent immutable message and acknowledgement migration cutoffs. Migration bounds schema-6 replies by the captured message_seq and marks acknowledgements at or below the captured ack_seq as version 0; current replies and acknowledgements carry version 1, lie above their respective cutoff, and name an extant writer command. The sealed cutoff pair makes legacy provenance a positive historical fact rather than something a damaged current row can imitate by losing one column. A current durable reply is readable only when its writer's operation-specific immutable typed plan independently proves the payload and every derived field: ChannelReplyPlan for advice, or ChannelApprovalPlan plus its exact approval exchange. A schema-6 advice reply retains only acknowledgement-owned provenance: its version-0 acknowledgement's command id is an opaque historical scalar and is never resolved into a current command. A schema-6 approval exchange may still recover and validate its ChannelApprovalPlan through the retained approval row. Neither compatibility path can manufacture a current command plan. Inbox pages are taken at one ChannelRevision(message_seq, ack_seq) vector cut ordered by durable sequence, so tied observation times still order totally and a later write cannot shift an older page.

Routing is a manifest fact, not a live-object detail. Assembly supplies a ChannelEndpoint (lane, interaction, recipient) on a capability descriptor; admission compiles it into the scoped CapabilityBinding together with the one request/reply pair it may carry, taken from the component's single declared input and output. Capability bindings participate in manifest identity, so two hosts that assemble one manifest with different routing disagree on manifest_hash instead of silently deriving a second message — and activation compares the live endpoint against the sealed one, because a revision is only a string. A manifest that binds a channel declares schema 3; one that binds none stays schema 2 and byte-identical.

Assembly also binds the physical world: descriptor identity, channel id, profile, and live transport must agree; a durable mailbox uses the system's exact journal; and ChannelSendEffect uses that same journal and the exact transport objects used for reads and replies. Component code receives only the sealed ask facade. The two built-in capability kinds are fixed facts: channel.mailbox means sqlite_wal, and channel.in_process means process; a custom kind may declare its own truthful profile. A sqlite_wal channel must implement JournalBackedChannel and prove that its journal is the system journal. The raw transport never appears through ctx.capability(alias), including when a leased provider tries to return one.

Nothing about the message is therefore chosen at call time. A component holds only await ctx.channel(alias).ask(payload), and pinned source is not pinned behavior: a component free to name its own port could branch differently on a second host and append a second request.

A panel is a Graph pattern over this, not a primitive. panel() emits literal fan-out and mapped fan-in, with one result selector per member into the atomic aggregator's many input. The combinator executes nothing, chooses no model, infers no quorum, and hides no scheduler; its Graph is byte-equal to the hand-authored one.

Authoring requires at least two member bundles sharing one exact request/result boundary, both ports of cardinality one, with distinct nominal contracts. The aggregator declares exactly one many input, of that result contract, and no other input with the same nominal role. The emitted input-boundary names are unique. Member ids must be dot-free and result-port names non-empty so the selectors are representable; general Graph identifier syntax is unchanged.

The maps retain membership as authored intent. Admission requires every named result to supply one scalar of the resolved gather contract, so an incompatible result cannot silently vanish into the pool. Bystanders, graph inputs, and transitive helpers cannot widen that mapped gather. Two distinct member selectors also make a gather drifting to one or optional a refusal. This is the general map law, not a panel-specific validator. The standard aggregator constructicon.std/panel-quorum is pure and declares no capability; it derives each member's node from the member's reported path against its own path — same parent scope, the aggregator's loop frame as a prefix of the member's, a member's own frame naming a loop at or beneath its seat whose body its invocation sits in, and every path held to what the walker writes: one frame at most, its loop directly above a body segment, the aggregator's own path included — refuses any other topology, the aggregator's own seat, or a node reported twice, orders members by the canonical JSON of their path, and concludes one of four explicit outcomes (approved, rejected, insufficient_responses, impossible_quorum) from an explicit quorum input. The result names its aggregator and run and is self-verifying: validating one re-derives placement, tally, and outcome from the members it carries and refuses a contradiction, whichever aggregator wrote it. Every outcome a member reports — responded, declined, unavailable, timed_out — is data; the kernel owns no clock. A human member is human-advisor followed by constructicon.std/panel-ballot, which reads the human's reply strictly as a ballot and carries the actor and message id the executor stamped, so the vote can be followed back to its durable reply. Member identity is member-reported and shape-checked, not kernel-attested; attesting many-port sources is deferred. The two panel components delegate their behaviour to the law in core/panel.py, so its revision — a digest of the contract classes and law bodies, derived rather than named — is stamped into their implementation identity: a changed law is a new version by construction, never a silent change of a retained one. A composite's declared boundary is its Graph's — admission exposes the Graph's ports, so the registry refuses a declaration that differs, component() refuses to redeclare one, and admission re-proves a retained store rather than trusting it, as a fault whose details name the retained component and version exactly — canonical JSON framed by a separator that canonical JSON always escapes, so no name can forge or break the frame — under the existing graph.contract.invalid code, since the code set is the versioned wire schema. A boundary is compared as canonical bytes, never as models: 1 == True is a Python fact, and an embedded schema that differs only there is a different boundary. The registry compares whole definitions the same way when it deduplicates or checks an identity collision, and an embedded schema is bound to its digest on every definition's ports, a composite's boundary included. The sugar still emits unversioned Refs, so compatible promotions reach future runs. Its maps constrain the named result ports, not the members' complete boundaries: request binding remains magnetic at admission, and unrelated added outputs are outside the map's claim. Retained pre-M7.1 panels remain unmapped, with their historical omission behavior; neither reproduce nor counterfactual invents maps for them. See ADR 0017.

A named contract revision is not the digest of a schema, so the registry refuses to embed one on a port. system.describe() publishes the standard vocabulary instead — every named contract revision and the shape it names, from the L0 catalogues beside the contracts — and reports a port's schema available when the port embeds one or names a catalogued revision. A shape no port carries, such as the ballot inside an advice reply, is published the same way (I9).

Parking and waking

Waiting is not failing. A component that has sent or reconciled its request and found no reply raises InvocationParked naming that request; the walker records ordinary parking facts and checkpoints nothing, because there is no output yet and a checkpoint would make the next attempt skip the wait. No workspace, lease, or coroutine stays open while a human thinks.

Recovery eligibility comes from durable domain facts, never command completion. Journal.parked_waits projects current PARKED runs and their latest exact RunParked event; a bounded scan asks which of those requests already carry a reply and wakes the run at the projection's event fence. The reply's immutable writer command and plan are checked as provenance, but whether that command is already complete is not the wake signal. A death after the reply's domain transaction but before command completion therefore still produces the wake, with no wake outbox. Scanning parking facts rather than watermarking replies also closes the race where a fast reply lands just before the park is recorded. A missing or non-request wait target is journal damage, not an unanswered request; the projection fails closed instead of stranding the run silently.

PARKED never joins the ordinary recovery statuses: a parked run waits on a human, not on a lost worker, so only an observed reply may wake it. One AttemptCause names exactly one reason why an attempt started — M6's committed resume command or M7's stored reply — and M6 keeps its exact legacy key. Its single serializer/parser owns both reserved payload keys and refuses a payload that claims both causes. See ADR 0014.

Who may read and answer a message is sealed on the request, never chosen by the answer. An advisor is its own role rather than an observer with extra rights, so the channel surface authorizes on constructicon:advise and constructicon:approve alone. A reply carries no recipient — it is addressed to the run, not a person — so authority is read from the request it answers. Advising is not approving: channels_reply consumes advice, and an approval is consumed only by request-bound runs_approve, which commits the ApprovalRecord, the reply, and the request's acknowledgement in one transaction when the acknowledgement is new, or preserves an equal earlier delivery fact. The approval and reply always share the exact runs_approve command and authenticated actor; a retry validates those durable relationships rather than trusting its own plan. A component sees only a payload, so anything it may promise about authorship the executor writes there from authenticated facts. See ADR 0015.

Journal

One transactional log, many projections. SQLite (stdlib, WAL) is authoritative for runs, events (per-run monotonic sequence), checkpoints, attestations, channel messages/acks, and effect records; node completion commits checkpoint and event in one transaction. JSONL, summaries, and renderings are regenerable projections (M2+). Resume re-walks the graph: a checkpoint at the same ExecutionPath with matching input hash and resolved version restores; the first miss resumes live. Reproduce starts a new run under a past run's exact manifest and inputs.

One public SqliteJournal implements the separate L0 Journal, RegistryStore, and ControlPlaneStore contracts over one schema-11 WAL database. ControlPlaneStore extends the standalone ControlStore ledger with the transaction that must also own channel facts. New ordinary attestations bind their fenced minting run in the v2 identity; policy IDs remain v1. Migration preserves historical proof bytes, IDs, references and primary seals, adding exact positive witnesses for retained ordinary-v1 proofs. Current point and SQL readers require the same witness and creator-world authority; reopening does not repair missing evidence. See ADR 0023. Its private modules are named by enduring responsibility:

_sqlite_base             connections, transactions, exact scalar/JSON decoders
_sqlite_schema           creation, versioned migrations, inventory validation
_sqlite_fact_seals       mechanical write-once positive-seal storage
_sqlite_runs             manifests and the immutable run-creation world
_sqlite_execution_facts  event/checkpoint and resume-attempt relationship facts
_sqlite_effects          effect preparation and historical request/outcome eras
_sqlite_leases           current event provenance and historical lease seals
_sqlite_capability_provenance  per-run accounting eras and historical lost facts
_sqlite_attestations     attestation identity and historical provenance eras
_sqlite_execution        fenced lifecycle writers over those projections
_sqlite_registry         registrations, promotions, coherent snapshots
_sqlite_actors           exact actor decoding and its named legacy shape
_sqlite_commands         command phases and pre-v7 resume-plan evidence
_sqlite_approvals        approval projection and durable relationships
_sqlite_control          command transactions and approval application
_sqlite_channels         messages, acknowledgements, provenance, bounded reads
_sqlite_queries          bounded run/event projections
_sqlite_accounting       coherent run/status and historical capability accounting
_sqlite_metering         fenced native dispatch facts and bounded usage projections
_sqlite_capability_disposal  administrative receipt relationship and inventory

This is implementation decomposition, not multiple stores.

ADR 0024 adds a single native executor metering event family in schema 11. Actual Codex and Claude task writes require fenced intent after byte validation; outcomes record bounded facts that passed the adapter's correlation and custody checks. The run result's third version reports source-scoped known subtotals and evidence at its accounting event cut. Historical runs remain positively unmeasured, and both monetary amounts remain unknown.

Every durable JSON boundary rejects duplicate keys, non-finite numbers, and non-scalar Unicode before typing. Except for an explicitly named, fixture-proven historical writer shape, a typed projection must render to the same canonical JSON fact it decoded; model coercion is never repair. Relational copies of identities and lifecycle fields are independently checked, and stored timestamps use one exact aware-ISO decoder so a projection cannot change the lexical key used by a cursor. Durable SQLite booleans and sequences are exact integers, not Python truthiness. Contradiction is JournalDamaged, never a best-effort projection or a silently healed fact.

An immutable row is not its own evidence. Each current durable fact or authority-bearing relationship family co-commits one positive seal over every exact relational and JSON scalar under an independently selected key. A current open validates the complete bidirectional inventory and never repairs or reseals it. An ordinary read uses the owner's canonical projector and requires the selected fact's matching seal; it does not rescan or weaken that inventory. Only a versioned migration may classify retained historical bytes: 6→7 establishes the original fact families, and 7→8 establishes capability-accounting eras and historical lost evidence. Each validates its source inventory before classification. Missing current provenance therefore cannot become legacy compatibility, and deleting a fact cannot turn its identity back into permission to create. See ADR 0016.

A NodeFailed event may carry an optional refusal key: the closed RefusalCode members its ContractViolation carried, most general first (core/refusal.py, docs/designs/REFUSAL_CODE.md). It takes no new era or schema version, and fits ADR 0016 rather than being exempt from it. The ordinary-event projector requires only a JSON object and constrains no NodeFailed shape. The event's seal covers its exact stored payload bytes, so a written key is never removed. Absence means "not recorded" for current writers as well as old ones, so the key never selects a historical path. An uncoded failure's payload is byte-identical to its earlier form. No decision reads a code: codes stay out of checks, attestations, subjects and manifests.

Executor errors carry optional closed refusal codes, omitted on the wire when unrecorded. Callback guards preserve their primary code through the executor and writer; an independent cleanup failure or exception group stays opaque. Current maintenance diagnostic/report output is schema 2: it prefers codes sealed in a failed-node event and uses the historical sentence mapping only when no code was recorded. The complete packet is bounded at 16 KiB, including all failure-code and callback-content observations. New operator packages must select this output contract explicitly; historical frozen readers remain tied to their reviewed controller and schema.

Schema 8 co-commits a positively sealed accounting era with every new run. Migration binds each retained run's validated event floor and exact acquisition inventory; only a current creation era proves complete history from zero. Reads reconstruct that floor after later acquisitions or lifecycle changes, so erased legacy evidence cannot become empty accounting. Historical lost transitions and initially lost acquisitions have separate migration-only witnesses. Current workers cannot mint lost or reactivate a historical lost acquisition. Exact retries of proven historical transitions remain observations, not permission to mint new loss.

runs_result publishes result schema 2 with a complete capability-accounting summary and a chunked detail pinned to its event cut. Status and accounting come from one SQLite read snapshot. Loss distinguishes positively witnessed opaque history from disposal; opaque loss has unknown physical cleanup, never an invented receipt. The public accounting payload alone determines its detail hash. Historical cuts reconstruct later-closed acquisitions without including later acquisitions, and refuse cuts outside the positively proven era.

The old unversioned result model remains an exact compatibility decoder; missing accounting is not converted to zero. Failure previews expose partiality when their 1,000-event scan or 20-item bound omits evidence. Other result details and outputs retain their existing read semantics; this is not a whole-result snapshot promise. The accounting reader prefetches retained lease facts once, then uses the canonical pair projection: it avoids repeated whole-journal identity queries, but still has linear global prefetch cost. Existing opaque legacy-event interpretation is unchanged.

runs_dispose_capabilities is an ADMIN command over 1–100 distinct exact acquisition pairs, not a cleanup operation. It admits an ownerless RUNNING run and active acquisitions from one coherent snapshot. Its sealed plan binds the run world, owner epoch, event extent and complete selected histories. The application transaction either records every selected acquisition as lost with no disposition, its contiguous transitions, one public audit and a private command/receipt relationship, or records none. It does not increment the run's owner epoch, contact a provider or release a physical guard. An expired but non-null worker owner still refuses admission.

Replay proves the historical receipt before comparing current state. A positively advanced epoch or event extent yields a plan-derived supersession refusal; absence of a receipt alone is never that verdict. Public receipt and accounting hashes exclude the private reason and reason-bearing command/plan hashes. Disposal reports physical cleanup as unverified, never successful. Disposed acquisitions cannot subsequently close; opaque historical loss keeps its established compatibility law. RunHost deferrals and scheduling are not changed by disposal. See ADR 0022.

Schema 9 introduces the disposal relationship without rewriting schema-8 eras or historical witnesses. Its migration validates the retained inventory and requires an empty disposal inventory before advancing the version atomically. Receipt, event, command and accounting readers share one relationship projector. A complete read may reuse its proven histories and receipts within that owned SQLite snapshot; no proof cache survives a writer or an await.

The synchronous read_snapshot owner also retains at most one most-recent successful immutable run-world proof. Its exact sealed run fields key the proof; lifecycle, liveness, actor and row-specific provenance checks remain outside it. The scope is bound to one connection, thread and owned transaction, disables reuse permanently after connection-local DML, and clears before rollback on every exit. Consumers perform reads only; they cannot change the schema, commit or restart the owned transaction. External commits leave the existing WAL view coherent; the next view proves its world afresh. Defensive copies protect nested manifest and input mappings. Write transactions and unowned transactions do not use this reuse path. Opening still audits the complete inventory; this removes repeated world proofs within that same audit, not any required fact or relationship check.

Compatibility preserves exact writer bytes rather than normalizing them into today's shape. M1/M2 effect requests omit run_id, manifest_hash, and mode; M3–M5 requests carry run_id and manifest_hash but omit mode; current requests carry all three. Historical terminal receipts remain hashed over their own request era. A pre-v7 keyless outcome event carries a second, migration-only positive classification; a current outcome must carry its exact effect key and can never acquire that historical marker. Schema-5/6 actor scope arrays and pre-sort component set arrays retain their original unique ordering while producing a lossless typed view; current writers always emit the canonical order. No other coercion is implied by these named exceptions.

Resume-plan wire eras are disjoint. Schema-7 SQLite and in-memory writers accept only typed schema-1 envelopes. A current resume domain plan additionally carries terminal_rejection_policy="exact-v1"; a typed pre-domain refusal is a separate plan family whose response is already sealed in that plan. Only the 6→7 migration may mint resume_plan_pre_v7, for every retained raw runs_resume plan and for a weak typed resume domain plan. Its explicit prepared phase binds the claim and plan without inventing future terminal evidence; its terminal phase also binds the exact retained response. An exact-v1 plan is never historical, so removing its policy cannot downgrade it into compatibility. A new resume intent observes the run row and latest retained event through one RunHead snapshot, so a concurrent transition can supersede a coherent fence but cannot manufacture a mismatched immutable plan.

Loops use that same machinery rather than a second scheduler. Every iteration adds one IterationFrame to each member's ExecutionPath; checkpoints, effects, leases, and events therefore remain frame-distinct automatically. A checkpoint at an invocation either matches and restores or contradicts and refuses before any implementation, capability, or effect runs. Continuation is the one canonical nominal boolean contract. A false decision exports only the manifest-listed non-control values from that completed iteration; all-true exhaustion publishes nothing and becomes a typed root PARKED outcome at graph closure. Independent siblings still finish; dependents report their producer as PARKED. See adr/0010.

One canonical InvocationStatus enum serves runtime, journal, API, and renderings. Run lifecycle: PENDING → RUNNING → {SUCCEEDED | FAILED | CANCELLED | PARKED} with machine-readable parked reasons.

Glossary

Several words name more than one thing. Each row gives the meanings in use; the names in code and on the wire are unchanged.

Word Meanings
channel A release channel is a named pointer to a component version, such as stable (ADR 0004). A message channel carries typed messages between a run and a participant (ADR 0014).
maintenance Store maintenance is offline operator work on a subscription store: login, repair or replacement. Each maintenance withdraws the old generation, publishes a new one that is never reused, and activates it only after qualification (ADR 0021). A contribution task is one of the two fixed maintenance Graphs that propose a repository change.
qualification Runner qualification proves a hosted Linux runner meets the containment prerequisites (ADR 0019). Executor conformance is the staged evidence that an adapter behaves as its profile says. A qualification authorization is a run permit, described under Live execution.
candidate A registry candidate is any retained component version other than the current stable one. A Git candidate is the commit a contained WRITE captured.
manifest The ExecutionManifest is the sealed description of one run. The plan manifest is the data file the first contribution task writes. A MANIFEST.sha256 is a digest list for a set of files: the planning archive, or one operator package.
receipt An EffectReceipt records the outcome of one effect request: committed, rejected, unknown or simulated. A phase receipt is an operator tool's record of one completed step.
grant EffectiveGrants are the resolved limits an invocation runs under. A phase grant is the reviewed record that releases one operator step.
attempt An AttemptCause says why a run attempt started. A MeteringAttempt is the journal's intent and outcome for one executor dispatch. An AttemptRecord is the private file that budgets one permit.
generation, epoch A generation numbers an operator store's maintenance history and is never reused. An epoch fences one run owner or one acquisition. Both are fencing counters, over different resources.

Milestones

  • M1 (done) — the vertical slice: Graph → validate → ExecutionManifest → FakeExecutor → checkpoint → idempotent effect → EffectReceipt → reproduce; channel-aware resolution; SQLite journal; itemized admission faults.
  • M2 (done) — crash & resume hardening: fenced run leases with continuous heartbeats; write-once durable facts; persistent registry with immutable snapshots and one activation path (start/resume/reproduce all refuse drift); fault probes at every completion/effect/transition boundary with a unit lane (InjectedCrash) and a real os._exit subprocess lane over a durable fake external world; cooperative cancellation; read-time liveness (never a persisted LOST); dependency blocking with complete DependencyReports; canonical JSONL/summary projections; user_version schema migration from M1.
  • M3 (done) — git authority: a bare, protected authority repository (deny-all pre-receive; zero protected-ref authority in agent workspaces); staged WRITE workspace leases fenced by ownership epoch; exported read-only snapshots; real Ruff/Pytest gates over the prepared merge commit; one complete typed MergeSubject; journal-computed attestations minted from drafts; merge_verified installing that exact commit through one git ref transaction (target CAS + idempotency marker ref) with marker-based crash reconciliation; discard-on-failure with reconcile-on-reclaim. See adr/0009.
  • M4 (done) — generic bounded loops compiled completely into the manifest; frame-aware checkpoints, effects, and invocation leases; strict boolean continuation; feedback and final exports; graph-closure PARKED semantics; convergent resume/materialization; v3→v4 lease migration and historical v1 manifest compatibility; staging-local reset_to(GitRef); a real Ruff/Pytest red→repair→green Git loop installing exactly one attested merge. See adr/0010.
  • M5 (done) — strict direct Graph JSON; restart-safe @task; canonical component/flow/harness/loop sugar; declarative capability contracts with legacy identity compatibility; typed and bounded system.describe(); architect-proposed admission with one versioned repair-fault model; SDK, direct, and repaired JSON Graphs proving identical manifest identities; a serialized architect repairing schema and semantic faults and executing successfully. See adr/0011.
  • M6 (done) — one authenticated durable command law for ten mutations; keyed local assembly; race-safe ControlPlane/RunHost lifecycle; committed resume handoff recovery; schema-3 control responses; revision-vector registry snapshots; schema-2 snapshot cursors and digest-bound details; counterfactual simulation; optional stdio/OAuth MCP adapter; and schema-5 SQLite decomposed by permanent responsibility. See ADR 0012 and ADR 0013.
  • M7 (done) — channels (InProcess + Mailbox over the journal), typed human inbox/reply/ack and request-bound approval commands, MCP delegation, standard advisor/approval components, and the panel pattern: panel() sugar byte-equal to the direct Graph, nominal member/quorum/result contracts, a pure deterministic quorum aggregator, and a human member composed from the advisor and a ballot adapter, proven across real process restarts through the control plane's own host. See ADR 0014, ADR 0015, and ADR 0016.
  • M7.1 (done) — authored panel membership through ordered scalar maps; complete endpoint and map-destination validation with exact nested/retained coordinates; plural panel authoring; schema-2 introspection; baseline-first, lock-aware counterfactual admission and complete override-boundary checks. PR A merged as #23 and PR B as #24. Unmapped pools and retained execution bytes are unchanged. See ADR 0017 and the implementation record.
  • M8 (bounded closure) — PR A supplies complete executor policy, content identity, assembly/admission coherence, schema-3 introspection, and post-record materialization. PR B supplies the networkless Linux launcher, immutable per-call reaper, deferred READ/WRITE materialization and acquisition closure. PR C implements asynchronous contained capture, immutable pack verification, and atomic candidate closure. PR D adds contained async gates and mount-free check-runtime identification. Accepted ADR 0021 selects operator-bound subscription executors for the explicit v3 profile; gateway v1 is unchanged and unselected. N1 adds the strict operator-mode contracts: schema-3 native operator policy, isolation, profile, egress, store and launch-identity records in core.native_operator, v1/v3 boundary decoders outside the v1 source-law closure, one pure grant predicate, schema-4 introspection with unavailable_reasons, and complete fake providers; v1 bytes and the v1 law revision are pinned by goldens captured from d2b8f94. Codex has bounded historical READ/WRITE and maintenance-application acceptance, not a generally enabled production provider or qualification for another boot. Claude Code has accepted historical READ and WRITE evidence. Pi has a qualified bounded local READ profile on hosted Linux; the common workspace component also runs with scripted Claude and Pi bindings. Codex's no-workspace profile cannot satisfy that component's admission. The contained WRITE proof installs the attested merge commit, reconciles an interrupted install without a second write, and keeps malformed READ output from checkpointing. See the implementation record's historical closeout and q13 contribution. Native CI evidence is described in M8_CI.md. See ADR 0018 and the implementation record.
  • M9 — self-improvement phase 1 (prompt/context skills). The installed fixed selector trial composes an exact Codex READ catalog choice with the scripted exam, owner approval, journal proof, promotion replay and rollback. Credential-free proofs establish the composition, not current live availability or prompt quality. See designs/SELF_IMPROVEMENT.md.

Non-negotiable failure tests

Area Required failure test
Registry Component updates during run-start resolution → one atomic world
Channels A freshly registered candidate never resolves from a bare reference
Promotion Mismatched subject identity or missing evidence → refused
Port binding A second compatible producer → itemized ambiguity error, never a rebind
Explicit maps Ordered scalar fan-in replaces the pool; a missing destination, non-scalar source, or incompatible mapped result → exact admission fault (M7.1)
Connection endpoints Unknown nodes → exact proposal or retained-definition fault, including inside Loops; no parent diagnostic cascade under a small fault cap (M7.1)
Counterfactual admission Invalid retained baseline → REQUEST_INVALID; incompatible override, including an unused boundary change → COUNTERFACTUAL_LOCK_MISMATCH; reproduce preserves retained bytes (M7.1)
Nested graphs Reused local node ids stay distinct via scope paths
Journal Crash between event and checkpoint → recoverable, truthful state
Effects Crash after external success, before receipt → reconcile, no duplicate
Git proof Base moves after gates pass → refused or revalidated (M3)
Forgery A caller-authored all-green result cannot authorize any effect
READ isolation Shell writes fail physically, or the executor is inadmissible (M3/M8)
WRITE capture Hostile staging metadata never executes on the host; immutable verified packs preserve exact candidate history; late publication cannot cross committed closure (M8)
Gather One producer fails → complete producer-status report, never a hang (M2)
Agent authoring Unknown Graph fields are refused; a serialized architect repairs schema and magnetic ambiguity faults using describe + rejection data only (M5)
SDK identity A persisted decorated task activates in a fresh process; SDK/direct/repaired Graphs produce one manifest identity (M5)
Command law Response loss after plan, domain fact, or completion across all thirteen mutations → one exact fact and response (M6/M7, and capability disposal)
Control lifecycle Startup/shutdown and mutation/shutdown races → no orphan pump, command after close, or invented cancellation (M6)
Registry pages Registration or promotion between pages → old vector cut unchanged; fresh query sees the new revision (M6)
MCP Actor-derived handler delegates once; local assembly and mutable services have no transport route (M6)
Message channels One derived id survives process death: a reconstructed send appends no second message and invents no new time; a second differing reply is a typed conflict (M7)
Channel cuts A send or ack between pages → old vector cut unchanged; a future revision is refused (M7)
Channel parking A death at any send seam yields one message; a provenance-valid stored reply wakes the PARKED run without waiting for command completion (M7)
Telemetry Damaged executor output never reports clean success
Reproduction Installed code differs from recorded digest → refuse (M2)
Loops Contradictory iteration checkpoint, hidden nested loop, or non-boolean control → refuse before new work; exhausted roots report PARKED (M4)
Rollback Both versions and all evidence retained; in-flight runs keep pins