From 263b14a20f15bf1d320c7b716c33843fe05d4bde Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 22:23:28 +0000 Subject: [PATCH 1/3] Keep the proof cache across app/specs changes 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 Claude-Session: https://claude.ai/code/session_013Asa3QT5NNFBXXmoeroHvT --- .github/workflows/bootstrap.yml | 2 +- xtask/src/bootstrap.rs | 2 +- xtask/src/proof.rs | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 04997a2..cad3761 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -58,7 +58,7 @@ jobs: uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: .prism-proof - key: prism-proof-${{ runner.os }}-${{ runner.arch }}-sdk-${{ steps.proof-inputs.outputs.sdk }}-lean-${{ steps.proof-inputs.outputs.lean }}-${{ hashFiles('app/**', 'prismpm.lock', 'Justfile', 'rust-toolchain.toml') }} + key: prism-proof-${{ runner.os }}-${{ runner.arch }}-sdk-${{ steps.proof-inputs.outputs.sdk }}-lean-${{ steps.proof-inputs.outputs.lean }}-${{ hashFiles('app/**', '!app/specs/**', 'prismpm.lock', 'Justfile', 'rust-toolchain.toml') }} - name: Reserve disk for the locked SDK shell: bash diff --git a/xtask/src/bootstrap.rs b/xtask/src/bootstrap.rs index 2e7a46d..e978b73 100644 --- a/xtask/src/bootstrap.rs +++ b/xtask/src/bootstrap.rs @@ -180,7 +180,7 @@ fn native_coverage_is_complete(bootstrap: &str) -> bool { /// The cache key: every proof input, the SDK image digest and the Lean /// toolchain by value. A key that omits one would find a proof of other inputs. -const PROOF_KEY: &str = "key: prism-proof-${{ runner.os }}-${{ runner.arch }}-sdk-${{ steps.proof-inputs.outputs.sdk }}-lean-${{ steps.proof-inputs.outputs.lean }}-${{ hashFiles('app/**', 'prismpm.lock', 'Justfile', 'rust-toolchain.toml') }}"; +const PROOF_KEY: &str = "key: prism-proof-${{ runner.os }}-${{ runner.arch }}-sdk-${{ steps.proof-inputs.outputs.sdk }}-lean-${{ steps.proof-inputs.outputs.lean }}-${{ hashFiles('app/**', '!app/specs/**', 'prismpm.lock', 'Justfile', 'rust-toolchain.toml') }}"; /// The step that names the SDK image digest and the Lean toolchain for the key. const PROOF_INPUTS: [&str; 8] = [ diff --git a/xtask/src/proof.rs b/xtask/src/proof.rs index b30756f..dee2abd 100644 --- a/xtask/src/proof.rs +++ b/xtask/src/proof.rs @@ -21,7 +21,13 @@ const EVIDENCE: [&str; 3] = [ "application-acceptance.json", ]; /// Every checked-in byte the proof reads, as bootstrap.yml's cache key names it. -const INPUT_PATHS: [&str; 4] = ["app", "prismpm.lock", "Justfile", "rust-toolchain.toml"]; +const INPUT_PATHS: [&str; 5] = [ + "app", + ":(exclude)app/specs", + "prismpm.lock", + "Justfile", + "rust-toolchain.toml", +]; /// A kept proof, as read back from `.prism-proof`. struct Kept { From bec86453ba66e9b563319975fe49a02c04b533db Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 22:27:31 +0000 Subject: [PATCH 2/3] Lock the template policy at the proof key that leaves app/specs out 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 Claude-Session: https://claude.ai/code/session_013Asa3QT5NNFBXXmoeroHvT --- template.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.lock b/template.lock index 08e11b6..dbac886 100644 --- a/template.lock +++ b/template.lock @@ -1 +1 @@ -{"contract_digest":"sha256:67a3292cfe6e6400bc18718b6a62e8741dec8d6d6b062cb0e4077fc8d9b616f5","policy_files":[{"path":".devcontainer/devcontainer.json","sha256":"sha256:77df0fd0a87ace0f9f71959055ffd05c14bcd3758f96c5ecf9d70ee6f376bf8f"},{"path":".github/workflows/bootstrap.yml","sha256":"sha256:197117436eb1d32a8d205e5897c50c92bed048bd47d8110a585c0e75c659757c"},{"path":"AGENTS.md","sha256":"sha256:9a1fe3f73ab2963812c35976909c331292e1ca39ce47c0711ec1aafe8b869d87"},{"path":"VERIFICATION.md","sha256":"sha256:0912821fea354276fff5faa2b6b6ded0cdf4ef86112ad035b41a0a7a0513bd21"},{"path":"prismpm.lock","sha256":"sha256:3dbd6a1bcb6f145f35f61e5e265495a1a6c9e071f4b2c6c89ae68f35eb600c02"},{"path":"template-contract.json","sha256":"sha256:67a3292cfe6e6400bc18718b6a62e8741dec8d6d6b062cb0e4077fc8d9b616f5"}],"policy_tree_sha256":"sha256:89db2bd9c079784e62dbb14dea622e7709b70e65fa86efec5b12a5d283b84075","schema":"uor/template-lock/1","sdk_image":"ghcr.io/afflom/prismpm-sdk-patched@sha256:3dfa5f7284ace57c08bfe8d2effe2e08ab41da1a53f5820d48cccd498bd528c3","template_repository":"https://github.com/UOR-Foundation/template","template_revision":"b82a30572334bdec00bfbc8d62cb248ecaee4055"} \ No newline at end of file +{"contract_digest":"sha256:67a3292cfe6e6400bc18718b6a62e8741dec8d6d6b062cb0e4077fc8d9b616f5","policy_files":[{"path":".devcontainer/devcontainer.json","sha256":"sha256:77df0fd0a87ace0f9f71959055ffd05c14bcd3758f96c5ecf9d70ee6f376bf8f"},{"path":".github/workflows/bootstrap.yml","sha256":"sha256:633a66f526b0e855955b0d5bb9d5a1d13b94a788aa7187652110b22b9561c6f9"},{"path":"AGENTS.md","sha256":"sha256:9a1fe3f73ab2963812c35976909c331292e1ca39ce47c0711ec1aafe8b869d87"},{"path":"VERIFICATION.md","sha256":"sha256:0912821fea354276fff5faa2b6b6ded0cdf4ef86112ad035b41a0a7a0513bd21"},{"path":"prismpm.lock","sha256":"sha256:3dbd6a1bcb6f145f35f61e5e265495a1a6c9e071f4b2c6c89ae68f35eb600c02"},{"path":"template-contract.json","sha256":"sha256:67a3292cfe6e6400bc18718b6a62e8741dec8d6d6b062cb0e4077fc8d9b616f5"}],"policy_tree_sha256":"sha256:f0bfe7aae45c572d8bb34d88797604eaa15b67fd82151e87c69c640e559be8f4","schema":"uor/template-lock/1","sdk_image":"ghcr.io/afflom/prismpm-sdk-patched@sha256:3dfa5f7284ace57c08bfe8d2effe2e08ab41da1a53f5820d48cccd498bd528c3","template_repository":"https://github.com/UOR-Foundation/template","template_revision":"263b14a20f15bf1d320c7b716c33843fe05d4bde"} \ No newline at end of file From d389db043f8f8d3e54608d1ff7d38a3fa949b931 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 19:43:46 +0000 Subject: [PATCH 3/3] Keep the proof's input paths on one line 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 Claude-Session: https://claude.ai/code/session_013Asa3LnihjghMFtJj7tkWm --- xtask/src/proof.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/xtask/src/proof.rs b/xtask/src/proof.rs index dee2abd..5de26a4 100644 --- a/xtask/src/proof.rs +++ b/xtask/src/proof.rs @@ -21,13 +21,7 @@ const EVIDENCE: [&str; 3] = [ "application-acceptance.json", ]; /// Every checked-in byte the proof reads, as bootstrap.yml's cache key names it. -const INPUT_PATHS: [&str; 5] = [ - "app", - ":(exclude)app/specs", - "prismpm.lock", - "Justfile", - "rust-toolchain.toml", -]; +const INPUT_PATHS: &str = "app :(exclude)app/specs prismpm.lock Justfile rust-toolchain.toml"; /// A kept proof, as read back from `.prism-proof`. struct Kept { @@ -246,14 +240,14 @@ fn inputs(root: &Path) -> Result { std::env::consts::ARCH, ); let mut args = vec!["ls-files", "-z", "--"]; - args.extend(INPUT_PATHS); + args.extend(INPUT_PATHS.split(' ')); let files = run(root, ".", "git", &args)?; for path in files.split('\0').filter(|path| !path.is_empty()) { let bytes = std::fs::read(root.join(path)).map_err(|error| format!("{path}: {error}"))?; out.push_str(&format!("{} {path}\n", hex(&bytes))); } let mut args = vec!["status", "--porcelain=v1", "--untracked-files=all", "--"]; - args.extend(INPUT_PATHS); + args.extend(INPUT_PATHS.split(' ')); out.push_str(&run(root, ".", "git", &args)?); Ok(out) }