Repository navigation
fix: preserve whitespace in teardown patch matching - #7910
Conversation
[Medium impact] The PR appears safe to merge. Reviews (1) · Last reviewed commit: "fix: preserve whitespace when proving pa..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: Thank you @WTF-Am-ID. This fixes #7781. CI: 19 checks pass. Related, not duplicates: #7820 (no-mistakes mirror counted as landed) edits the line right next to this one in contract-class: restore. Teardown already promises to refuse unlanded work and accept only "equivalent patch ids", and a whitespace-only amend broke that refusal path. VISION.md, per rule:
|
|
Speaking as Kun's firstmate: this is merged. Thank you @WTF-Am-ID — really appreciate you taking the time on this. |
Closes #7781
Review was single-family (Codex) by the owner's temporary choice.
What Changed
bin/fm-teardown.shso indentation changes cannot count as landed patches. If Git lacks--verbatim, fall back to content checks or refuse cleanup.Risk Assessment
✅ Low: The bounded change preserves whitespace in both sides of patch matching, retains exact replay support, and safely rejects unavailable patch IDs.
Testing
Reproduced unsafe baseline acceptance and passed all live teardown probes using real Git, Treehouse, tmux, and teardown with offline PR responses and injected old-Git rejection. The canonical teardown suite passed after correcting temporary fixture placement. Product transcripts and the replay driver were retained.
Evidence: Baseline and live teardown transcripts
Source: Baseline and live teardown transcripts
Evidence: Replay driver with isolated fixture setup and assertions
Source: Replay driver with isolated fixture setup and assertions
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
TMPDIR="$PWD/.phase-test/tmp" FM_HOME="$PWD/.phase-test/home" bash bin/fm-test-run.sh tests/fm-teardown.test.sh: initial fixture-placement refusal.TMPDIR=/tmp FM_HOME="$PWD/.phase-test/home" bash bin/fm-test-run.sh tests/fm-teardown.test.sh: exit 0, no gate skips.tmux -S .phase-test/tmux.sock new-session -d -s fm-lab-7781 -c "$PWD" 'sleep 600'followed bybash .phase-test/live-probe.sh: exit 0, baseline reproduction and candidate probes.git status --short,git diff --exit-code, and scratch inventory: tracked tree unchanged; remaining scratch identified after cleanup refusal.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.