validate_doc
Check a controlled document against its governing template without writing, verifying section order, filled fields, and carry-forward from the previous revision. Use for auditing records or pre-storage review.
Instructions
Check a controlled document against the template that governs it, WITHOUT writing anything. The same check the write path runs on every document write - this is the freestanding form, for auditing records written before validation existed, for counting what adoption will mark before it marks anything, and for checking new content before it is stored. Pass doc_id to check a stored document (the previous revision is pulled from the archive so the carry-forward check runs). Pass content, with template_id or a doc_id the map covers, to check text that is not stored. Checks FORM and CONTINUITY only: sections present, in order and filled; no placeholder left unfilled; NOT COMPLETED carrying a reason; a board's counts matching its rows; every row on the previous revision still present or dispositioned. It cannot check whether an answer is true, or whether a 'none' states its scope honestly - those stay with the author and the reader.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | Stored document to check. Alone, it is read from the store and compared against its own previous revision. | |
| content | No | Text to check instead of a stored document. Requires template_id, or a doc_id the map covers. | |
| template_id | No | Template to check against, e.g. 'templates/BOARD.md'. Read from the copy shipped with this release, never the store copy. |