| title | Source of Truth Policy | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| sidebarTitle | Source of Truth Policy | ||||||||||
| description | Canonical ownership boundaries to prevent drift across README, docs-guide, tests docs, and Mintlify pages | ||||||||||
| keywords |
|
This document defines canonical ownership boundaries to prevent drift across README, docs-guide, tests docs, and Mintlify pages.
| Concern | Canonical source | Notes |
|---|---|---|
| Script/runtime behavior | Code + tests | Behavioral truth always lives in executable code and validation tests. |
| Script metadata and inventory | Script headers + generated indexes | Script headers feed script index generation. |
| Repo feature navigation map | docs-guide/*.mdx (manual canonical files) |
Internal maintainer source of truth. |
| Codex skill portability | ai-tools/ai-skills/templates/*.template.md |
Local installs are synced from templates via sync-codex-skills.js. |
| Public user-facing docs content | v2/pages/** |
Mintlify docs in docs.json navigation. |
| CI/test execution behavior | Workflow files + test runner scripts | Narrative summaries must link to these files. |
| Issue/PR intake behavior | .github/ISSUE_TEMPLATE/* + PR templates + workflows |
Generated templates index summarizes usage. |
The following files must exist and be non-empty:
docs-guide/README.mdxdocs-guide/feature-guides/feature-map.mdxdocs-guide/feature-guides/architecture-map.mdxdocs-guide/lpd.mdxdocs-guide/quality-testing/quality-gates.mdxdocs-guide/feature-guides/automation-pipelines.mdxdocs-guide/feature-guides/content-system.mdxdocs-guide/feature-guides/data-integrations.mdx
The following files are generated and should not be edited directly:
docs-guide/indexes/scripts-index.mdxdocs-guide/indexes/workflows-index.mdxdocs-guide/indexes/templates-index.mdxdocs-guide/indexes/pages-index.mdxdocs-guide/indexes/components-index.mdx
Regenerate with:
node tools/scripts/generate-docs-guide-indexes.js --write
node tools/scripts/generate-docs-guide-pages-index.js --write
node tools/scripts/generate-docs-guide-components-index.js --write
node tests/unit/script-docs.test.js --write --rebuild-indexesGenerated and mixed generated files should include a standardized banner at the top that documents:
- generator script(s)
- purpose
- when to rerun the generator
- a do-not-edit warning
Guidelines:
- Use a full-file banner for files that are entirely generated.
- Use a mixed-file banner for files that contain generated sections only.
- Use
unknown/externalwhen the generator cannot be confirmed in-repo. - Do not edit generated JSON files directly; JSON artifacts should be inventoried/reported instead of commented.
Use the generated banner enforcer utility:
node tools/scripts/enforce-generated-file-banners.js --write
node tools/scripts/enforce-generated-file-banners.js --checkREADME.md is an orientation document, not a full operations manual.
It must include:
- what the repo is
- how to run quickly (
lpd setup,lpd dev, basic test) - high-level feature map
- links to docs-guide canonical files
It should not duplicate deep procedures that already exist in:
docs-guide/tests/*.mdcontribute/CONTRIBUTING/*.mdv2/resources/documentation-guide/*.mdx
- Any meaningful process change must update the relevant docs-guide canonical file in the same PR.
- Any script/workflow/template change must regenerate indexes in the same PR.
- If README and docs-guide disagree, docs-guide canonical files are considered authoritative for operational navigation.
- Codex skill installs must be generated from templates using
node tools/scripts/sync-codex-skills.js(manual edits in local skill folders are non-canonical).