Hashline Protocol — Anchored Edit Verification
Protocol Execution
2. PREPARE THE EDIT
- The target block is identified by its content, not its line number.
- The edit payload includes the explicit
<HASH>identifiers alongside the target content. - Example payload reference:
#a3f9b2c1d8e04f7a→ replacement content.
3. VERIFICATION (PRE-WRITE)
- The harness recalculates the current hash of each target line before writing.
- If the current hash does not match the recorded hash, the write operation is REJECTED.
- On rejection, the file is re-read to acquire fresh hashes; the hash is never guessed or synthesized.
4. COMMIT
- When all hashes match, the mutation is committed to the isolated worktree for Stage 1 functional review.
Reference Skills
sk-worktree-safety— Isolated worktree safety principles.