Skip to content

Commit 32ab51e

Browse files
PhysShellclaude
andcommitted
fix(evidence): re-check the tree once more before recording a result
The last tree check ran after the final mutation's restore; the result was built a few statements later. Check again immediately before the result exists, so the recorded snapshot and the tree it describes cannot drift in that window. The recorded run is unaffected: its definition hash and its commit are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016vuEiNoEXaooMDRu6tXrZ6
1 parent 9779bde commit 32ab51e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎scripts/mutate_campaign.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ def restore() -> None:
523523
with open(os.path.join(ROOT, t), encoding="utf-8") as f:
524524
if f.read() != text:
525525
raise CampaignError(f"{t} was not restored to its pristine content")
526+
assert_tree_unchanged(baseline, "before recording the result")
526527
return Result(
527528
campaign=definition.campaign,
528529
definition_sha256=definition.sha256,

0 commit comments

Comments
 (0)