Files changed: - CHANGES.md - README.md - VERSION - docs/reference/README.md - docs/reference/commands/README.md - docs/reference/commands/catalog-and-log.md - docs/reference/commands/content-migrations.md - docs/reference/commands/distribution-and-versioning.md - docs/reference/commands/finding-and-checking.md - docs/reference/commands/git.md - docs/reference/commands/guideline-export.md - docs/reference/commands/instance-health.md - docs/reference/commands/links-and-citations.md - docs/reference/commands/pages.md - docs/reference/commands/provenance.md - docs/reference/commands/raw-material-and-uploads.md - docs/reference/commands/telemetry.md - docs/reference/commands/types-instructions-and-docs.md - docs/reference/commands/workshop-runs-and-session-budget.md - docs/reference/exit-codes.md - instructions/dev/doc-pull-through.md - tools/CONTRACT.md - tools/README.md - tools/chemenu/cli.py - tools/chemenu/cli_contract.py - tools/chemenu/commands/docs_verify.py - tools/chemenu/reference_doc.py - tools/chemenu/tests/test_reference_doc.py - tools/chemenu/toc.py Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SnAJ7Z3CpVD3PRbN73QtU2
3.4 KiB
3.4 KiB
Provenance
Which raw source backs which page, and the generated provenance index that records it.
Contents
sources coverage
List raw files with no source page, broken raw_files: references, and legacy directory/URL-only source pages.
Synopsis
wikitool sources coverage [--json]
Options
--json Print raw findings as JSON
-h, --help Show this message and exit.
Examples
tools/wikitool sources coverage
tools/wikitool sources coverage --json
Behaviour
- Lists raw files with no source page, broken
raw_files:references, and legacy directory/URL-only source pages. --jsonprints the same lists as JSON.- Never fails; read-only and safe to retry freely.
Properties
- Changes files: no
- Idempotent: yes
- Atomic: Read-only
- Counts toward the session call budget: yes
- Can reach the network: no
Exit codes
0- success
See also
wikitool sources trace- follows one file or pagewiki-ingestskill - turns an uncovered raw file into a source page
sources trace
Trace provenance in either direction: raw file, or page.
Synopsis
wikitool sources trace --raw <path> | --page "<Title>"
Options
--raw <str> Raw file path to trace forward from
--page <str> Wiki page title to trace backward from
-h, --help Show this message and exit.
Examples
tools/wikitool sources trace --page "Docker"
tools/wikitool sources trace --raw "raw/articles/llm-wiki.md"
Behaviour
--raw <path>: raw file -> the source page(s) covering it -> the pages citing those.--page "<Title>": page -> its sources -> their raw files.- Read-only.
Properties
- Changes files: no
- Idempotent: yes
- Atomic: Read-only
- Counts toward the session call budget: yes
- Can reach the network: no
Exit codes
0- success1- Neither or both of--raw/--pagegiven, or--pagenames an unknown page1---rawnames a file no source page covers - reported as a plain finding plus exit 1, not the usualERROR-prefixed rejection
See also
wikitool sources coverage- every uncovered raw file at oncewikitool xref link-source- links a source page to what it mentions
sources rebuild-index
Regenerate the kb/provenance.md reverse index.
Synopsis
wikitool sources rebuild-index [--dry-run]
Options
--dry-run Print the result instead of writing kb/provenance.md
-h, --help Show this message and exit.
Examples
tools/wikitool sources rebuild-index
tools/wikitool sources rebuild-index --dry-run
Behaviour
- Regenerates the
kb/provenance.mdreverse index (raw file -> source page -> citing pages) from scratch. --dry-runprints the result instead of writingkb/provenance.md.
Properties
- Changes files: yes
- Idempotent: yes
- Atomic: Yes - the single provenance file is regenerated from scratch
- Counts toward the session call budget: yes
- Can reach the network: no
Exit codes
0- success1- An I/O error while writingkb/provenance.md(rare)
See also
wikitool index rebuild- the page catalog, rebuilt alongsideinstructions/publish-cycle.md- where a write session runs this