Repository navigation
Keep the proof cache across app/specs changes - #90
Merged
Merged
Conversation
app/specs is data: the proof reads the LexLean project, and specs reach it only through the generated .lex.tex in app/src, which the key still covers. The bootstrap proof key (bootstrap.yml, PROOF_KEY in xtask/src/bootstrap.rs) and the proof's input listing (INPUT_PATHS in xtask/src/proof.rs) now leave app/specs out, so a spec-only change reuses the kept proof. Reuse still binds LexLean's source and semantic IDs. Measured on afflom/me: each miss cost 17 to 27 minutes of acceptance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QT5NNFBXXmoeroHvT
Rendered by the template's own propose-template-update steps (SDK ghcr.io/afflom/prismpm-sdk-patched@sha256:3dfa5f72..., action 35e9f01, template revision 263b14a); prismpm template check passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3QT5NNFBXXmoeroHvT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PGsfg89X6ENdzMWQQ
audit-prism refused the six lines the path list grew by. The paths are one string split at use, so xtask/src/proof.rs is no longer than on main. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LnihjghMFtJj7tkWm
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.
Stacked on #89. Its base is #89's branch, so the diff shows only this change. Once #89 merges, it retargets to main.
Why
In apps built from this template,
app/specsholds data, not proof inputs. The proof reads the LexLean project, and specs reach it only through the generated.lex.texfiles inapp/src, which the key still covers. Yetbootstrap.ymlkeys the kept proof onhashFiles('app/**', …), so every spec-only change misses the cache.Measured on afflom/me: most merges miss, and each miss costs 17 to 27 minutes of the acceptance run. afflom/me#85 fixes its own page job, but
bootstrap.ymland the xtask are template-locked.What
.github/workflows/bootstrap.ymlandPROOF_KEYinxtask/src/bootstrap.rsnow key onhashFiles('app/**', '!app/specs/**', 'prismpm.lock', 'Justfile', 'rust-toolchain.toml').INPUT_PATHSinxtask/src/proof.rsadds:(exclude)app/specs, so the proof's recorded input listing matches the key.template.lockis re-rendered by the template's own propose-template-update steps at revision 263b14a, with the same SDK and action as Pin the patched SDK that verifies applications (PrismPM#612, #615) #89, andprismpm template checkpasses.Reuse stays safe: proof reuse still binds LexLean's source and semantic IDs. The template has no
app/specsitself, so nothing changes for it.Checks
cargo test -p xtask: 52 passed.cargo fmt --check: passes.Generated by Claude Code