Format first, then prove once: an early proof makes formatter edits an amendment
Symptom#
Run rvow prove only after the subagent or the other session that edits the task's files has finished, and after prek run or biome has formatted them. An early proof fingerprints the first passing version of a file. When the formatter rewrites it afterwards, rvow flags "lost or changed lines after the first passing proof". rvow archive also fails while that amendment is pending.
Cause#
Proof fingerprints the files at prove time; a later formatting change counts as changed lines.
Fix#
Format first, then prove once. Fixing a formatting-only amendment needs rvow amend --reason ... and a user confirm (/rvow-confirm accept AMD-xxx). If the amendment already exists, name its id to the user, because the agent cannot confirm it.
Evidence#
rvow tasks with subagents; the format-then-prove order avoided the amendments.
Also found by searching
- lost or changed lines after the first passing proof
- an early proof fingerprints the first passing version of a file
- the formatter rewrote the file after the proof and rvow flags an amendment
- format first, then prove once