Repository navigation
Description
Problem
Two comments in lib/hook-utils.sh still describe the status-line tee that #6152 removes, and one points at a script that no longer exists. The file is a registered shared copy in 21 plugins, so fixing a comment regenerates 21 copies and needs a version bump and CHANGELOG entry in each owning plugin. #6152 left it for one dedicated change instead of adding that to its own diff.
This follows from #6152 (draft). Line references below are on that PR's branch, feat/5778-mod-conventions, until it merges.
The stale comments
lib/hook-utils.sh:49-52, above hook::is_enabled:
The statusline tee is exactly that caller: it is a TRANSPARENT WRAPPER around the user's real statusline, so exiting 0 on "disabled" would suppress the wrapped command's output and blank the status line. It needs to skip its own side effect and still pass through.
No tee exists after #6152. The predicate itself stays: scripts/check-killswitch-hoist.sh pins the hooks' inlined kill-switch check to it (for example plugins/actionlint/hooks/actionlint-check.sh:16), and hook::check_enabled wraps it. Only the stated reason is gone, and no hook script calls the predicate directly.
lib/hook-utils.sh:2113-2114, in the comment on the read -N availability guard:
... Same guard and same rationale as plugins/context-guard/scripts/statusline-tee.sh.
plugins/context-guard/scripts/statusline-tee.sh is deleted on the #6152 branch, so the pointer is dead.
One related comment is outside the shared copies: lib/hook-utils.test.sh:3332-3335 says "The statusline tee depends on this". It is not registered in scripts/shared-copies.txt, so fixing it needs no bump.
Why it touches 21 plugins
scripts/shared-copies.txt registers lib/hook-utils.sh into plugins/<name>/hooks/hook-utils.sh for 21 plugins: actionlint, animation, autonomy, bash-format, biome-format, context-guard, desktop-notification, eol-normalizer, explainer-video, go-format, guardrails, harness-ops, instruction-placement, markdown-format, powershell-format, rate-limit-guard, ruff-format, source-control, speech, testing and typos-format. scripts/sync-shared-copies.sh --check-bump <ref> fails a change to the canonical unless each carrying plugin's manifest version moved, and ADR 0019 gives the CHANGELOG wording for a sync-only bump (docs/adr/0019-share-code-across-plugins-by-vendoring-with-a-sync-gate.md:101-103).
Proposed change
One dedicated change, with no other edit to lib/hook-utils.sh unless one is already pending, so the 21 bumps carry something:
- Reword the
hook::is_enabledcomment to the reason that holds today, or drop the caller claim. - Replace the dead pointer at 2113-2114 with the rationale stated in place.
- Fix the test-file comment at
lib/hook-utils.test.sh:3332-3335. - Run
scripts/sync-shared-copies.shto regenerate the 21 copies, bump each plugin, and add the standard sync-only CHANGELOG line.
Leave the code-tidying eval fixture alone unless the change decides otherwise: plugins/code-tidying/evals/fixtures/hook-utils-header.sh.txt:44-52 holds a snapshot of the header, including the tee sentence, and plugins/code-tidying/evals/real-hook-utils-header-aggressive/case.yaml grades against it.
Done when
grep -n -i "statusline" lib/hook-utils.sh lib/hook-utils.test.shfinds no tee reference, and no comment points at a deleted file.scripts/sync-shared-copies.sh --checkand--check-bump <base>pass.- Each of the 21 plugins has a version bump and a CHANGELOG entry.
Related
- feat(mods)!: adopt Claude Code mods and move context-guard and rate-limit-guard onto them #6152: the draft PR this follows from.
- decide: how a shared-library sync bumps the plugins that carry the copy #5427 (closed): the question of whether a sync-only change must bump every carrying plugin.
🤖 Generated with Claude Code
Activity
github-actions commentedon Oct 4, 2026
Thanks for the detailed writeup. Understood:
lib/hook-utils.sh(lines ~49-52 and ~2113-2114) andlib/hook-utils.test.sh(~3332-3335) still reference the status-line tee that #6152 removes, including a dead pointer to a deleted script. Sincelib/hook-utils.shis a registered shared copy across 21 plugins, fixing the comments means running the sync script and bumping/CHANGELOG-ing each carrying plugin. The proposed change and "done when" criteria are clear and actionable as written. No missing information from my read, and I didn't find an existing duplicate issue. This is blocked on #6152 merging first, per the issue itself.Automated triage. A maintainer reviews it.
kyle-sexton commentedon Oct 4, 2026
This was generated by AI during triage.
Routing: human-gated, sequencing block (not a decision). The work is fully specified, but it must not start before #6152 merges. On current main the status-line tee and its script still exist, so both comments are accurate there and the "dead" pointer still resolves; a worker starting now would delete a pointer to a live file. #6152 is still an open draft.
Basis: verified,
lib/hook-utils.sh:49and:2114on main reference the tee andplugins/context-guard/scripts/statusline-tee.sh; #6152's file list deletes that script;gh pr view 6152reportsisDraft: true.Serialization: this change regenerates all 21 vendored hook-utils copies and bumps 21 plugins, and so do #5787 and #5924, which also edit the canonical hook-utils library. Run these one at a time, never in parallel, or the sync and bump gates will conflict on every carrying plugin. The body already allows riding along with a hook-utils edit that is pending; #5787 and #5924 are exactly that. Recommended sequencing (yours to decide): land this together with whichever of #5787 or #5924 runs first, so the 21 bumps happen once instead of three times.
Release condition: #6152 merges. Then flip with one edit:
Related cluster: #6155, #6156, #6157 and #6158 all wait on #6152.
Agent Brief
Type: Task (chore)
Summary: Remove the status-line tee references from the shared hook-utils library's comments and its test file, then regenerate the 21 vendored copies with the standard sync-only bumps.
Current behavior (after #6152 merges):
hook::is_enabledpredicate says the status-line tee is the caller that needs a non-exiting predicate. No tee exists anymore. The predicate stays: the kill-switch hoist check pins the hooks' inlined check to it, andhook::check_enabledwraps it.read -Navailability guard points at the context-guard status-line tee script for its rationale; that script is deleted.Desired behavior:
hook::is_enabledcomment states a reason that holds today, or drops the caller claim.read -Nguard comment states its rationale in place, with no pointer to a deleted file.Acceptance criteria:
Out of scope:
hook::is_enabledorhook::check_enabled.kyle-sexton commentedon Oct 7, 2026
Fixed by #6394: the two hook-utils.sh comments that cited statusline-tee.sh were rewritten and the 21 copies regenerated.