interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / docs / adr / 0003-ai-native-source-control-model.md

508 lines · 104723 bytes Raw Blame History Source

ADR 0003: The AI-Native Source Control Model

1. Context

ADR 0002 made Synapse the primary source control system for AI agents, with Git as a small machine bridge, and fixed the performance rule (section 2.6). It left the native model to this ADR. The owner's direction, verbatim (Drake, 2026-10-14):

"I want Synapse to be the new Git for AI." "Don't just copy features because we feel like we need them. I want you to take the good parts of everything and make the best system possible." "This is going to be for AI only. AI is going to be the only one writing code in the future and this is not going to be for humans. Nothing human-related needs to be in this." "Eventually Synapse will take over Git from our actual hardware." "Be inventive... Build your own." "When you're doing things to improve speed, I don't want '5 times faster' or '32 agents'. The ultimate goal is to be as close to physically possible in speed and throughput. If there's something between speed and the hard metal, it needs to get rewritten or reworked to make it faster. We need to push this to the limit." "I want our things to be measured in physical scientific units that can be measured and verified in a scientifically verifiable open way. I do not want people to be hiding behind these fake units, like tokens or even bytes." "Omega needs to be the final layer that is just talking to the metal, the machine itself." "Fuck the targets. Chase the boundaries of physical limitation."

This ADR derives what AI agents need from evidence (section 3), judges the best ideas from other systems against those needs (section 4), and defines the native model (section 5), the performance method (section 6), a Turing-unit proposal (section 7), the crate map (section 8), and the implementation sequence (section 9).

2. Principles

3. What AI Agents Actually Need

Each need is derived from measured or recorded behaviour, not from another system's feature list.

IdNeedEvidence
N1Cheap speculative attempts; most are thrown away; attempts at the same task must stay linkedHive ledger snapshot 2026-10-14T15:31:22Z, rows counted with awk over the table: 563 lanes, 41 merged (7.282 %, calc:077749de), 501 retired (88.99 %, calc:d50a715e); Gate 0's earlier snapshot recorded 559, 41, and 499; 73 lane names match a rough retry-suffix pattern (for example STALEGEN-RD-V1 to -V5)
N2Read without a checkout293 worktrees using 28 GiB (du -sh) on 2026-10-14, against 291 and 25.19 GiB at Gate 0; git worktree add p50 588.511 ms and 138.98 MiB each; Gate 4 G1 (fresh worktree per proposal) p50 1,061.46 ms and about 146 MB per proposal
N3A filesystem view only when building or testingGate 4 section 9: agents that build or test still need a checkout; ADR 0002 cutover gate 5
N4Proof by evidence bound to exact contentHandoff 2026-10-14: test receipts reused across commits produced a stale PASS risk (aien-sovereign-core#516, fixed by dropping cross-commit reuse; the same risk remains in direct aien-test runs on main)
N5Frequent conflicts and rebases, resolved without stopping workGate 0: 18 conflict, rebase, or stale-base mentions in the ledger; 5 lanes exist only to rebase (for example I11-REBASE, E1-REBASE); Gate 4 section 5: path-level detection over-flags 3 of 253 pairs that Git merges cleanly
N6Undo of mistakes, by the agent or by a supervisor, without losing anythingLedger: 501 lanes closed with "worker gone, row closed by hand" (the work's fate is not recorded in source control); LD replay finding: speculative work on a stale belief is discarded and rerun
N7Least privilege for untrusted agents, delegable to sub-agentsThreat model T1 to T6; the hive runs orchestrators that hand work to workers, which hand work to sub-workers
N8Machine-structured intent; no human readingOwner direction (P1); ADR 0002 section 2.1
N9Speed at the physical limit, in SI unitsOwner direction (P3); Gate 4 section 3.1, durable Synapse writes (arm S1): at 1 agent, a mean interval of 13.8 ms between acknowledgements (calc:80d09f2c) and p50 latency 11.8 ms (p99 27.89 ms); at 32 agents the interval stays near 14.39 ms (calc:5cf81fd4) but p50 latency is 417.81 ms and p99 1,221.51 ms, of which the p50 queue wait is 400.9 ms (0.96 of the median, calc:cad20fdd). Only the interval is flat; latency grows with queueing behind the single writer. CPU per change 0.88 ms at 1 agent (section 3.3)
N10Promotion trusted by machines, with machines as delegatesADR 0001 section 2.2 item 3; ADR 0002 section 2.5
N11Awareness of what other agents are touching nowLedger retry and rebase lanes; Gate 4: the path-level conflict query across all open proposals costs 0.219 ms p50 and is the only coordination signal today
N12Determinism: the same work gives the same result regardless of agent count or arrival orderLD replay finding (2026-10-01): "history differs by worker count"
N13Changes that span repositories and must land togetherOmega builds against the physics repository at the commit pinned in physics.lock (omega README); agents work in both aien-sovereign-core and omega (Gate 0: 150 and 310 registered worktrees)
N14Private speculative workUntrusted agents (threat model section 1) and discarded attempts (N1) should not be readable by every other agent by default
N15A leaked secret must not become permanent and searchableAgents write content, traces, and logs with no human check before admission; this design keeps immutable storage, never-lose-work (P6), a trigram index, an action cache with stored logs, and context traces, so one committed key would be kept, replicated, and searchable. The threat model's catalog (T1 to T6) has no entry for this

4. Survey: What to Take, Adapt, or Reject

Verdicts: Adopt (take the idea as is), Adapt (take the idea, change the mechanism), Reject (no AI need, or a cost that breaks P3). Sources are listed in section 12; claims not confirmed from a primary source are marked UNVERIFIED.

System and ideaVerdictNeedOne-line reason
Git: content-addressed Merkle DAGAdoptN4, N12Integrity, deduplication, and equality checks in one digest comparison [S1]
Git: SHA-1 object IDs as native identityRejectN4SHAttered showed a practical SHA-1 collision and Git itself is moving to SHA-256 [S2]; SHA-1 stays only in the bridge map
Git: loose objects (one file per object)RejectN9Per-file filesystem objects: Gate 4 shows 17,818 allocated against 11,949 apparent bytes per Synapse proposal with file-per-blob, and Git loose objects take at least one 4 KiB block each
Git: packfiles with delta chains [S1]AdaptN9Keep append-only packed storage; replace read-time delta chains with whole chunks (reads should cost one lookup, not a chain walk); deltas only on the bridge wire
Git: index, staging area, working-tree checkoutRejectN2, N8Exists for a human editing files in a directory; agents write changes directly
Git: commit message, author name, wall-clock time in identityRejectN8, N1Human text; timestamps in identity stop identical work from deduplicating
Git: mutable named branchesAdaptN10, N7Keep named pointers, updated only by atomic compare-and-swap under capability scope
Pijul and Darcs: commutation of independent patches [S3, S4]AdoptN5, N12Independent changes apply in any order with the same result, so outcomes do not depend on arrival order
Pijul: line-graph storage with conflicts as graph state [S3]AdaptN4, N2Keep conflicts as data; store snapshots (tree digests) instead, because evidence must name the exact tree that was tested and reads must not reconstruct a graph
Darcs: patch theory as the storage modelRejectN9Pijul documents Darcs' exponential merge problem as the reason it was rebuilt [S4]
Jujutsu: stable change ID separate from commit ID [S5]AdoptN1, N6One task's attempts and rewrites stay one change while each revision keeps a content digest
Jujutsu: operation log with undo and restore [S6]AdoptN6Every repository state change is an operation; undo is a new operation; nothing is lost
Jujutsu: conflicts stored in commits as terms that cancel [S7]AdoptN5Rebase never fails; repeated rebases simplify; resolution can come later from any agent
Jujutsu: working copy is always a commit [S5]AdaptN6, N1An agent's workspace is always a draft revision on the server, so a worker that dies leaves its work as data
Mercurial evolve and Sapling: obsolescence markers (predecessor to successors, prune, split, fold) [S8, S9]AdaptN1, N5, N6Records which revision replaced which, so dependants rebase automatically and retries of one task stay linked. The evolve page was read only through a search summary, so the marker rules are specified here (section 5.1) and proved by PR B1's tests rather than inherited
Mercurial phases (public, draft, secret)AdaptN10, N14Becomes the revision state machine in section 5.3, including a Private state from the secret phase
Fossil: history as a relational database, queried directly [S10]AdaptN2, N11Keep "history is queryable data"; reject SQLite as the engine because it is a layer between the agent and the metal (P3)
Fossil: autosync of every commit [S10]AdoptN11, P6Work lives on the server from the first write (as Private or Draft, section 5.3), so nothing is lost and in-scope agents can see Draft work
Fossil: no rebase, by design [S10]RejectN5Agents need automatic rebase of untested drafts; the operation log already keeps what happened. Tested (Verified) revisions are never rebased; the promotion queue merges and retests them (section 5.3)
Fossil: integrated tickets, wiki, forum [S10]RejectN8Human collaboration features; agents reference tasks by typed IDs (section 5.2)
Radicle: signed refs, identity document, delegate threshold [S11]AdoptN10Machine-verifiable quorum for canonical promotion; delegates can be machines
Radicle: collaborative objects as Git commit graphs [S11]RejectN9Synapse stores its own records natively; Git encoding only at the bridge
Google Piper and CitC: server-side workspaces that overlay only changed files [S12]AdoptN1, N2, N3A fork is a pointer plus an overlay, so speculative attempts cost almost nothing. Adopted on my own measurements (Gate 0, Gate 4 G1); the Google source is secondary (primary paper not fetched) and no Google figure is relied on
Google: trunk-based development, few branches [S12]AdoptN5One canonical line; everything else is short-lived stacked changes
Scion: per-agent container with its own worktree or clone and credentials [S13]AdaptN7Keep per-agent scoped credentials; reject its workspace model, which uses worktrees or clones, the cost Gate 0 measured. (The brief named it "Anthropic Scion"; the repository is GoogleCloudPlatform/scion and states it is not an officially supported Google product.)
Bazel Remote Execution: Action = digest of command plus input root; action cache; FindMissingBlobs [S14]AdoptN4, N3, N9Evidence keyed by exact input digests; repeated tests on identical inputs reuse results; only missing content is sent
Nix: content-addressed outputs, so unchanged outputs stop rebuild propagation [S15]AdoptN4, N9Evidence that depends on an output stays valid when a change leaves that output's digest unchanged (floating content addressing is experimental in Nix)
Unison: definitions identified by syntax-tree hash, names as metadata, cached test results [S16]AdaptN4, N5Apply to Omega code through Omega's own SEMANTIC_ID; reject as a general approach because agents also write Rust, C, and other languages Synapse does not control
Structured merge: Spork architecture, GumTree matching, tree-sitter parsing, as in Mergiraf [S17, S18]Adopt, gated by PR D3N5Merges edits that touch the same file but different syntax nodes; leaves cautious conflicts otherwise. The GumTree paper was not fetched, so adoption stands only if D3's sealed corpus passes
difftastic: structural diff for display [S19]RejectN8Display tool; agents need edit scripts as data (GumTree actions: insert, delete, update, move)
CRDTs for obsolescence markers and authorship attestations (grow-only sets)AdaptN12Replicas can merge these sets without consensus. Grants, revocations, receipts, and references are not merged this way: they need a total order and replicate through the signed operation log; canonical promotion still needs quorum. Shapiro et al. not fetched (UNVERIFIED wording); Pijul documents itself as a CRDT [S3]
CRDTs for file text (character-level co-editing)RejectN9, N8Per-character identifiers cost storage and time; agents submit whole changes, not keystrokes
Content-defined chunking (FastCDC) [S20]AdaptN9For large blobs only, so an edit stores and sends only the changed chunks; small source files stay whole; parameters decided by experiment X6
Capabilities: macaroon caveats [S21] and UCAN attenuated delegation with DID principals [S22]AdoptN7An orchestrator can mint a narrower grant for a worker without the repository authority; public-key chains (UCAN style), because any replica must verify without a shared secret
in-toto attestation layers (envelope, statement, subject digests, predicate) [S23]AdaptN4Receipt shape for evidence; native binary encoding inside, in-toto JSON only when exported at the edge
The "not rocket science" merge rule as built by bors: test the exact merged result, then fast-forward; batch; bisect on failure [S24]AdoptN4, N10Canonical only ever points at a tree that itself passed; the original Hoare post was not fetched (UNVERIFIED wording)
Trigram index for regular-expression code search [S25]AdoptN2, N11Agents search code constantly; an index turns a search into a candidate set before any bytes are read

5. The Synapse Native Model

5.1 Objects and identity (N1, N4, N12)

Every object is immutable and content-addressed with a domain-separated SHA-256 digest (the existing scheme in docs/SCHEMA_AND_CONSISTENCY.md), each with its own type so no identity can be substituted for another (ADR 0001 section 2.3). The hash function is reviewed by experiment X1 (section 6.4).

IdentityWhat it namesNotes
BlobDigest (kept)File content bytesDigest of the whole content, independent of chunking, so chunk parameters can change without changing identity
ChunkDigest (new)One content-defined chunk of a large blobStorage and transfer unit only (section 5.9)
TreeDigest (new)A whole repository state as a Merkle tree of directoriesNative encoding, not Git's; Git tree IDs are computed only at the bridge. Evidence binds to this
ChangeId (new)One unit of intended work across all its rewrites and retries16 random bytes, not content-derived because content changes on rewrite. A ChangeId is bound to its creating chain: the delegation chain of the key whose admission first used it, recorded in that first admission witness. Adding a revision under an existing ChangeId (joining) is accepted only from a key whose chain descends from the creating chain, or from a key whose grant names that ChangeId in its change scope (section 5.8); anything else is refused with a typed refusal, which covers both an accidental collision and an attempt to hijack another task. An orchestrator creates the ChangeId and its workers, whose grants descend from it, add their attempts. Several live revisions of one ChangeId are divergent attempts; selecting one prunes the others with obsolescence markers, and pruning needs a chain that is the creating chain or dominates it
ChangesetId (kept, redefined in envelope v2)One immutable revision of a changeDigest of the revision's content only: ChangeId, parent revisions or base TreeDigest, mutations, conflict terms, and the intent record. It excludes who submitted it and when. v1 envelopes keep their v1 identities
AdmissionWitness (new)The first admission of a revisionRecorded once by the server and never changed: repo_id, the submitting agent's DID and its signature over the envelope, the IdempotencyKey, the admission WalSeq, and the server's admission time. Idempotency is keyed on (repo_id, agent DID, IdempotencyKey). Replay order is the admission WalSeq; retention follows the owner rules of section 5.9 and the server's clock, never a client clock. For a server-derived revision the witness holds the server's machine-key signature and the digest of its DerivationAttestation instead of an agent signature
DerivationAttestation (new)A revision the server produced rather than an agent: an automatic rebase, a promotion-queue merge, or a derived-file outputSigned by the server's machine key, which is listed in the repository identity document. Names the input revisions or trees, the rule applied (rebase, merge tier and canonical merge order, or the ActionDigest of a derived-file action), and the output ChangesetId and TreeDigest. Every rule is deterministic, so any replica can recompute the output from the named inputs and refuse an attestation that does not match. The input revisions keep their own agent signatures and attestations
AuthorshipAttestation (new)A signed statement that an agent produced a revision, at a timeIdentical content submitted under the same ChangeId (for example by two attempts of one task) is one revision with two attestations, so duplicate speculative attempts collapse (N1). Identical trees under different ChangeIds share evidence through TreeDigest (section 5.5). An attestation added later never revokes a receipt already accepted
OperationId (new)One entry in the operation log (section 5.4)Equal to the WAL frame digest that carries it
ActionDigest (new)One exact evaluation: input root, toolchain digest, command digest, environment digest, platformEvidence key (section 5.5). The input root is a composite: a Merkle root over sorted (repo_id, TreeDigest) pairs. A single-repository action is the one-pair case; an action that builds omega against physics names both trees, so one receipt can test them together (N13)
GitOid (kept, bridge only)Git objects imported or exportedNever a native base; the envelope v1 field base_git_oid becomes a native base in v2

5.2 Intent as data, not prose (N8, N4)

The free-text intent_summary is replaced by an IntentRecord:

Claims are obligations: promotion requires every claim to be discharged by a passing receipt (section 5.5). A change that claims nothing beyond "passes the repository's required actions" is valid. Verification and benchmark lanes do not create revisions; they produce EvidenceReceipts against existing trees, so they need no intent kind.

5.3 Revision states and the change algebra (N5, N12)

States. Private (visible only to its owner's delegation chain: the key that submitted it and the keys its grant descends from; N14) or Draft (visible within Read scope), then Proposed, then Verified (all claims and required actions discharged on its exact tree), then Canonical (promoted by quorum, immutable). The grant sets the default between Private and Draft. Revisions never change state backwards; replacing one creates a new revision and an obsolescence marker.

Commutation. The commutation promise is limited to T0: revisions on the same base whose actual mutations touch disjoint paths (and no file and directory prefix collision) give the same TreeDigest in every order, checked by a permutation test. T1 and T2 merges are not claimed to commute (three-way merging is not associative in general, and region merges can depend on order at a shared boundary). Instead, whenever more than two revisions are combined, the server merges them in canonical order (ascending ChangesetId) and records that order and the tier, so the result is a function of the set of revisions, never of arrival order or agent count (N12).

Merge tiers. The merge engine tries, in order, and records the tier used in the merged revision:

  1. T0 path: different paths (what Synapse does today, 0.219 ms p50 per query in Gate 4).
  2. T1 region: three-way merge of non-overlapping byte or line regions within one file. This removes the 3 over-flags of Gate 4 section 5.
  3. T2 structure: syntax-tree merge (tree-sitter parse, GumTree matching, Spork-style merge, as Mergiraf does [S17, S18]) for languages with a grammar. A T2 result is accepted only if all of these hold, otherwise the merge falls to T3: the matched nodes edited by the two sides do not overlap; the result parses with the same grammar; and diffing the result against each side reproduces exactly the other side's edit script.
  4. T3 conflict: a first-class conflict (below).

Derived files. A path can be declared derived (for example a lockfile) with the action that produces it. Derived files are never merged: after the other paths merge, the server runs the declared action on the merged tree and records its output under a DerivationAttestation (section 5.1), or records a conflict if the action fails. How often lockfile merges occur in AIEN repositories is UNVERIFIED.

A merged tree never inherits evidence from its parts; it must earn its own receipts (section 5.5). Policy can demand more evidence for higher tiers.

First-class conflicts. A tree entry can hold a ConflictTerm, the Jujutsu idea of a conflict as a sum of states [S7]: a set of add terms and a set of remove terms, with one more add than remove, each stored as a sorted multiset so the encoding is canonical. Each term is a full entry state: absent, or present as a file, directory, or symlink with its FileMode and content digest. Typed terms represent the cases Gate 4 section 5 measured: modify against delete (one term absent), file against directory (different kinds), and mode changes. Cancellation deletes an add term and a remove term only when they are identical entry states; the reduced form removes the multiset intersection of adds and removes from both sides, which is the same whatever order the cancellations happen in. One remaining add term and no remove terms is a resolved entry. Applying further changes adds terms; equal terms cancel, so rebasing twice reduces to a plain three-way conflict and reverting returns a clean tree. A tree with any conflict term can be read, rebased, and resolved, but cannot be materialized for a build and cannot be promoted. Resolution is a new revision of the same ChangeId with kind = ResolveConflict, by any agent with the capability.

Automatic evolution, done lazily. About 89 % of attempts are thrown away (N1), so rebasing every dependent draft when a base moves would spend most of its seconds and joules on work nobody reads, all on the single writer. Instead:

Rebasing stops being a job agents do (the 5 rebase lanes in N5).

5.4 Operation log, views, and undo (N6, P6)

5.5 Evidence-carrying changes and promotion (N4, N10)

5.6 Workspaces and speculative forks (N1, N2, N3)

5.7 Queries and subscriptions (N2, N11)

5.8 Agent identity and capabilities (N7)

5.9 Storage and scale (N9)

5.10 The minimal Git bridge (machine interop only)

5.11 What is dropped as human-only

5.12 End state: Omega on AIENOS, talking to the metal

The end-state stack is: agent, then Synapse binary frames over shared memory, then the Synapse core written in Omega, then the AIENOS kernel, then NVMe and the CPU's hash and signature instructions, with no foreign runtime and no filesystem in between. The Rust crates and their conformance suites (WAL, Git, Radicle, plus the suites added in section 9) are the specification-by-test that the Omega port must pass byte for byte.

What Omega needs, as dependencies:

DependencyWhat existsStatus
Direct NVMe queue access with flush and known atomic write unitAIENOS has crates/aienos-kernel/src/nvme/{driver,atomicity}.rs, a kernel store engine (crates/aienos-kernel/src/store/), and NVMe flush testsHardware qualification of these: UNVERIFIED (not checked for this ADR)
SHA-256 using the ARMv8 SHA-2 instructionsThe host CPU reports the sha2 feature; AIENOS has crates/aienos-kernel/src/crypto/sha256.rsWhether that code uses the instructions: UNVERIFIED
Ed25519 verification (single and batch)AIENOS has native/sig/ed25519.c and vendors ed25519-dalekOmega binding: UNVERIFIED
Shared-memory rings between agent processes and SynapseNone foundMissing
Energy instrumentaien_spbm hwmon driver on the Linux host (section 6.2)Availability under AIENOS: UNVERIFIED
Omega able to express all of the aboveOmega is research-grade and pre-alpha, not self-hosting, with no general compiler yet (omega README, 2026-10-14)Omega's current capability for this port: UNVERIFIED

Omega code gets one more native benefit: Omega already identifies programs by SEMANTIC_ID (SHA-256 of the canonical encoding). Synapse can store Omega definitions by that identity, so equivalent Omega programs collapse to one object and evidence attaches to meaning rather than to text (the Unison idea [S16], applied to my own language). Candidate X8.

5.13 Leaked secrets (N15)

6. Performance: Chasing the Physical Bound

6.1 The metrics

6.2 The bounds and their inputs

BoundDerivationInput and source
Durable latency for one changeone device flush of one sequential append, plus the change's bytes moved once at memory bandwidthFlush time and device bandwidth: W1's measurement on this host (Phase 5 item 1). Memory bandwidth: A0 (not yet measured)
Steady state per accepted changethe largest of: flush time divided by batch size; bytes per change divided by device write bandwidth; bytes touched per change divided by memory bandwidth; cryptographic work per change divided by all-core throughputW1 (flush, device bandwidth); A0 (memory bandwidth, all-core throughput of SHA-256 and Ed25519 verification on every core at once)
Read of n bytesn divided by memory bandwidth, plus one index lookupMemory bandwidth: A0 (not yet measured)
WAL replaythe largest of: bytes that must be read divided by device read bandwidth (memory bandwidth when they are already in the page cache, as in Gate 4); bytes that must be digested divided by all-core hashing throughputGate 4 section 8: replay re-reads and re-digests every committed blob, so the bytes are its "Store bytes (apparent)" column, 117,196,023 bytes at 10,000 changesets (WAL plus 14,957 blob files), against a 344.575 ms median SynapseStore::open with a warm page cache. A0 (docs/A0_HOST_BOUNDS.md): bound 5.267 ms, the hashing term at the all-core SHA-256 implementation reference (the memory term at the published 273 GB/s is 0.429 ms); fraction of bound reached = 0.0153 (bound 5.267 ms, measured 344.575 ms, 65.4 times the bound). Superseded by J3 (docs/J3_CRYPTO_REFERENCE.md): the all-core SHA-256 reference is now 39.46 GB/s (the sha2 crate on the SHA-2 instructions), so the bound is 2.970 ms (calc:d25d95ec) and fraction of bound reached = 0.00862 (bound 2.970 ms, measured 344.575 ms, 116 times the bound) (calc:a8960c47, calc:4cffeef5)
Thermodynamic referenceLandauer: at least kT ln 2 joules per bit erased [S26]2.871e-21 J per bit at 300 K (calc:b9494dee). Landauer charges erasure, not writing: the per-change figure assumes every stored bit overwrites one earlier bit (a log that reuses reclaimed space), giving 2.744e-16 J for the 11,949 bytes stored per change (calc:7bc56f71). A reference for what physics allows, far below any device; practical joule bounds come from measured device energy per flushed byte. OPEN: X0 (A0) measured SoC package energy only; NVMe energy is UNMEASURED on this host, and no section 9 step delivers it yet

Bounds come from the hardware, not from one implementation. A bound must hold for any implementation, so it is derived from device flush time and bandwidth, memory bandwidth, and throughput with every core working, never from one library on one core. A single-core rate measures one implementation: a parallel replay, or a replay using BLAKE3, could beat it, which would put the "fraction of bound" above 1 and make it meaningless. Where the hardware gives no closed-form limit for a computation (Ed25519 verification has none here), the input is the best all-core throughput of any available implementation, labelled an implementation reference rather than physics; if a later measurement beats it, the reference is replaced by that measurement, so the fraction stays at most 1 by definition.

Single-core reference rates (supporting facts, not bounds). Ed25519 verify: 42.07 microseconds per signature on one core (calc:20f50860, converted from the OpenSSL count). SHA-256: 2.458 GB/s on one core for 16 KiB blocks, so 4.86 microseconds for an 11,949-byte change (calc:8bc3db27). At that one-core rate the 117,196,023 replay bytes would take 47.69 ms (calc:1382b220); this is a figure for one implementation on one core, not a bound, so no replay fraction is stated until A0. Host probes for these rates (single runs, raw output not sealed, so provisional until PR A0 repeats them with sealed evidence): OpenSSL 3.0.13, taskset -c 9 openssl speed -seconds 2 -evp sha256 and taskset -c 9 openssl speed -seconds 2 ed25519, on core 9 (Cortex-X925, 3.9 GHz maximum), host load average 2.74 at the time. OpenSSL reported OPENSSL_armcap=0xfd, and the CPU lists the sha2 feature, so these rates use the hardware SHA-2 instructions.

Energy instrument. The host exposes the aien_spbm hwmon device (hwmon3 on 2026-10-14) with energy channels pkg, cpu_e, cpu_p, gpc_unverified (always 0), and gpm, in microjoules per the kernel hwmon interface [S27]. Per the Omega energy protocol as summarised in the Turing unit brief: 10 Hz sampling, 1 mJ step, a 32-bit counter that wraps near 4.29 MJ, and no external calibration, so absolute accuracy is not claimed. Synapse energy figures reuse Omega's energy preflight discipline (refuse with INSTRUMENT_UNAVAILABLE rather than substitute) and are labelled provisional until that instrument is calibrated.

6.3 Every layer between the agent and the metal

LayerMeasured cost todayFate
JSON request encoding (serde_json writes bytes as decimal arrays)Median signed request 16,653 bytes for 3,967 bytes of new content (Gate 4 section 7, supporting fact); JSON plus signing is the gap between 17.7 ms total and 11.4 ms API-only for a tree queryRemoved: binary frames (PR G1)
JSON WAL payloads and checkpointsReplay 344.575 ms median at 10,000 changesets (Gate 4 section 8); fraction of bound after A0 (section 6.2)Removed: binary codec (PR A1)
CPU per change outside cryptography0.88 ms per change at 1 agent (Gate 4 section 3.3), of which one signature verification plus hashing at the single-core reference rates (46.93 microseconds, calc:f73ac048) is a share of 0.0533 (calc:50498e49)Profile and remove (PRs A1, A2, G1)
File per blob, temporary file, rename, directory flush17,818 allocated against 11,949 apparent bytes per change (supporting fact); several flushes per changeRemoved: segments (PR A2)
Flush and file work per changeS1 at 1 agent: p50 latency 11.8 ms and 13.8 ms between acknowledgements (calc:80d09f2c). At 32 agents the interval stays near 14.39 ms (calc:5cf81fd4) while p50 latency is 417.81 ms and p99 1,221.51 ms, almost all queue wait (Gate 4 section 3.1); the flush share is W1's measurementGroup commit (W1)
Tree query paging and the per-changeset virtual treeTree query, API only, p50 11.394 ms for 4,376 entries in 18 pages (Gate 4 section 4). Most samples did not build a tree: 286 to 296 of 400 per repetition (71.5 to 74 %, calc:7221a59e, calc:20c17445) were served from an already built virtual tree, and in the raw traces (evidence/gate4-qualification/traces/query-r*.jsonl) the median cold sample, which builds the tree, is only 0.88 to 0.91 ms slower than the median warm one (calc:f7265464, calc:235b23b1). So the 11.394 ms is mostly producing pages from a cached tree, not building it. The cache has no size boundShared Merkle tree with bounded cache, and a paging path measured on its own (PR C1)
Kernel copies and system calls on the write pathNot measuredCandidate X4 (io_uring)
Process boundary between agent and SynapseNot measured (Gate 4 ran in-process)Candidate X5 (shared-memory ring)
The filesystem and page cacheNot measured separatelyEnd state: AIENOS raw block store (section 5.12)
Process spawnsNone in Synapse; Git bridge onlyBridge stays off the hot path

6.4 Experiments that decide the candidates

Each experiment reports seconds and joules per unit of work, the bound, the instrument, and the raw samples, and states the decision rule before running.

IdQuestionMethod and decision rule
X0Host bounds not yet measured: memory bandwidth, device read and write bandwidth, all-core throughput of SHA-256 and Ed25519 verification, device energy per flushed byteStreaming copy and read probes; sequential device read and write probes; every core hashing and verifying at once; flush loop with energy counters (coordinate with W1 so the storage figures are measured once). Run by PR A0, which delivers every input except device energy per flushed byte: that stays OPEN because NVMe energy is unmeasured (A0 has SoC package energy only)
X1SHA-256 (hardware instructions) or BLAKE3 (NEON, multithreaded, internal Merkle tree [S28])Seconds and joules per byte at 1 KiB to 1 MiB, 1 thread and all cores. Change only if BLAKE3 is lower in seconds and joules per accepted change beyond run-to-run spread; a change is a versioned migration because the Omega SEMANTIC_ID, the AIENOS kernel, Radicle, and Git's SHA-256 transition all use SHA-256
X2Batch Ed25519 verificationed25519-dalek verify_batch (feature batch; its documentation states no speedup figure and reports failure without naming the bad signature [S29]) at batch sizes 1 to 256 inside group commit; on batch failure, verify individually. Adopt if seconds and joules per accepted change fall beyond spread. The Ed25519 paper's batch speedup claim was not fetched (UNVERIFIED)
X3Withdrawn after reviewSession MACs plus a batch-root machine signature were proposed to remove per-request signatures. Withdrawn: a MAC is a shared secret other replicas cannot verify, and a batch signature does not bind each mutation to its agent (threat model T1, T3). Every mutation keeps its agent signature; the cost is attacked by X2 and by verifying on all cores off the serial path
X4io_uring for segment appends and flushes [S30]Against pwrite plus fdatasync, inside group commit
X5Shared-memory ring for local agentsAgainst a Unix socket with the same binary frames
X6Content-defined chunking threshold and chunk sizes [S20]On real AIEN repository histories; seconds and joules per accepted change and per read
X7Materialization for builds (section 5.6)Seconds and joules per build against the bound of bytes actually read divided by memory bandwidth
X8Omega SEMANTIC_ID as native identity for Omega codeAfter the Omega toolchain can emit it for a real corpus
X9Cost of erasable storage (section 5.13)Per-object encryption on the write and read paths against physically rewriting segments at compaction; seconds and joules per accepted change and per read. Keep the cheaper method that still makes an erased secret unreadable in every copy, including backups

7. A Level 0 Turing-Unit Proposal: How Well the Change Representation Describes Code History

Performance stays in seconds, joules, and watts (section 6). The Turing unit fits a different question: how well Synapse's change representation predicts real code history. This section is Level 0 (definition only). No result is claimed; energy is provisional. It is not a performance measure: P3 and section 6 govern performance, and no turing or turing-per-joule figure may stand in for seconds, joules, or watts.

Validation level, stated plainly. Level 0: the unit is the owner's proposal, defined here and not yet computed on any Synapse data. Its definition was taken from the Turing unit brief's summary of the preprint, not checked against the preprint text for this ADR. No one has independently recomputed it, and its energy input waits on an uncalibrated instrument. Moving above Level 0 needs, in order: one figure computed under a sealed profile (below), an independent recomputation from the sealed data alone, and a calibrated energy instrument before any yield is reported.

The unit. 1 turing (T) is one bit of net held-out description-length saving against a declared baseline, after charging the model's own size: T = [L(B) + L(D|B)] - [L(M) + L(D|M)], in bits. Turing yield is T per joule and exists only when joules are measured. (Definition from the preprint "Computing Machinery and Understanding", live copy at aienos.com/research/computing-machinery-and-understanding, as summarised in the Turing unit brief of 2026-10-14. "T" is also the SI symbol for tesla, so the unit is written "turing (T)" at first use.)

Prediction task. Observations D are the held-out sequence of tree transitions of real AIEN repositories: for each held-out commit in first-parent order, the resulting repository tree given every earlier tree. Each observation must be reconstructed byte for byte; L(D|M) is the code length in bits of M's lossless encoding of D given the training history (equivalently, the sum of -log2 p_M over the observations).

Model M. Synapse's representation and coder for the same transitions: structured and semantic deltas (path, region, and syntax-tree edit scripts), content-defined chunks, and deduplication against all earlier history. L(M) is the size in bits of everything needed to decode: the decoder artifact and all fixed tables, including every tree-sitter grammar the semantic tiers use, so semantic merging pays for its parsers.

Baseline B. Git's own delta coding of the same history: thin packs (git pack-objects --thin --stdout) of each held-out commit against the training history, with the Git version and every pack option (window, depth, compression level) fixed in the profile. L(B) is charged with the same rule as L(M) (the decoder artifact needed to read the pack).

Held-out split. A chronological cut per repository, fixed before any coder is tuned: training is history up to the cut; held-out is everything after it. The held-out commit list and tree digests are sealed (hash recorded, contents blinded from whoever tunes M) and audited for overlap (no held-out tree, or cherry-pick of one, present in training).

Measurement profile (fixed and versioned before the data is seen). Baseline and its options; the encoding rule for L(M) and L(B); quantizer (none: lossless code lengths, whole bytes times 8); the split, seal hash, and blinding; the energy instrument (aien_spbm pkg channel, 10 Hz, 1 mJ step, idle-subtracted, with the attribution rule I_AB = E_AB - E_A - E_B + E_0 when anything else runs); the uncertainty method (per-observation distribution and a resampling interval over held-out commits); the shared-background record; and the overlap audit. Numbers compare only within one profile and are not comparable to any Omega Turing-yield figure.

Yield. Turing yield = T divided by the idle-subtracted joules of encoding and decoding the held-out split with M, once the energy instrument meets its calibration level; until then any T per joule figure is labelled provisional.

8. Crate Map

CrateKeepChangeNew
synapse-coreDistinct identity newtypes, path validation, RefusalCode, did:keyEnvelope v2: native base, ChangeId, IntentRecord, footprint, conflict terms, identity excluding author and time; binary codecs for every recordTreeDigest, ChunkDigest, ChangeId, AdmissionWitness, DerivationAttestation, OperationId, ActionDigest with composite input root, EvidenceReceipt, AuthorshipAttestation, ObsolescenceMarker, ConflictTerm, RevisionState, ChangeGroup, group manifest, erasure record
synapse-storeWAL framing discipline, CRC32C and hash chain, recovery policies, fault injectionserde_json to binary; file per blob to segments; group commit (W1); retention from default_retention_window_ms against the client's created_at_ms to per-owner retention by live grant or lease plus a server-clock window, within a per-owner storage quota (K1)Operation views and undo; chunk index; GC roots (K1); per-object data keys and erasure (M2); raw block segment store (R1)
synapse-authEd25519 grants, expiry and replay guards, audit chainGrants to attenuated delegation chains with path, reference, and change scopeBatch verification path (X2); Undo capability; partitioned storage and footprint quotas
synapse-apiPaginated queries, read-your-writes, watch cursors, path indexVirtual tree to shared Merkle tree with bounded cache; JSON to binary framesRevision state machine, workspaces, lazy automatic evolution, conflict terms, footprint subscriptions, predictive conflicts, evidence queries, promotion queue, trigram search, secret scanning at admission, change groups and group manifest (L1)
synapse-gitDeterministic materialization, OID mapLoose objects to packfiles; map made persistentFull-history import and export; remote helper
synapse-git (legacy)Until Phase 8Removed after Phase 8: project_github_pull_request, advance_human_branch_fast_forward
synapse-radicleIdentity and sigrefs verifier, split-brain refusalQuorum engine accepts native digests and machine delegates
synapse-benchHarness, conformance suites, evidence formatReports SI units, bounds, fractions, and energyHost bound probes (X0, X1, X2)
New synapse-mergeMerge tiers T1 and T2, edit scripts
New synapse-evidenceAction digests, receipts, action cache with result digests and the Flaky result, in-toto export
New synapse-wireBinary frames with a fuzzed decoder, have-want chunk negotiation, transports, shared-memory ring (G3)

New crates and workspace changes go through the integrator role, which alone edits the root Cargo.toml (handoff Plan v4).

9. Implementation Sequence

Every PR is small, owns one subsystem, and lands with a test that fails before the change and passes after it. Every PR has a correctness acceptance stated as exact pass conditions; PRs that change a hot path also report seconds and joules against the section 6 bound, with raw samples. A performance report alone is never an acceptance, because it cannot fail. The table is in dependency order: a PR starts only after every PR in its "Needs" column has merged. PRs with no dependency between them can run at the same time.

Until K1 merges, checkpoint_and_compact on a v2 store writes checkpoints but sweeps nothing, so no garbage collection runs on v2 data before its roots exist.

StepPRNeedsScopeAcceptance
1A0W1Host bound probes in synapse-bench (experiment X0: memory bandwidth, device read and write bandwidth, all-core SHA-256 and Ed25519 throughput, energy preflight; flush taken from W1)Sealed evidence with instrument, resolution, and raw samples; the number of repetitions and the spread statistic are fixed before the runs; someone holding only the sealed raw data recomputes every reported figure exactly; with the energy device hidden, the probe refuses with INSTRUMENT_UNAVAILABLE instead of reporting a figure
2A1A0Binary canonical codec for WAL records and checkpoints only (envelope and identities unchanged), versionedEvery record kind decodes to the same logical record as its v1 JSON form, in both directions; the first v2 checkpoint records the last v1 state_root_digest and chains its own root to it; WAL conformance 11 of 11; a fixed corpus of truncated, bit-flipped, and oversized-length frames is each refused with a typed refusal, with no panic and no allocation above the frame's declared length cap; replay seconds per changeset reported against the replay bound
3A2A1Segment store replacing file per blobExtended crash suite (torn segment, crash between payload and index, flush failure, crash after a new segment file before its directory flush); every acknowledged change survives; seconds and joules per accepted change against the flush bound
4C1A1TreeDigest Merkle trees with shared, bounded cacheTree and diff parity with git ls-tree -r and git diff-tree on the Gate 4 fixture; memory stays under the configured bound under the Gate 4 query load; cold (build) and warm (paging) query times reported separately against the memory-bandwidth bound
5F1A1Attenuated capability chains with path, reference, and change scope, Undo, and partitioned rate, storage, and footprint quotasProperty test: no derived grant exceeds its parent in operations, paths, references, change scope, quotas, or expiry; child quotas never sum above the parent's; forged, stripped, and reordered chains, and a link bound to another repository or audience, are each refused; out-of-scope path refused; a chain with an ancestor revoked at the request's WalSeq is refused
6E0A1Repository identity document: delegates, threshold, registered executor keys, the server's machine key (split out of the old E2)An edit signed by fewer than the threshold is refused; an edit signed by the threshold applies; a removed executor's later receipts are refused; Radicle conformance stays 11 of 11
7B1C1, F1ChangeId bound to its creating chain, AdmissionWitness, obsolescence markers, envelope v2 with native base (a migration separate from A1)A rewrite keeps ChangeId and gets a new ChangesetId; divergence (two live successors) is detected; identical content from two agents of one chain under one ChangeId yields one revision with two attestations and two admission witnesses; a join from a key outside the creating chain without change scope is refused; a prune by a chain that does not dominate the creating chain is refused; a repeat with the same repository, DID, and IdempotencyKey returns the first WalSeq; every v1 ChangesetId still resolves to its record
8B4B1, F1Revision state machine (Private, Draft, Proposed, Verified, Canonical)Over random operation sequences no revision moves backwards; a Private revision is invisible to every key outside its owner chain; any move to Canonical outside the promotion queue is refused
9B5B1, E0DerivationAttestation for server-derived revisionsA replica recomputes every derived revision from the inputs and rule its attestation names and gets the same digests; an attestation naming different inputs, a different rule, or an unregistered server key is refused at admission and at replay; a derived revision presented with an agent signature it does not have is refused
10B2B4, F1Operation views and undo, plain and final discard, including checkpoint and compaction (no sweep before K1)After a random operation sequence, undo to any earlier operation in the window restores that exact view digest, also after a checkpoint and compaction; undo is undoable; per-actor undo leaves other actors' operations intact; undo of a revocation or of a final discard is refused; undo by an actor without a dominating chain is refused (refusal of undo for receipts and promotions is tested in E1 and E2, which create them)
11B3B1IntentRecord and claimsEnvelopes with only free text are refused; every claim kind maps to a predicate type; a mutation outside the declared footprint is refused
12M1B3Secret scanning at admission for blobs and intent context blobs (section 5.13; receipt logs are scanned from E1, step 15)A sealed corpus of planted keys and tokens in blobs and context blobs is each refused before any WAL write; a sealed corpus of real AIEN source without secrets is admitted with the false-refusal count reported; seconds and joules per accepted change of the scanner reported
13C2C1, B4, F1Workspaces: fork, auto-snapshot, discardFork time on the Gate 4 fixture and on a larger fixture fixed in advance differs by no more than the run-to-run spread; a Private workspace is invisible to a key outside its owner chain; a discarded workspace's content is no longer reachable from any view
14C3C1, F1, B4Trigram content search with the scope filterEvery regular expression in a fixed query set returns exactly the matches of a full scan of the same trees; no result, count, or timing path reveals a file outside the caller's Read scope or another owner's Private revision
15E1E0, B1, C1, B2, M1Evidence receipts on ActionDigest with composite input root, registered executors, independence ruleProperty test: a receipt for input root R never satisfies policy for any other root; a receipt signed by an unregistered key is refused; a receipt whose executor shares a delegation root with the revision's admitter does not count; a two-repository input root binds both trees; receipt logs pass through the M1 scanner and a planted key in a log is refused; undo of an accepted receipt is refused; the stale-PASS scenario of aien-sovereign-core#516 reproduced red, then green
16E3E1Action cache keyed by result digest, with the Flaky resultTwo receipts with the same exit status and declared outputs but different logs agree and the cache serves the result; two receipts with different result digests turn the entry Flaky, and a Flaky entry never discharges a claim; an identical action returns the cached result without re-running
17F2F1, B3, B4Footprint subscriptions and predictive conflicts, with footprint breadth charged to quotaSubscriber receives every operation touching its footprint, resumes from its cursor after restart without loss, and the delay from commit to delivery is reported in seconds; a subscriber scoped to one path prefix never receives an event, path, or prediction outside that prefix or from another owner's Private revision; a footprint that would exceed the grant's footprint quota is refused
18K1B2, E3, F1GC roots and per-owner retentionGC never removes an object reachable from an owner's live retention, a view inside an owner's undo window, a receipt the action cache can still serve, or an open change group; a receipt whose inputs or outputs were swept is not served; flood test: owner A writes until its storage quota is full, A's next write is refused with a typed refusal, and every object of owner B is still retained with B's window unchanged; after A issues a final discard, A's quota use falls at once, A's next write is admitted while its grant is still live, and the discarded work is collected at the next GC unless another root reaches it
19D1C1, B5Merge tier T1 (region)Gate 4 conflict scenario: the 3 disjoint-hunk pairs, which path-level merging refuses today (so the test fails before the change), now merge; every merged tree equals Git's merge result; no pair that git merge-tree reports as conflicting is merged (all 253 pairs); each result records its tier and merge order in its DerivationAttestation
20D2C1, B5First-class conflict termsRebase twice cancels to a plain three-way conflict; revert returns a clean tree; modify against delete, file against directory, and mode conflicts each round-trip as typed terms; conflicted trees refuse materialization and promotion
21D4D2, B4, B5, F2Lazy automatic evolutionAfter a canonical advance with N dependent drafts, zero rebases run until a draft is used; reading or forking a stale draft, by its owner or by any other in-scope key, returns the same TreeDigest an eager rebase would give and writes no operation and no quota charge; proposing it, or a request from its creating chain, admits one revision owned by and charged to the original owner; a read from a key outside the creating chain never admits a revision; a Proposed or Verified revision is never rebased; only subscribers whose footprint meets the move's written paths are notified; seconds and joules per base move and per lazy rebase reported
22D3D1, D2Merge tier T2 (syntax tree), Rust grammar firstA corpus of real merges from AIEN repository histories is sealed before the T2 code is written and includes cases labelled T2-mergeable (concurrent edits to different syntax nodes in one region), so a stub that sends everything to T3 fails; every labelled case merges at T2; every T2 result meets the acceptance rule of section 5.3 and builds and passes the same tests as the resolution recorded in history
23E2E0, E3, B2, B4, B5, D1Promotion queue with machine delegate quorum over native digestsCanonical advances only to a tree with every required receipt and the threshold of signatures over the section 5.5 payload; a signature over a different receipt set is refused; two DIDs under one delegation root count as one independent execution; a Flaky action blocks promotion; undo of a canonical promotion is refused; a failing batch is bisected to the failing candidate; Radicle conformance stays 11 of 11
24G1A1, F1Binary wire frames and have-want negotiationEvery frame kind round-trips to identical bytes; coverage-guided fuzzing of the untrusted length-prefixed frame decoder for a time budget fixed before the run finds no panic, no read past a frame, and no allocation above the declared cap, and every malformed frame in the fuzz corpus is refused with a typed refusal; seconds and joules per accepted change across the transport against the bound
25G2A2Content-defined chunking (after X6)Every blob round-trips byte for byte through chunking with an unchanged BlobDigest; deduplication between two revisions that share content follows the rule X6 fixed before its runs
26G3G1Shared-memory ring for local agents (X5)A hostile writer (bad lengths, index wrap, torn frames) cannot make the reader panic, read outside the ring, or accept a frame twice; no frame is lost or duplicated in a model test; adopted only if X5's rule, fixed before the run, favours it over a Unix socket
27R1A2Segment store on a raw block device with no filesystem (Linux direct I/O on a dedicated partition), the specification for the AIENOS block storeThe A2 crash suite passes unchanged; every acknowledged change survives power-cut simulation; seconds and joules per accepted change against the device bound, beside A2 on ext4; the layer is kept only if lower
28H1A1, B1, C1Git bridge: persistent map, full-history import and export from stored headers, packfilesImported real repository history with no erased content exports with identical Git object IDs, using the stored original headers; native revisions export deterministically (two exports give identical IDs); git fsck --full --strict clean
29M2A2, E0, K1, C3, E3, H1Audited cryptographic erasure (method chosen by X9)After erasure of a planted secret, no read, search, cache, or backup restore returns its bytes; reads return the typed erased result; the erasure record is present and not undoable; an erasure signed by fewer than the threshold is refused; erasing a blob in imported history makes the Git export of the affected commits a rewritten projection with the placeholder blob, records old and new Git object IDs in the map, and refuses promotion through the Git edge until the delegates sign the new projection head
30H2H1git-remote-synapsegit clone, git fetch, git push against synapse:// on a real repository
31L1E1, E2Cross-repository change groups through the group manifest (N13)On two test repositories, a group either moves both canonical heads in one manifest compare-and-swap or moves neither; a forced failure on one member leaves the manifest digest unchanged; one receipt over the composite input root is required; seconds and joules per group promotion at the manifest writer reported
32I1H2, Phase 8 cutoverRemove legacy human adaptersFirst, the two human-branch cases of the Gate 4 Git suite (fast-forward allowed; non-fast-forward refused) are replaced by native compare-and-swap reference cases that pass, so the suite stays green as ADR 0002 section 5 requires; then the adapter code, tests, and the pull-request projection root rule in section 5.11 are removed; old WAL logs still replay
33J1A1Omega port: binary codecDecodes and re-encodes every record in the A1 conformance corpus byte for byte; the A1 malformed-frame corpus is refused identically
34J2R1, J1Omega port: raw block segment store on AIENOS NVMeThe R1 crash suite passes on AIENOS after the NVMe flush and atomic write unit are qualified; seconds and joules against the same device bound
35J3A0Omega port: SHA-256 with the hardware instructions and Ed25519 verificationDigest and signature test vectors match the Rust crates exactly; all-core throughput reported against the A0 references
36J4J2, J3, B2Omega port: single writer, WAL, and recoveryWAL conformance 11 of 11 and the B2 undo suite pass byte for byte against the Rust implementation
37J5G3, J4Omega port: ring transport to local agentsThe G3 hostile-writer and model tests pass; seconds and joules per accepted change end to end against the same bounds

Phase 6 bridge work (H1, H2) can run beside steps 8 to 23 once its needs have merged.

10. Rejected Ideas and the Independent Review

10.1 Top rejections

  1. Line-graph patch storage (Pijul, Darcs) as the native store: evidence must name a concrete tree, and reads must not rebuild a graph; the algebra is kept without the storage.
  2. Git's index, staging area, and checkout-first workflow: human editing aids; agents write changes and read by query.
  3. Character-level text CRDTs: per-character metadata for real-time co-editing that agents do not do.
  4. SQLite or any general database engine as the core store (Fossil): a layer between the agent and the metal; the idea of queryable history is kept.
  5. Prose messages, tickets, wiki, review comments, display diffs: no AI reader needs them.

Also withdrawn after review: session MACs in place of per-request agent signatures (X3, section 6.4), because they break per-agent attribution.

10.2 Review record

10.3 Review findings and dispositions

#Finding (severity)Disposition
1Unmeasured assumptions stated as facts: footprints equal mutations, disjoint regions commute, executors set the hermetic flag honestly, one flush is power-loss durable, one unsealed probe is the bound (blocker)Accepted. Mutations outside the footprint are refused (5.2); the commutation promise is T0 only, with a permutation test (5.3); registered executors set the hermetic flag (5.5); durability contract with power-loss behaviour UNVERIFIED until X0 and W1 (5.9); probes provisional until A0 (6.2)
2Content identity without author and time breaks idempotency, retention, and self-review rules (blocker)Accepted. AdmissionWitness (5.1); idempotency keyed on repository, DID, and key; retention by WalSeq (later replaced by per-owner retention, section 10.4 item R2); quorum payload includes the witness digest and receipt-set root; later attestations never revoke an accepted receipt; independence judged by machine key or delegation root
3Action cache and machine quorum trust the executor; one forged success is permanent (blocker)Accepted: registered executors, a contradiction rule (later narrowed to result digests with a typed Flaky result, section 10.4 item R1), receipts served only while retained, delegates sign the receipt-set root, identity-document edits need the threshold (5.5). Adapted: "every action re-run by an independent key" became a policy defaulting to the threshold, with joules reported, because each re-run costs energy. Rejected: "bisect bypasses the cache", since a receipt from a registered executor with no contradiction is evidence, and re-running it spends joules without adding any
4Subscriptions, search, and predictions leak content beyond path scope; abandoned speculative work is readable (blocker)Accepted. Every query, prediction, and event filtered to Read scope; events carry kind, ChangesetId, and in-scope paths only (5.7); Private state and need N14 (5.3)
5Undo has no capability, can move canonical, does not survive compaction or GC (blocker)Accepted. Undo capability with a dominating chain; undo moves references only and never deletes objects; canonical promotions, revocations, accepted receipts, and identity changes are not undoable; view roots kept in checkpoints; the undo window is a garbage-collection root (5.4); B2 includes compaction; new PR K1
6Commutation, tiers, conflict terms, and auto-rebase are not sound as written (blocker)Accepted. Commutation promised for T0 only; T1 and T2 record order and tier; T2 acceptance rule defined; Verified revisions never rebased; typed conflict terms with a stated cancellation rule (5.3). The Darcs line-graph store stays rejected; its algebra is kept only where it is provable
7X3 session MACs break attribution; delegation links, quotas, and revocation underspecified (major)Accepted. X3 withdrawn (6.4); links sign parent digest, repository, audience, and caveats; quotas partitioned; every ancestor must be unrevoked at the request's WalSeq; grants and receipts are not merged as CRDTs (5.8, section 4)
8Figures disagree with the repository's reports (major)Accepted: 13.8 ms is the interval between acknowledgements, beside p50 11.8 ms; 0.0533 is a fraction of 880 microseconds; replay bytes named as Gate 4's store column, with the bound stated as a lower bound; hive counts are a later snapshot than Gate 0, and both are quoted. (Section 10.4 item R9 corrects further figures this round missed.) Rejected: deleting the Landauer row, which the owner asked for; its erasure assumption is now stated (6.2)
9Missed needs, adoptions from unfetched sources, tests that cannot fail, migration and bridge gaps (major)Accepted: needs N13 and N14; verify and benchmark lanes produce receipts, not revisions (5.2); derived-file rule; evolve downgraded to Adapt and structured merge gated by D3; acceptance tests that a stub now fails (A0, C2, D1, D3, E1, F1, F2, G2); A1 and B1 split; H1 exports from stored headers; I1 replaces the two human-branch Git cases first; new PRs K1 and L1. Rejected: removing section 7, which the owner asked for; it is Level 0, claims no result, and is explicitly not a performance measure. Left undone and named: Byzantine replication between Synapse servers (one writer per repository; the delegate threshold is the trust boundary)

10.4 Second adversarial review and dispositions

A second adversarial review of the revised ADR returned revise with ten findings. Each was checked against the repository before it was folded in. A further Codex gpt-6-astra attempt on 2026-10-14 again stopped at its usage limit and produced no findings; a Codex pass is still wanted.

#Finding (severity)Disposition
R1The action cache fails closed whenever two runs differ in any output digest, but logs carry timings, so every re-run and every flaky test is a contradiction (blocker)Accepted. A receipt's identity is its deterministic part only (exit status plus declared outputs); logs and resource figures are observations outside it; differing deterministic parts give a typed Flaky result that never discharges a claim (5.5); PR E3
R2Retention counted in WalSeq lets one agent's write flood shrink everyone's undo window, breaking P6; the code counts milliseconds today and the crate map did not list the change (blocker)Accepted. Retention is per owner: live grant or lease plus a server-clock window, within a per-owner storage quota; a full quota refuses the owner's own writes and evicts nothing of anyone else (P6, 5.4, 5.9); the change from default_retention_window_ms and created_at_ms is listed in section 8; K1's flood test
R3Server auto-rebases, promotion merges, and derived outputs carry no agent signature, contradicting "every admitted mutation keeps its agent's signature" (blocker)Accepted. DerivationAttestation signed by the server's machine key, naming inputs and rule, recomputable by any replica (5.1, 5.3, 5.5, 5.8); the server key is registered in the identity document; PR B5
R4"Refused on collision" contradicts an orchestrator sharing one ChangeId; nothing stops another agent joining or pruning a task's attempts (major)Accepted. ChangeId bound to its creating chain; join and prune need the chain or a change-scope capability (5.1, 5.8); B1 acceptance
R5Eager rebase of every dependent draft on the single writer, though about 89 % of attempts are discarded; footprint breadth is free, so subscriptions fan out (major)Accepted. Lazy rebase at read, fork, or proposal time; targeted notification; footprint breadth charged to quota; seconds and joules per base move reported (5.3, 5.8); PRs F2 and D4
R6Immutable storage, P6, the trigram index, the action cache, and context traces make a leaked key permanent and searchable (missing need)Accepted. Need N15; scanning at admission; audited cryptographic erasure under the delegate threshold as the only exception to P6, with its cost decided by X9 (5.13); PRs M1 and M2
R7ActionDigest holds one tree, so no receipt can test omega against physics; compensating reverts leave repositories inconsistent and need their own quorum (major)Accepted. Composite input root over (repo_id, TreeDigest) pairs (5.1); one compare-and-swap on a group manifest, no reverts (5.9); PR L1
R8A single-core OpenSSL rate measures an implementation, not physics; a parallel or BLAKE3 replay would exceed a fraction of 1 (major)Accepted. Bounds derived from device flush and bandwidth, memory bandwidth, and all-core throughput; single-core rates kept only as labelled supporting facts; the replay fraction waits for A0 (6.2, 6.3, X0)
R9Evidence misquoted: p50 is not flat to 32 agents; "72.5 per second" breaks P3; the 11.394 ms tree figure is mostly cached samples; GarbageRoot is not a type (major)Accepted, each checked against docs/GATE4_QUALIFICATION.md and evidence/gate4-qualification. N9 and 6.3 now give the interval (13.8 ms at 1 agent, about 14.39 ms at 32) beside p50 417.81 ms and p99 1,221.51 ms at 32 agents; the tree row reports the cold and warm split from the raw traces; GarbageRoot is described as the root rules in documents and in checkpoint_and_compact (5.4, 5.11)
R10Section 9 order is wrong (B2 needs F1, K1 needs E1, E1 needs E2's identity document), E1 is too big, D2 never tests evolution, G1 cannot fail, and the state machine, ring, and raw block store have no PR; J is a phase (major)Accepted. Section 9 is one dependency-ordered table with a "Needs" column; E0 (identity document) and E3 (action cache) split out; D4 tests lazy evolution; G1 fuzzes untrusted frames and has a correctness acceptance; B4 (state machine), G3 (ring), and R1 (raw block store) added; J split into J1 to J5

10.5 Independent Fable review and dispositions

An independent Fable 5.1 review of the 10.4 revision confirmed all ten 10.4 findings resolved and the sampled figures and names verified, and returned revise with six further findings.

#Finding (severity)Decision
V1Retention holds while the owner's grant is live and undo never deletes, so a quota-full owner's discard frees nothing and the owner is locked out until its grant expires (major, 5.9)Accepted. A final discard, issued only by the owner chain and not undoable, stops counting against quota at once and makes the work collectable unless another root reaches it; work kept alive by another root is charged to nobody (5.9, 5.4); B2 implements it and K1 tests that a quota-full owner can write again
V2Lazy rebase fires on any read or fork, so a non-owner's read admits a revision under a ChangeId it cannot join, charged to an unstated owner (major, 5.3, 5.1, 5.8)Accepted, the preferred form. Reads and forks return a computed rebased view and admit nothing; only proposal or the creating chain admits, owned by and charged to the original owner; a non-owner's fork is the forker's own workspace (5.3); D4 acceptance
V3The non-undoable list omits cryptographic erasure (minor, 5.4)Accepted. Erasures and final discards added to the list (5.4)
V4M1 scans receipt logs but needs only B3; receipts arrive at E1 (minor, section 9)Accepted. M1 scans blobs and context blobs; E1 needs M1 and applies the scanner to receipt logs
V5B2 tests refusing undo of promotions and receipts before E1 and E2 exist; J4 uses the B2 suite without needing B2 (minor, section 9)Accepted. Those refusals moved to E1 and E2, which now need B2; J4 needs B2
V6Erasure inside imported or canonical history is not reconciled with H1's identical Git object IDs or the Radicle check over the bridged GitOid (minor, 5.13, 5.10, 5.5)Accepted. Native identities survive erasure; affected Git history exports as a rewritten projection with a placeholder blob naming the signed erasure record; the map keeps old and new IDs; the Radicle check is against the projection and fails closed until the delegates sign it; H1's identical-ID guarantee is limited to history without erasure (5.10); M2 moved after H1 and tests this

11. Consequences

12. Sources