Skip to content

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.

  • entities/_validate.ts (the AJV-message renderer) is deleted.
  • entity.ts’s validateBody, the mdast H2 scanner, and bodyManifest loading are removed; remaining validateFrontmatter callers route through the contract.
  • ops/validate.ts’s coerceForSchema (and unused wrappers) is deleted; parseFrontmatter returns raw YAML.
  • The 11 body-schema.yaml files and bodySchemaFile (in configuration.ts) are removed, along with the validateBody re-export.
  • S-0005 is rewritten so the body artifact is the contract in schema.ts, and standards docs are regenerated.
  • Converging audit.ts’s own frontmatter parsing onto the contract path — left to a cleanup follow-on.

← Back to Tasks