Skip to content

feat(scripts): add verify-sources command for dangling raw/ citations - #42

Merged
galimba merged 3 commits into
mainfrom
feat/verify-sources
Jul 8, 2026
Merged

feat(scripts): add verify-sources command for dangling raw/ citations#42
galimba merged 3 commits into
mainfrom
feat/verify-sources

Conversation

@galimba

@galimba galimba commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Implements #7: new auto-globbed audit module audits/audit-sources.sh. vault-tools.sh verify-sources scans every wiki page's sources: frontmatter (block-list and inline YAML forms, quoted or not, |display handled), confirms each cited raw/ path exists on disk, and reports per page — verified / dangling with 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.sh covers 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

galimba and others added 3 commits July 7, 2026 16:56
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>
@galimba
galimba merged commit 76093a3 into main Jul 8, 2026
7 checks passed
@galimba
galimba deleted the feat/verify-sources branch July 8, 2026 06:42
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.

feat(scripts): add verify-sources command to detect dangling raw/ citations

1 participant