Repository navigation
test(replay): freeze the v1-v5 replay corpus as differential oracles - #124
Merged
Merged
Conversation
Real evidence manifests v1 to v5 and qualification receipts, each produced by the published version that introduced its contract, with the 12 container v4 benchmark manifests read in place. The test checks the frozen bytes, the producer's decision and digests, and the current build's replay output byte for byte. Refs #84 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Freezes the R0 replay corpus required by #84: real evidence manifests v1 to v5 and real qualification receipts, each produced by the published version that introduced its contract. Under ADR 0002 they are the differential oracles that every later implementation, Rust included, must replay with the same decision, digests and output.
tests/replay-corpus/corpus.json: 21 entries.evidence-v1toevidence-v5: manifests 1.0.0 to 5.0.0, produced byassertledger@1.0.0,1.1.0,1.2.0,1.5.0and2.1.0.qualification-{1.5.0,2.1.0}-{node-test,propagation}: receipt 1.0.0, allQUALIFIED.evidence-v4-container-*entries: the container-backend manifests ofbenchmarks/container-runtime/2026-10-11, read in place.tests/replay-corpus/documents/: the 9 produced documents, byte for byte.tests/replay-corpus/inputs/<id>/: the requests and fixture sources they were produced from.tests/replay-corpus.test.ts: a completeness test plus one test per entry. Each entry test checks:dist/cli.js replay -orqualification-replay -exits 0, with empty stderr and byte-identical stdout.biome.json,tsconfig.jsonand.gitattributes: Biome, TypeScript and Git normalization skip the corpus.At freeze time, every entry was replayed by every published version from its producer onwards, with identical results. CI replays only the current build.
replayedByrecords that matrix.Proof
Classifier:
proof-integrity-reviewtriggered, with two categories.test_oracles: all changed paths.verification_routing: the 5 fixturepackage.jsonfiles.Epoch
sha256:3ec7f9eea5b86ea94ee9ffb20249287236ec29acc0590bde5bc9c3da313cf736(base54a952f, headcbd43c6).Negative witnesses ran in a disposable worktree at
cbd43c6. Each mutant was red throughERR_ASSERTIONon the designated test, then green after restoration.{"→{ "inevidence-v1.manifest.jsonreplay evidence-v1decisionDigestin the 1.5.0 propagation receipt, withsha256anddecisionDigestupdated incorpus.jsonqualification-replay qualification-1.5.0-propagationvalid: false) ≠ 0src/core/index.ts: v3 added torepositoryRequired, then rebuiltreplay evidence-v3valid: false) ≠ 0evidence-v2entry and document removeddeepStrictEqualon versionsverification_routing.no_route_change: the 5 fixturepackage.jsonfiles have no scripts and no workspaces. They are referenced by no workflow, by nopnpm-workspace.yamlentry and by no root script, andpnpm testonly globstests/*.test.ts.Local gate:
pnpm checkoncbd43c6, with 991/991 tests passing (format, lint, schemas, conformance and typecheck included).Limits
Test plan
pnpm check(991/991)Refs #84
🤖 Generated with Claude Code