Skip to content

Keep the proof cache across app/specs changes - #90

Merged
afflom merged 4 commits into
mainfrom
claude/proof-key-excludes-specs
Nov 16, 2026
Merged

afflom merged 4 commits into
mainfrom
claude/proof-key-excludes-specs

Conversation

@afflom

@afflom afflom commented Nov 14, 2026

Copy link
Copy Markdown
Member

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/specs holds data, not proof inputs. The proof reads the LexLean project, and specs reach it only through the generated .lex.tex files in app/src, which the key still covers. Yet bootstrap.yml keys the kept proof on hashFiles('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.yml and the xtask are template-locked.

What

  • .github/workflows/bootstrap.yml and PROOF_KEY in xtask/src/bootstrap.rs now key on hashFiles('app/**', '!app/specs/**', 'prismpm.lock', 'Justfile', 'rust-toolchain.toml').
  • INPUT_PATHS in xtask/src/proof.rs adds :(exclude)app/specs, so the proof's recorded input listing matches the key.
  • template.lock is 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, and prismpm template check passes.

Reuse stays safe: proof reuse still binds LexLean's source and semantic IDs. The template has no app/specs itself, so nothing changes for it.

Checks

  • cargo test -p xtask: 52 passed.
  • cargo fmt --check: passes.

Generated by Claude Code

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
@afflom
afflom changed the base branch from claude/sdk-patched-standards to main November 16, 2026 19:36
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
@afflom
afflom merged commit 6beb5be into main Nov 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants