Exact qualification lane and compatibility matrix
Protocol 1 (incarnation run data) is storage only in a build carrying the iterion_exact tag, which no release build carries. This page is the lane that qualifies that build and the matrix of what each binary reads, mutates and births. Value formats and writer boundaries are in run value formats.
Qualification lane
ADR-181 D1 and D9. Protocol 1 is compiled in only under the build tag iterion_exact (pkg/store/exact_capability_dormant.go and exact_capability_exact.go). A build without the tag, which is every release build, refuses protocol 1 in store.RequireRunDataStorage with ErrRunDataCapability. The tagged build admits protocol-1 storage, reads and writes, so the incarnation suites run. Both builds refuse a protocol-1 read or write without the run's original binding, at a different gate: ErrRunDataCapability without the tag, ErrRunDataBindingRequired under it. The writer-fence witnesses pin each class through storetest.UnboundProtocolOneRefusal, chosen by build tag. Its births go through the birth policy: the store mints Exact × Incarnation only in a test that holds the grant, on a ledger it sets applied. An explicit binding (format 2 × protocol 0 in every build, protocol 1 under the tag) is honoured while the store births legacy.
The capability the ledger, the census and the boot floor compare is the versioned token store.ExactBirthsToken (exact-births/1), not the tag. store.CapabilityTokens lists the tokens a binary advertises. No build of this tree advertises one, the tagged build included; only the flip mints exact-births/1.
One skip helper. A test that exercises protocol 1 calls storetest.RequireIncarnation(t), or requireIncarnation(t) inside pkg/store, whose internal tests cannot import storetest. Both act on store.QualifyIncarnation. Without the tag the test skips; under the tag it runs, and a refusal fails it. A Mongo or NATS fixture whose URI variable is unset calls storetest.MissingInfrastructure(t, name): it skips without the tag and fails under it. TestNoInlineAdmissionSkip (internal/ciguard) refuses, outside these helpers, a skip whose argument or enclosing if, switch or case condition reads protocol-1 admission, directly or through a local, or whose reason names it. It reads syntax only: a predicate in another function, an early return, a skip through a method value or a helper, and a skip keyed on a refused birth escape it.
The tasks.
| Task | What it runs |
|---|---|
task test:exact | Every package with an admission-gated test, -tags iterion_exact -json, then the skip census |
task test:exact:race | The same, under -race |
task test:exact:mongo | CI's mongo-conformance job through scripts/ci/mongo-conformance.sh, with GOFLAGS=-tags=iterion_exact -json, then the skip census over each invocation's go test -json stream |
The package lists live in the internal task test:exact:run. The Mongo store harness (EXACT_ALONE_PACKAGES) runs in a second invocation, alone on the services, as in CI's mongo-conformance job: sharing a mongod with the other packages, it runs past its budget. TestExactLanePackagesAreComplete derives the set and holds both lists' union to it, both ways. It evaluates each file's name and //go:build line with go/build for linux/amd64, with and without the tag: a package belongs when the lane's build compiles one of its files that calls a lane helper, or a file the default build does not. A helper call in a file the lane's build excludes is refused; the one named exception is pkg/store/stream_filesystem_lock_windows_test.go: the lane runs on linux only, and the Windows lane compiles it without the tag, where it skips.
The skip census, TestExactLaneSkipCensus, reads the go test -json stream. It fails on an admission or infrastructure skip, on a test that never ended (its package crashed or timed out), and on a listed package that reported nothing, has no test files or ran no test to a pass or a fail. A task accepts only the census's PASS line, and refuses a GOFLAGS holding -run, -skip, -short or -list, quoted or not, and an EXACT_RACE other than empty or -race. Both refusals are preconditions, which task --force skips; the block still renders EXACT_RACE as the literal -race or nothing. internal/ciguard tests run each task's block under bash with a stub go: it exits 0 only when the tests and the census pass. TestExactBuildCompiles runs go test -tags iterion_exact -run '^$' on the packages holding a tag-only file, so a tagged file that stops compiling fails task test without services.
Services. Under the tag a missing service fails the lane. test:exact and test:exact:race need ITERION_TEST_MONGO_URI, a replica set as in the conformance recipe, and ITERION_TEST_NATS_URI. test:exact:mongo provisions its own replica set and needs ITERION_TEST_NATS_URI. A JetStream server:
docker run --rm -d --name iterion-nats-exact -p 127.0.0.1:4222:4222 nats:2.14-alpine -js
export ITERION_TEST_NATS_URI=nats://127.0.0.1:4222A confined shell, such as a bubblewrap sandbox, has its own loopback and cannot reach a port docker publishes. Run the lane from a plain shell, or start mongod and nats-server inside the same confined process tree.
Placement and status. .github/workflows/tests.yml is frozen until 2026-12-08, so the lane lives in the Taskfile. Every Exact PR owes its three tasks, test:exact, test:exact:race and test:exact:mongo. CI's nats-conformance job runs ./pkg/runner/... and ./pkg/queue/...: the lane runs ./pkg/runner with ITERION_TEST_NATS_URI required, and no other package of those two trees holds an admission-gated test, so none needs a tagged leg. A CI job runs the lane afterwards. The lane is advisory until it is green on main. The suites it un-skips were qualified on v7.17, and its reds are the stabilization backlog of #3944. A red is fixed, never skipped. The lane runs the tests scripts/ci/test-quarantine.tsv quarantines (the rows naming its packages), which CI's gating legs skip: a red on one of them is read against its ticket.
Compatibility matrix
ADR-181 D10. Each row is a binary. The last column is the boot floor's verdict on a store where the exact-births step is applied. The floor ships with P15 and fences binaries built from P15 on. An older binary is fenced only by the window's rotation of the Mongo and S3 credentials. A cell in italics is the target of a later unit, not the behaviour of this tree.
| Binary | Read protocol 0 | Read protocol 1 | Mutate protocol 1 | Birth Exact | Mongo v accepted | Boot floor |
|---|---|---|---|---|---|---|
| Pre-7.26 (no data headers) | yes | unfenced: blind to the header, reads the run as legacy and none of its protocol-1 data | unfenced (a named residual) | no | ≤ 1 | none: credential rotation only |
| v7.26+ default build (every v7 release) | yes | header only; payload refused (ErrRunDataCapability) | refused before any durable effect (writer fence) | refused | ≤ 1 | none before P15; refuses (no token) from P15 |
v7 iterion_exact (the lane, never released) | yes | yes | yes | minted only in a test holding the grant, on an applied ledger; an explicit binding while the store births legacy | ≤ 1; 2 on Exact documents from P16 | refuses (no token) from P15 |
v8 before the flip (the store has no exact-births step yet) | yes | yes | yes | refused (typed), or genesis on an empty store | ≤ 2 | passes: nothing applied |
v8 after the flip (exact-births applied) | yes; legacy resume and fork refused (typed) | yes | yes | Exact × Incarnation only | ≤ 2 | passes: exact-births/1 advertised |
Mongo v is the run document's schema version (store/mongo.SchemaVersion). Every binary refuses a higher value as "upgrade required".
Rollback. Once exact-births is applied, no v7 binary can open the store. Binaries from P15 on are refused by the floor. Older ones lose access with the rotated credentials. A rollback target inside the hold is therefore a v8 digest. The flip records this on docs/migrations/v8.md.
The read door
ADR-181 D8. store.ObserveRun(ctx, st, id) (pkg/store/observe_run.go) is the one entry point for a fresh read of a run: it observes the data header, binds it and its format to ctx, loads the run under that binding and returns both. A successor born under the same ID in between is refused by the store's own load (ErrRunDataIdentityChanged), and the returned run is compared with the observed header again. On protocol 0 it returns what LoadRun returns, refusals included, except under a ctx carrying another run's binding or format (refused: start from WithoutRunDataBinding) and, on FS, for a run whose .deleted marker sits beside its record (ErrRunDeleted). Protocol 1 is read only through it (a bare LoadRun answers ErrRunDataBindingRequired). A store that cannot observe a header is refused, never read unbound. On FS the observation takes the run's write lock: it leaves a lock file even for an absent ID, and waits up to 10 s on a held or unwritable lock whatever ctx.
Listings (P5d). Each record is read under its own observation, without the caller's binding: id by id through store.ObserveListedRun (FS: no write lock), or a Mongo window (store.RunWindowObservingStore) whose ListedRuns carry it (Bind). Protocol 1 is listed, never skipped.
TestBareRunReadsAreOnTheCensus (internal/ciguard) counts, per function of every non-test .go file, the bare reads LoadRun, LoadRunForListing and store.LoadRunWithValueFormat, and holds them to internal/ciguard/testdata/bare-run-reads.tsv both ways. A function that hands on the run record it read bare is a relay: a result whose type holds it (a pointer, a slice, a struct field), or a callback it passes it to. Each reference to a relay counts as a bare read too (an unexported one in its package), to a fixed point. A reason opens with its tag: door, store, birth, test, or the follow-up that clears the line, P5d (#3951) or P5e (#3952). A new fresh read goes through the door; a migration drops its line.
Queue pickup (P5c). The pickup (resolveDeliveryPreconditions) observes its run through the door and carries the binding on the delivery's context (pkg/runner/pickup_binding.go): every later read of the run in that delivery (readRun) is bound to it, so a run born again under its ID is refused and the delivery dropped. After the engine, a bound read precedes the delivery's disposition (bornAgainAfterEngine): a run born again by then is acked, never parked, promoted, announced or re-offered. A run this build cannot serve (ErrRunDataCapability) is re-offered with a delay, archived on the DLQ on its last delivery, never terminated.
