--- name: prove-patch description: Use when a local security patch commit needs independent scoped and three-arm proof. --- # Prove Patch Use the original baseline, final patch commit, declared `repair_scope`, and unchanged reproduction package. Read the [record contract](../../references/records.md). Do not edit the patch or validate an uncommitted tree. Return failures for a new attempt. Before target commands, follow its [project guidance](../../references/records.md#project-guidance). 1. Review the scoped cases and the patch without the patcher's conclusion. Execute each planned input on clean baseline and patched trees with the same retained harness source and command. The harness must print exactly one `PATCH_CASE {"input": ..., "actual": ...}` from the exercised input and observed result, then print `PATCH_REACHED` as its final stdout line immediately before the assertion. Representatives must fail on the baseline and pass on the patch. Valid controls must pass on both. Keep the baseline and patched stdout, stderr, exit status, elapsed time, command, and harness source under `receipts/`. A timeout, setup failure, missing marker, mismatched input, or ambiguous observation is an evidence gap. A trustworthy patched failure is a finding. Never relabel a gap as a pass. 2. Run relevant project checks on the patch and retain the same raw receipts. Use baseline comparison for behavior checks and to attribute failed project checks; a passing patched suite may omit a baseline run. Include focused tests, regression and security checks where relevant. Record specific unproven limits; an empty list leaves the result inconclusive. 3. Run the [three-arm helper](../../scripts/arms.py) with the proof-type recipe in the record contract, `reproduce.baseline_commit`, and final `patch_commit`. Require the baseline to fail, patch to pass, and complete baseline revert to fail again. Require `receipts/source.json` to identify the pinned commits and the reverted tree to equal the original baseline tree. Require the type's build identity result. Retain all source-tree, build, and execution receipts. 4. Write `prove.json` and a final manifest covering it and every receipt. Run `uv run --no-project