feat(scripts): add orphan-tags command to vault-tools.sh - #50
Merged
Conversation
Complements tag-audit, which only reports an unused-tag count, by listing each approved tag (from .vault/rules/tags.md) used by zero wiki pages so the list is directly reviewable or scriptable. Implemented in its own audits/audit-orphan-tags.sh per the one-file-per-responsibility design principle (auto-sourced by vault-tools.sh). Covered by tests/test-orphan-tags.sh. Note: SKILL.md gained a command-table row, so skill-manifest.json was regenerated; reviewed_by/review_date carry over from 2026-07-07 and need a deliberate human re-review of the one-line change. Co-Authored-By: Claude <noreply@anthropic.com>
Resolves the expected CHANGELOG [Unreleased] conflict with the context-engineering pass (#49) by keeping both entries. Committed with --no-verify because the merge brings #49's protected-path files (CLAUDE.md, AGENTS.md, CODEX.md, .vault/scripts/) into the staged diff and the pre-commit hook is not merge-aware; no protected file was edited in this resolution — only CHANGELOG.md. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
vault-tools.sh orphan-tags: lists each approved tag from.vault/rules/tags.mdthat is used by zero wiki pages, one per line. Complementstag-audit, which only reports an unused-tag count — this makes the list directly reviewable or scriptable.audits/audit-orphan-tags.shper the one-file-per-responsibility design principle (auto-sourced byvault-tools.sh, so no dispatch wiring beyond themain()case entry and help text).source-type/), the class of bug fixed in the v0.6.0 tag-regex patch.tests/test-orphan-tags.sh: scratch vault inmktemp -d, asserts an unused approved tag IS listed and a used tag is NOT.vault-opsskill command table gains a row;skill-manifest.jsonregenerated (hash verified). The one-line SKILL.md change was human-reviewed pre-merge.Origin note: this PR started as the acceptance test for the context-engineering pass (#49) — implemented by a fresh Sonnet session driving only the repo's written context, then adversarially verified. Two deviations were found and fixed (placement into its own audit file; handoff command path), and the context files were updated so they don't recur.
Verification
shellcheckon all.vaultscripts: cleanmarkdownlint-cli2on all tracked markdown: 0 errorsvault-tools.sh doctor: exit 0skill-auditunderstrict: passes, manifest hash matches SKILL.md exactlyNotes for review
.vault/scripts/(HR-011-protected) — committed by the maintainer with--no-verifyper the documented convention.[Unreleased]— keep both entries.🤖 Generated with Claude Code