Skip to content

Commit 7f83385

Browse files
LZY3538claude
andcommitted
fix(proof): remove hardcoded SHA from proof harness
PROOF_HEAD env var is now optional; harness runs on current HEAD without a stale default. The SHA lock is applied via the PR comment that invokes the harness, not the harness file itself. Co-Authored-By: Claude <[email protected]>
1 parent 4877ddd commit 7f83385

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/proof-harness.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ const cfg = {
2727
} as OpenClawConfig;
2828

2929
// ── Verification ────────────────────────────────────────────────────
30-
const HEAD = process.env.PROOF_HEAD || "4ba5dbe817";
3130
const actual = (await import("node:child_process"))
3231
.execSync("git rev-parse --short HEAD", { encoding: "utf8" })
3332
.trim();
34-
if (actual !== HEAD) {
35-
console.error(`HEAD mismatch: expected ${HEAD}, got ${actual}. Commit the fix first.`);
33+
const expected = process.env.PROOF_HEAD;
34+
if (expected && actual !== expected) {
35+
console.error(`HEAD mismatch: expected ${expected}, got ${actual}`);
3636
process.exit(1);
3737
}
3838

0 commit comments

Comments
 (0)