Docs Guide (Internal Source of Truth)
This section is the canonical landing page for repository features, operating rules, and supporting catalogs. Use it as the repo systems map, not as a replacement for executable code, tests, or generated indexes.Source-of-Truth Model
- Runtime behavior: source of truth is code and tests.
- Feature and operations navigation: source of truth is this
docs-guide/section. - Public docs UX/content: source of truth is Mintlify pages under
v2/. - Generated catalogs: source of truth is generator scripts; generated files are read-only outputs.
Section Routes
Frameworks vs Policies
UseFrameworks for guides, helpers, warnings, models, and other improvement-oriented operating guidance. Use Policies for enforced rules, prohibited actions, canonical path contracts, and other constraints owned by hooks, validators, or audit gates.
component-framework.mdx is retained only as a compatibility page for the older route; component-governance.mdx is the canonical framework source. Agent governance remains in Policies, not Frameworks, because approved instruction-file locations, overlap boundaries, and retirement targets are part of the repository’s enforced operating contract. The same applies to V2 folder lanes because publishability, reserved paths, and workspace boundaries are path-governance rules enforced across routing, Mint, and audit tooling.
Archives remain under docs-guide/archive/ and docs-guide/catalog/, but archived pages are not canonical entry points and should not be surfaced in active navigation.
Update Rules
- Update manual docs when behavior, process, canonical boundaries, or architecture changes.
- Regenerate generated catalogs when scripts, workflows, or templates change:
node tools/scripts/generate-docs-guide-indexes.js --writenode tools/scripts/generate-docs-guide-pages-index.js --writenode tools/scripts/generate-docs-guide-components-index.js --writenode tools/scripts/generate-ui-templates.js --writenode tests/unit/script-docs.test.js --write --rebuild-indexesnode tools/scripts/enforce-generated-file-banners.js --check
- Re-run the docs audit pipeline when docs, scripts, reports, or routing paths change:
node tools/scripts/repo-audit-orchestrator.js --mode static --scope fullnode tools/scripts/cross-agent-packager.js --agent-pack all
- Keep
README.mdhigh-level and link to canonical docs-guide pages for deep detail. - Keep generator scripts, generated outputs, and downstream consumers in sync whenever a catalog path or title changes.
Related Areas
- Root orientation:
README.md - Public docs guide:
v2/resources/documentation-guide/ - Contributor procedures:
contribute/CONTRIBUTING/ - Test matrices and CI behavior:
tests/