Repository navigation
Description
Summary
/code-tidying:audit-comment-residue detects four residue shapes in code. /docs-hygiene:audit-noise owns .md and detects five noise shapes. The two shape sets do not tile the space: three of the four residue shapes have no markdown detector in either skill.
The boundary itself is deliberate and documented on both sides, so this is not a case of a skipped file type. It is a gap behind an otherwise correct boundary: a README, rule body, or CLAUDE.md containing "as you asked, retry three times" or "see PR #45 for rationale" is currently invisible to the entire fleet.
Observed in [email protected] and [email protected], both current at dff0942.
Coverage matrix
| Residue shape | Code (audit-comment-residue) |
Markdown (audit-noise) |
|---|---|---|
history-narration |
yes | yes, as citation |
plan-reference |
yes | no owner |
conversational-antecedent |
yes | no owner |
ticket-pr-residue |
yes | no owner |
Evidence
Two probe files, run against plugins/docs-hygiene/skills/audit-noise/scripts/detect.sh.
Probe 1 exercises the three orphaned shapes:
As you asked, this section documents the retry policy.
Per our discussion, the timeout is 30s.
Task 2 replaces the old buffering approach described below.
In this PR we switch the default to streaming.
See PR #45 for the rationale behind the ordering constraint.
Tracked in JIRA-123.Result: Summary total: files=1 T1=0 T2=0 T3=0. Zero findings.
Probe 2 is a control, using audit-noise's own documented citation phrasings, to rule out a broken detector:
The helper was renamed to newName in a later revision.
We pivoted from polling to webhooks.
Empirically observed 2026-03-14, the retry storm collapsed the queue.Result: Summary total: files=1 T1=3 T2=0 T3=0. All three fire correctly.
So the detector is healthy. It simply has no rule for the other three shapes.
Proposed behavior
Give the three orphaned shapes to audit-noise rather than extending audit-comment-residue to .md.
Rationale for that direction:
audit-noisealready owns.md, so each file type keeps exactly one owner and no dedup or precedence rule is needed.- Extending
audit-comment-residueto.mdwould makehistory-narrationandcitationboth fire on the same line with conflicting treatments:citationsays relocate to a## Sourcesfooter,history-narrationsays delete. That conflict has to be resolved by ownership, not by widening scope. audit-noisealready has the more mature target router (--paths-file, offset/limit pagination, space-safe porcelain parsing), so the three shapes inherit better targeting for free.
Treatments should be adapted for prose rather than copied verbatim. ticket-pr-residue in particular needs the TODO(#issue) carve-out restated in markdown terms, since a tracked-work checklist item in a doc is legitimate in a way a bare provenance reference is not.
Related: default scope
#3117 proposes, for dissolve-comments, a scope resolution order of uncommitted diff, then PR or branch diff vs. base, then whole repository, plus asking when ambiguous. audit-comment-residue has the identical empty-argument no-op contract and the same shortcoming, so that fix is worth generalizing across the code-tidying scanners rather than applying per skill.
One refinement for the repo-wide tier: bound it with a file cap and report what was truncated, reusing the offset/limit pagination audit-noise already implements. An unbounded repo-wide fallback turns a cheap no-op into an expensive scan on a large repo, and a scanner that silently truncates reads as "covered everything" when it did not. #3117's own closing suggestion (report the exclusion tally instead of exiting silently) points the same way.
Activity
kyle-sexton commentedon Aug 23, 2026
Claimed by
/work-items:work(invoked with this item's URL explicitly, so selection was bound rather than auto-selected from the frontier).Degraded claim — no seam lease. The work-item-tracker seam could not run in this environment: its dispatcher gates on
gh >= 2.94and this container shipsgh 2.45, and the session'sGH_TOKENserves only a pinned REST subset (GraphQL returns HTTP 403). Every seam coordination verb (reclaim,list-frontier,claim,renew-lease) is therefore unavailable, so Step 0 session-start reclaim was skipped and no lease comment with a TTL exists for this claim.What was done instead: the assignee half of the claim was set through the GitHub API. That is not race-safe — there is no lease to expire or renew, so a stale claim here will not self-clear and collision avoidance falls to the operator. Remediation is operator-side: upgrade
ghin the remote environment image to >= 2.94 and provision a token that satisfies the adapter's needs.Gap reproduced before starting: both probes from the issue body run against
plugins/docs-hygiene/skills/audit-noise/scripts/detect.shatdff0942give exactly the reported results — probe 1T1=0 T2=0 T3=0, probe 2 (control)T1=3, all threecitation.Generated by Claude Code