Integration is optimistic concurrency control over content-addressed evidence. Optimistic concurrency control is the discipline, from the database literature, in which work proceeds without locks against a fixed snapshot of the data, and a commit point later checks whether anything the work read has moved; work whose reads still hold commits as if nothing had intervened, and work whose reads have moved is redone. This node maps Phase 3 integration onto that discipline exactly, and in doing so answers the question [[ida-cbcbb3c]] (ida-cbcbb3c-attestations-bind-to-a-base.md) left open: what happens to a change's attestations when its base moves.
A change ([[ida-93e4f91]], ida-93e4f91-changes-not-branches.md) is a transaction — a unit of work that lands whole or not at all. Its snapshot — the state the work was performed against — is the base tree its attestations were produced over. Its read set — everything its validity depends on having read — is the union of its required checks' input closures, held per check. A check's input closure is the complete set of inputs the check's computation consumes — the sources it reads, the dependencies it builds against, its own definition — each named by a digest of its content, so the closure as a whole has one digest. Its write set — what the transaction changes — is its delta. The integrator is the commit point: a single writer per target stream, so landed changes form one serial order per stream.
The commit rule has two parts. First, the delta must apply cleanly to the current tip. A conflict means resolving it would produce a tree nobody has authored; the resolution is new authorship, and new authorship requires a new attestation. Second, per required check, the evidence must transfer — by the rules below.
A pure check is a computation with content-addressed inputs and a deterministic result (verification.md). Its attestation records the digest of its input closure ([[dcr-0de694f]] (dcr-0de694f-phase2-attestation-shape.md)). At commit, the integrator recomputes each closure digest over the rebased tree. Equality means the rebased tree presents the same computation over the same inputs, so the recorded result is the result on the new base too — the argument that makes a content-addressed build cache sound. Inequality means that check, and only that check, is stale. Content-addressed evidence does not age: a pure attestation carries no expiry, because time is not among its inputs.
A pure check that fails on identical inputs is a falsified purity claim, and belongs to re-verification and trust measurement — the mechanism stack in verification.md — never to a validity window.
An effectful check reads mutable world state — real networks, external services (verification.md). Mutable state has no digest, so the equality rule cannot apply, and serializable semantics against it — every observation reading as if it happened at the instant its change landed — are unattainable in principle: even a check re-run at integration observes the world some interval before the ref moves. The honest semantics are bounded staleness: an observation is accepted while nothing relevant has changed under it and it is recent enough. Concretely, an effectful observation transfers iff both hold: no intervening landed change touched the paths of the policy class that requires the check — a policy class being [[dcr-f41f718]]'s (dcr-f41f718-declared-verification-policy.md) unit of mapping, a named set of path patterns carrying required checks — and the observation is younger than a validity window Δ. Δ is declared policy, per check: a template default a project may override, floor-mandatable by the group, in that decision's two layers. A network read of immutable, content-addressed data is a pure read; Δ exists only for reads of mutable world.
A failed transfer surfaces as one request-stale event naming the invalidated checks — the
staleness failure mode
architecture.md's integrator bet
commits to, made precise. Retry is partial: only the named checks need new evidence. Retry is
decentralized: re-attestation happens where the change is authored. The serialized critical section
at the commit point is digest comparison and a ref write; verification latency never enters it.
The landed change carries the contributor's original attestation and the integrator's transfer statement side by side in one note, composing as [[dcr-0de694f]] (dcr-0de694f-phase2-attestation-shape.md) already provides. The transfer statement cites the original by digest and records the per-check verdicts and the check definitions used. Those definitions are resolved from the instance's own pin, never from the tree being gated — the direction [[bd-eaefe82]] (bd-eaefe82-check-definitions-come-from-the-branch.md) names, adopted here for the floor's checks.
An attestation is a signed cache entry for a content-addressed computation, and integration is a cache lookup. The attestation store holds two standard entry classes: content-keyed entries for pure checks, and time-bounded entries for effectful ones.
Optimistic concurrency control is from the database literature. Content-addressed build caching and early cutoff are from the Nix and Bazel lineage. The composition — commit-time conflict detection via per-check content digests over signed evidence — is this design's own.