feat(scripts): add verify-sources command for dangling raw/ citations - #42
Merged
Conversation
New audit module audits/audit-sources.sh: vault-tools.sh verify-sources scans every wiki page's sources: frontmatter (block-list and inline forms), confirms each cited raw/ path exists on disk, and reports verified/dangling per page with the specific missing paths. Exit 0 when all citations resolve, 1 when any dangle. Doctor runs it as an advisory step — dangling citations warn but do not fail the diagnostic. Adds tests/test-verify-sources.sh. Closes #7 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
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
Implements #7: new auto-globbed audit module
audits/audit-sources.sh.vault-tools.sh verify-sourcesscans every wiki page'ssources:frontmatter (block-list and inline YAML forms, quoted or not,|displayhandled), confirms each citedraw/path exists on disk, and reports per page —verified/danglingwith the specific missing paths. Exit 0 when all resolve, 1 on any dangling.Doctor integration is advisory per the issue: dangling citations print a warning but never fail the diagnostic (verified end-to-end in a scratch vault).
Verification
test-verify-sources.shcovers existing citations,sources: [], and dangling-path detection with exit codes; full suite passes; shellcheck/markdownlint clean; adversarial review: pass, zero findings.Closes #7
🤖 Generated with Claude Code