Consume vidimus==0.1.2: shim the three integrity scripts (byte-transparent)#110
Merged
Conversation
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.
Makes the three integrity scripts thin shims over the published
vidimus==0.1.2package, byte-transparent, per the green-lit approach. Extraction home: TheAxiomFoundation/vidimus (the ledger's release-chain verifier + append gate were extracted from these exact scripts and proven byte-equivalent by a 57-test differential harness).Base:
codex/thesis-ledger-facts@ 1f92bf4 (after the base-gate provisioning landed in #107–#109). The three extracted scripts are byte-identical between 9dafe81 and this base, so vidimus 0.1.2 is their exact mirror.What changes
scripts/canonical_json.py,scripts/verify_release_chain.py,scripts/check_thesis_facts_append.pybecome thin shims: importvidimus+ the committed pins, reproduce the exact CLI, and re-export every public name other modules/tests import (including the old no-specsignatures for existing callers;cut_release_manifest.pybinds cleanly). ~2,160 lines of duplicated implementation removed.scripts/vidimus_pins.py(new): this repo'sLEDGER_SPEC/APPEND_GATE_SPEC— trust anchors stay committed in this tree, per the package's pins-in-consumer-code rule.vidimus==0.1.2added to[project.dependencies];uv.lockpins it by version + sha256 (sdistef0f798e…, wheelf6662a73…).How it's proven (all six of your constraints)
tests/test_vidimus_shim_transparency.py: the shimmed scripts produce byte-identical exit/stdout/stderr to the pre-shim originals (subprocesses) across canonical-JSON modes,verify_release_chain --fullon the live chain,check_thesis_facts_append --base-refreplay, and corruption cases (only the OpenSSL per-process error-queue-id normalized). 17 passed.ledger/**,releases/manifests/**,.github/workflows/**, ortests/test_thesis_append_adversarial.pychanges ✓Provenance and review
Built + self-reviewed by Sol (gpt-5.6-sol, equivalence-audit framing) in an isolated clone; an earlier attempt correctly refused when handed mismatched package hashes (integrity check working as intended). Independently verified here: transparency test 17/17, lockfile hashes match PyPI, header rule present. This is your production trust surface — it's yours to review and squash-merge. The real end-to-end proof is the next gate-class PR after this one, whose base gate provisions vidimus from this locked env.
One design point for you
The transparency test ships copies of the pre-shim originals under
tests/fixtures/vidimus_shim_originals/as its comparison reference. That keeps the test self-contained but carries the old implementations as fixtures. Alternative: have the test fetch the originals from the git base at run time. Your call — happy to switch it if you'd prefer not to carry the copies.🤖 Generated with Claude Code