Plan vs actual — /GIT/ URL refactor postmortem
The plan held. 19 files, one regex, zero regressions.
PR #42 · commit df9d41a · 153 insertions, 69 deletions · 9 new helper tests · 7/7 ✓ before and after
CLAUSE
PREDICTED
ACTUAL
VERDICT
source files touched
~10 + helper + test
11 (incl. b32 + test)
✓ on target
content files rewritten
8 (plan listed each)
8
✓ exact
/GIT/ references absorbed
49
49
✓ exact
redirect mechanism
one regex
one regex
✓ anti-fudge held
Layer 1 helper size
~5 lines
13 lines
✓ in band
helper test cases
~3
9
~ over-covered (3×)
total test count
379 → 379+
379 → 388 (+9)
✓ green
/sama/v2/verify
7/7 ✓ before + after
7/7 ✓ before + after
✓ verdict held
LIVE_REPO_OWNER constant
stays exported
stays exported
✓ no scope creep
git protocol URLs
untouched (scope-out)
untouched
✓ no breakage
alias mode (both URLs work)
forbidden — 301 only
301 only
✓ converges
unanticipated surprises
(unknown)
1 (commit-test churn)
~ minor scope nit
The reusable shape:
b32_<old>_url_redirect.ts (pure transform, ~5–13 lines) + sibling test + one Layer-3 wrapper in the fallback handler
https://tdd.md