Docs Governance
Rules for keeping platform docs canonical, current, and machine-readable.
What It Is
The docs platform is a docs-as-code system with schema-validated frontmatter, required section headings for internal system docs, generated manifests, and CI checks for the phase-one platforms.
How It Works
Every page lives in Websites/docs and uses the same metadata contract. Public and internal builds are generated from the same source. CI validates content shape and requires paired docs changes for selected system directories.
Interfaces
- content schema:
Websites/docs/src/content/config.ts - manifest generator:
Websites/docs/scripts/write-manifest.mjs - validation rules:
Websites/docs/scripts/validate-docs.mjs - coverage gate:
Websites/docs/scripts/check-doc-coverage.mjs - workflow:
.github/workflows/docs-platform.yml
Data Flow
- Contributors update implementation and docs together.
- Validation checks metadata and required headings.
- Public and internal builds are generated separately.
- A machine-readable manifest is written for the built target.
Failure Modes
- doc metadata is missing or invalid
- system IDs in frontmatter do not exist in the registry
- internal system docs omit required sections
- code changes land in phase-one repos without docs changes
Debugging
- run
npm run validatefromWebsites/docs - run
npm run build:publicandnpm run build:internal - inspect
dist/public/manifest.jsonanddist/internal/manifest.json - confirm the changed file list passed to the coverage gate matches the current branch diff
Change Log / Verification
- Initial governance rules established on 2026-03-29
- Scope is intentionally narrow to the phase-one systems until wider migration lands