Skip to content

docs(docs-hygiene): reground the audit-noise ghost-ref rationale off gitignore status - #1645

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/1639-ghost-ref-rationale
Jul 27, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/1639-ghost-ref-rationale

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

The audit-noise ghost-ref shape justified itself with a premise that is false for a consumer whose memory tier is tracked.

The row was named "ephemeral working-directory refs" and described its subject as concrete paths into "the topic-docs convention's ephemeral tiers" — resting the finding on the memory tier being gitignored. A consuming repo may deliberately track that tier, and one does: melodic-software/medley tracks .work/<slug>/ by accepted ADR (docs/adr/0005-work-dir-tracked-by-default.md, accepted 2026-05-09, amended 2026-06-02 to remove the ignore allow-list entirely). Verified in that checkout: .work/.gitignore absent, git ls-files .work returns 1,093 tracked files, git check-ignore reports NOT IGNORED.

That repo independently classifies the same shape as noise — for a different reason. Its .claude/rules/markdown-discipline.md:18-20 states ghost refs "couple rule lifetime to slice lifetime; slice retirement breaks them", with the same 3-way treatment and the same slot-variable exemption.

So the verdict was right and the stated reason was wrong. A reader in a tracked-tier repo could reasonably conclude the shape did not apply to them; it does. The row now rests on the durable reason — the citing document outlives the slice, so slice retirement breaks the reference regardless of git posture — and is renamed to "refs into slice-scoped working paths".

Detection is unchanged. noise-shapes.sh never encoded the gitignore premise (verified by grep), so no path's verdict moves. Every exemption is preserved: slot-variable forms, bare concern-scoped roots, and the retired .claude/notes/ location.

Test plan

  • skill-quality contract gate: PASS — 0 errors, 1 pre-existing warning (no Gotchas surface, unrelated to this change)
  • "all 6 base-ref trigger phrase(s) preserved" — the rename does not degrade skill discoverability
  • scripts/detect.test.sh passed (run by the gate)
  • git diff --stat confirms the SKILL.md change is a single line; detector scripts untouched
  • Version bump + CHANGELOG entry follow the precedent set by b81a251, a prose-only wording fix in this same plugin

Related

Closes #1639

…gitignore status

Closes #1639

The `ghost-ref` shape was named "ephemeral working-directory refs" and
described its subject as paths into "the topic-docs convention's ephemeral
tiers", resting the finding on the memory tier being gitignored.

A consuming repo may deliberately track that tier. One does, by accepted ADR,
with the citing files committed and reviewed — and it independently classifies
the same shape as noise for a different reason: the citing document outlives
the slice, so slice retirement breaks the reference. That reason holds whether
or not the tier is gitignored.

The row is renamed to "refs into slice-scoped working paths" and states the
durable reason explicitly.

Detection is unchanged: `noise-shapes.sh` never encoded the gitignore premise,
so no path's verdict moves, and every exemption (slot variables, bare
concern-scoped roots, the retired `.claude/notes/` location) is preserved.

Verification: skill-quality contract gate PASS (0 errors); all 6 base-ref
trigger phrases preserved; scripts/detect.test.sh passed.

docs-hygiene 0.9.2 -> 0.9.3

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@claude

claude Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 49s —— View job


PR Review

  • Gather context and read changed files
  • Review plugin.json version bump
  • Review SKILL.md wording change
  • Review CHANGELOG.md entry
  • Final assessment

Summary

This is a clean, well-scoped documentation correction. The rationale for the ghost-ref noise shape was grounded in a false premise (memory tier is gitignored), and this PR replaces it with a durable reason that holds regardless of git posture. Detection is unchanged — noise-shapes.sh contains no ephemeral or gitignore logic (verified by grep), so no verdicts move.


Findings

Minor — terminology inconsistency in frontmatter description: field

The table row was correctly renamed from "ephemeral working-directory refs" → "refs into slice-scoped working paths", but the frontmatter description: field (line 3) still reads:

"ghost refs to ephemeral working-directory paths"

This is the exact old framing this PR is correcting. A reader encountering the skill through autocomplete, the plugin manifest, or the marketplace listing would still see "ephemeral working-directory paths" and could draw the same incorrect conclusion the PR is closing off.

The fix would be a one-word swap — "ephemeral working-directory paths" → "slice-scoped working paths" — without touching any of the six Use when: trigger phrases (which are what the PR verified for discoverability). The PR explicitly scoped to a single-line change and the test plan confirmed trigger phrases preserved, but this secondary occurrence was not caught.

Relevant location: SKILL.md line 3

Fix this →


Everything else looks good

  • Version bump (0.9.2 → 0.9.3): Correct patch-level bump for a documentation/wording correction with no behavior change; consistent with the precedent cited (b81a251).
  • SKILL.md table row: The new description is accurate — "The citing document outlives the slice, so slice retirement breaks the reference; this holds whether or not the consumer's memory tier is gitignored" — and correctly places the reason on the durable property rather than on git posture.
  • Exemptions: All three exemption classes (slot-variable forms, bare concern-scoped roots, retired .claude/notes/ location) are preserved verbatim.
  • CHANGELOG: Thorough. Explains what was wrong, why it was wrong, what a reader could wrongly infer, and that detection is unchanged. Matches the standard established by prior entries.
  • Commit message: Well-structured and accurately summarises the scope.

@claude

claude Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 5s —— View job


Security Review — PR #1645

  • Gather PR diff and changed files
  • Read changed files in full
  • Security analysis
  • Post findings

No security issues found.

This PR is a pure prose correction across three files:

  • SKILL.md — one table-row rewording: renames the ghost-ref shape label and replaces a gitignore-dependent rationale with a posture-independent one. No change to path patterns, exemption logic, or detection behavior.
  • plugin.json — version bump 0.9.2 → 0.9.3 only. No permission changes, no new capabilities, no new tools.
  • CHANGELOG.md — documentation only.

Checked angles: prompt-injection potential in the new SKILL.md prose (benign factual text, no instruction-override patterns), shell execution surface (allowed-tools and pre-computed ! blocks are unchanged), plugin trust boundary (no egress, no new MCP servers, no widened permissions), and supply-chain exposure (no dependency or action pin changes). None moved.

@kyle-sexton

Copy link
Copy Markdown
Member Author

🤖 Merge lane (babysit-loop). Claiming for a gate-proven merge at head 0313a30c.

Merge gate: ready: true, zero blockers — 0 unresolved threads, required context security-review satisfied, 31/31 checks SUCCESS, CLEAN. Work class C2-mechanical (prose-only rationale rewording in one audit-noise table row, plus the version bump and changelog entry; the PR's own changelog records detection as unchanged since noise-shapes.sh never encoded the gitignore premise). That is within this lane's tracked merge rung (babysit_loop_merge: c2-mechanical).

@kyle-sexton
kyle-sexton merged commit e79da27 into main Jul 27, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the fix/1639-ghost-ref-rationale branch July 27, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs-hygiene(audit-noise): ghost-ref rationale assumes a gitignored memory tier

1 participant