Retire the bespoke validator, AJV renderer, and body-schema.yaml manifests
Status: closed/done · Impact: high · Complexity: medium
The contracts are now the live validator, so the bespoke validation machinery is
dead weight. Delete it: the AJV-message renderer, the body-presence scanner and
manifest loading, the YAML coercion shim, and the 11 body-schema.yaml files —
and rewrite the standard that documented the old body artifact.
Acceptance criteria
Section titled “Acceptance criteria”-
entities/_validate.ts(the AJV-message renderer) is deleted. -
entity.ts’svalidateBody, the mdast H2 scanner, andbodyManifestloading are removed; remainingvalidateFrontmattercallers route through the contract. -
ops/validate.ts’scoerceForSchema(and unused wrappers) is deleted;parseFrontmatterreturns raw YAML. - The 11
body-schema.yamlfiles andbodySchemaFile(inconfiguration.ts) are removed, along with thevalidateBodyre-export. - S-0005 is rewritten so the body artifact is the contract in
schema.ts, and standards docs are regenerated.
Out of scope
Section titled “Out of scope”- Converging
audit.ts’s own frontmatter parsing onto the contract path — left to a cleanup follow-on.