# Manifest-Driven Documentation

> For a module whose public surface is machine-derivable, make its metadata manifest the single documentation source of truth: authored narrative lives in mandated, shape-validated manifest fields (with self-expanding custom fields), the API surface is collected deterministically from the built type-declarations, one marker-layered document is compiled per module from both, and a governance router runs the context-detection rules on the manifest strings where a manifest governs (rendering each field to its markdown fragment first) and on the document itself where none exists. Beyond the module document, a manifest may declare typed documents — each a form plus concern that routes through the pure location function to a computed path — generated and drift-checked the same way, so the manifest is the single content generator with no separate template mechanism.

Record: `algo:manifest-driven-documentation`
Kind: architecture
Canonical: https://banes-lab.com/ontology/algorithms#algo-manifest-driven-documentation
Closure: https://banes-lab.com/json/records/algo/manifest-driven-documentation/closure

## composes

- [Document Truth Alignment](https://banes-lab.com/records/algo/document-truth-alignment.md)
- [Self-Description Manifest](https://banes-lab.com/records/algo/self-description-manifest.md)
- [Extension Point](https://banes-lab.com/records/algo/extension-point.md)
