Repository navigation
ADR 0086
github-actions[bot] edited this page Nov 19, 2026
·
2 revisions
- Status: Accepted
- Date: 2026-11-14
- Owner: LINUX
- Traces to: LBA-REQ-003, LBA-REQ-005, LBA-REQ-009
- Supersedes in part: ADR-0009. The implementation stays self-owned; only the contract is now pinned upstream.
ADR-0009 absorbed the mprr ring-buffer and timing model as a self-owned, dependency-free mirror, and the
mprr-absorbed-constants-match-mprr-spec gate pinned its constants to values read from mprr source by hand.
Two problems followed:
- The gate attributed the
1.10admission headroom to MPRR-REQ-110, which did not state the value. - The capture-ring packet, launch-capture record and boot-benchmark record contracts that this repository added later had no upstream reference at all.
The operator has since decided that mprr is upstream for these contracts. mprr v0.1.1 publishes them as a
machine-readable file (contracts/mprr-shared-contract.v1.json, mprr-shared-contract-v1, mprr ADR-0046)
with canonical identifiers. The identifiers this repository already emits are accepted aliases.
- The implementation under
experiments/mprr-ring/andexperiments/mprr-capture-ring/stays self-owned and dependency-free, as ADR-0009 decided. - The contract is vendored byte-for-byte into
experiments/mprr-ring/contract/from a tagged release of the private mprr repository on GitLab (gitlab.com/svelderrainruiz/mprr), withpin.jsonrecording that source, the tag and the SHA-256..gitattributeskeeps the file byte-exact on every plane. -
experiments/mprr-ring/mprrContract.mjsrefuses a vendored file that does not match its pin, and compares the implementation with the contract:- the ring constants, including the three-block horizon, checked through
requiredThreeBlockCapacityBytes; - the capture-ring packet layout, version, flag and milestone IDs;
- launch-capture field presence and nullability, checked on a record built by
buildLaunchCapture; - the boot-benchmark JSON Schema's required fields, dialect and schema constant.
- the ring constants, including the three-block horizon, checked through
- The
mprr-contract-matches-pinned-fixturegate replacesmprr-absorbed-constants-match-mprr-spec. It fails closed on any mismatch, and its own checks show that a drifted constant, offset, field or tampered file is reported. - A record's
schemavalue is accepted when it is the canonical identifier or one of the contract's aliases (isContractSchema). Producers keep emitting the existing identifiers, which stay valid as aliases. - Updating the contract means vendoring a newer mprr tag, updating
pin.json, and passing the gate.
- Every shared constant and wire shape now cites one versioned upstream source, not prose.
- The mprr repository is private, so the pinned tag can't be fetched from public CI; the SHA-256 in
pin.jsonis the integrity anchor. The published contract carries only values, units, requirement identifiers and wire shapes; its verification bindings stay private in mprr. - Readers that check a
schemavalue with strict equality still accept only the existing identifiers. They need to move toisContractSchemabefore any producer emits a canonical identifier.
Generated from docs/architecture/adr/ADR-0086-pin-mprr-contract-to-published-fixture.md on develop. Edit the source in the repository, not this page.