A trap-guarded one-file swap over read-only git show: run the named tests against an older version of one file and exit 0 iff they FAIL there (the fix bites); exit 1 flags a vacuous fix. The file is restored on every exit path including interrupts; the ./ pathspec prefix makes it work from any directory inside the repo. Never touches git stash — the stash namespace is repo-global, shared across worktrees and with humans (a #111-round mishap popped a PR-#17-era user stash; hence the tool). Dogfooded three ways against the merged #111 history: the round-1 fix commit bites (exit 0), the same tests against HEAD read as vacuous (exit 1), and a docs/-relative invocation restores cleanly. Handoff: section 1 snapshot (editops #111 merged, worktree folded), section 5 lessons (repo-global stash; worktree-per-lane for parallel work). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018vF4gQVozBWi38y1SJiGfQ |
||
|---|---|---|
| .. | ||
| bite | ||