Repository navigation
ci: run each formal obligation once per content identity - #114
Merged
Merged
Conversation
Following PrismPM's Factory route (establish each obligation once per content identity κ of its inputs, reuse the receipt otherwise): - scripts/ci-receipt.sh computes κ, the SHA-256 of the tracked tree minus the product client and release plumbing (client/, crates/uorc*, generated/, web/, Cargo.toml/lock, README, bench/export scripts, release.yml). A passing obligation uploads a receipt artifact named by obligation and κ; a later run with the same κ from this repository finds it and skips the work. - bootstrap: every leg except `rest` is receipted. `rest` checks the product and runs on every revision. - `just test` excludes xtask; its suite (product runtimes, ~26 min) is the new `formal-tests` recipe in the receipted claims leg, so `rest` drops from ~32/44 min to a few minutes. - offline validation: a route job skips the whole workflow when κ is proved. - Both workflows cancel superseded pull-request runs. - template.lock records the new bootstrap.yml digest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3MxBFWUvmvRUeURG8o
This was referenced Nov 9, 2026
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.
Requested by Alex · project thread
Why
Every PR, including a one-line workflow change (#113), paid ~80 min of CI: three full LexLean verifies (artifacts leg + two offline roots), the integrity runtime (~43 min), and the xtask suite (~26 min inside
rest, on both hosts). Any fix commit or rerun paid it all again.PrismPM's Factory route (PrismPM #566, #579) establishes each obligation once per content identity κ of its inputs and reuses the receipt otherwise. This applies the same idea here, with no new legs.
What
scripts/ci-receipt.sh: κ = SHA-256 ofgit ls-tree -r HEADminus the paths no formal leg reads:client/,crates/uorc*,generated/,web/,Cargo.toml/Cargo.lock,README.md,scripts/bench.mjs,scripts/client-export.mjs,release.yml, and the script itself. A passing obligation uploads a tinyreceipt-<obligation>-<κ>artifact (90-day retention).lookupfinds an unexpired one from a same-repository run through the Actions artifacts API; any lookup failure means "not proved", so the work runs.restis receipted.rest(lexlean check, template/model, fmt, clippy, tests, features, bdd, deny) checks the product and runs on every revision on both hosts. Job names and the requiredacceptance / *checks are unchanged.testexcludes xtask; the xtask suite becomesformal-tests, added tovvand run in the receipted claims leg.restdrops from ~32/44 min to a few minutes.routejob skips the whole workflow when κ is proved (receipt uploaded by the two-root comparison).template.lockrecords the newbootstrap.ymldigest and policy tree hash; the preflight workflow test pins the new conditions.Effect
restonly, a few minutes.Checks
tests/sdk-preflight/run.py: 17 OK.claims,varint,offline,integrity-transcript/stream/vectorsnode suites pass.cargo test -p xtask bootstrap: 14 pass.Generated by Claude Code