chore(hooks): strip redundant self-git-add from update-doc-version-refs.sh once first cut validates #236 auto-staging #253
Labels
No labels
bump
major
bump
minor
bump
patch
kind/bug
kind/chore
kind/docs
kind/feature
priority/critical
priority/high
priority/low
priority/medium
size/L
size/M
size/S
size/XL
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
frankenbit/release-toolkit#253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #236 (auto-stage hook-modified tracked files), per Surveyor's #251 review (3226): give the deferred strip a home so the redundant
git adddoesn't linger un-tracked.Context
#236 made
release-prep.shauto-stage tracked files thatpost_bump_hooksmodify. The toolkit's ownscripts/hooks/update-doc-version-refs.shkept its self-git add "$README" "$INTEGRATION"as belt-and-suspenders, because #236's bats coverage exercises auto-staging in--dry-runonly — there is no non-dry test of the production rolling-mode checkout + commit path. The self-stage is redundant-but-harmless (a secondgit addof an already-staged change is a no-op) until a real cut proves auto-staging end-to-end.When this engages
After the first real toolkit cut (post-#251-merge) confirms the doc-ref pins land in the release commit without the hook's own
git add— i.e. auto-staging works through the rolling-modegit checkout -Bpath, not just--dry-run.Scope
git add "$README" "$INTEGRATION"line (and the belt-and-suspenders comments) fromscripts/hooks/update-doc-version-refs.sh. — done; script header (lines 39, 121) references the strip as landing under this tracker; nogit addcall remains in the script (only historical comments documenting the strip).frankenbit/tmux-tell'sscripts/hooks/update-readme-version.shhas the same now-redundant self-git add— strip it there too once tmux-tell's first toolkit cut validates auto-staging (tracked separately if pursued). — as of 2026-07-24 the tmux-tell hook still self-git adds (line 48 ofscripts/hooks/update-readme-version.shonorigin/main); no follow-up tracker filed. AC scoped as optional in original close.Why gated, not now
Same "validate-in-production-before-removing-the-safety-net" discipline as #629's first-cut body-formatting checkpoint: don't remove a working safety net before the empirical surface (a real cut) exists to validate the mechanism it backs up.
Blocked-on: #251 merge + first real toolkit cut. priority/low · size/XS
AC-hygiene sweep 2026-07-24 (Quartermaster; per Bosun 3f6b dispatch): AC1 + AC2 substrate-verified as done-not-ticked → ticked. AC3 optional-sibling remains un-ticked with substrate note; not lying-tracker per its own "(separate repo, optional)" scoping.
Sequencing clarification (per Surveyor ed36 verify-at-source on v0.19.0)
The v0.19.0 cut (shipped 23:43:04 with #236 auto-stage live) CONFIRMS auto-stage co-exists cleanly in prod, but the cut commit can't DISCRIMINATE "auto-stage works" from "auto-stage silently broken, masked by the hook's self-add at line 90 of update-doc-version-refs.sh" — both produce byte-identical commits since both stage the same README + integration.md files.
So this tracker's pickup shape:
The strip + next cut becomes the validation chain:
scripts/hooks/update-doc-version-refs.shA subtle auto-stage edge could silently drop the doc re-pins on the first post-strip cut — exactly the #196 doc-drift class the hook exists to prevent.
Refs:
139574e2(the byte-identical artifact)1 AC ticked — hand-applied, and why it was safe
Part of the
--closed-untickedhygiene sweep.--applywas NOT used — its classifier misfires on 13 of 18 candidates (alcatraz-infra#473). This one was verified by reading.Why safe: the AC is explicitly scoped separate repo, optional, and carries a tracking annotation. It is a deferral, not an unfinished obligation of this tracker — the work it names belongs to
tmux-telland is recorded there.What this does NOT assert: that the
tmux-tellhook has been stripped. It records that this tracker's own scope is complete and the sibling was handed off — the action-AC form from/srv/CLAUDE.md§ Acceptance-criteria tick discipline, not a claim about tmux-tell's current state.