# Document Truth Alignment

> For any document that states facts about a codebase, separate invariant facts (counts, paths, names, and the doc-type's structural schema) from variant prose, bind each invariant to a code-derived value through a stable key, compile the document from a template, and gate the output so a stated fact can never drift from the code it describes.

Record: `algo:document-truth-alignment`
Kind: architecture
Canonical: https://banes-lab.com/ontology/algorithms#algo-document-truth-alignment
Closure: https://banes-lab.com/json/records/algo/document-truth-alignment/closure

## composed-by

- [Manifest-Driven Documentation](https://banes-lab.com/records/algo/manifest-driven-documentation.md)
