Repo Standards Schema#
This document describes the current schema behind Repo Standards and Requirements.
Repo Standards answer:
What requirements does this repo currently observe, guide on, or require?
They are intentionally separate from implementation code and from the current Repo Map file.
Why The Shape Exists#
Without a standards artifact, teams usually end up with one of two bad outcomes:
- standards are buried in bespoke scripts, so nobody can tell which requirements are durable and which are temporary
- every requirement is flattened into one severity level, so guidance and hard gates are treated the same
The current schema makes requirement intent explicit.
Current Rule Classes#
The resource envelope uses spec.requirements; the legacy shape uses rules. Both normalize through the public loader. Classification values describe the kind of requirement:
hard-invariant: a requirement the repo cannot silently drift frompromotable-policy: a strong preference that may later become requiredadvisory-pattern: useful guidance worth surfacing without hard blockingbrittle-implementation-check: the current source-shape validation rail, replaceable when stronger evidence kinds land
Product Enforcement Ladder#
Product language should use:
- Observe: collect evidence only
- Guide: provide correction or review feedback
- Require: require fresh evidence
The schema uses enforcementLevel; stage is not a current field. An optional
evidenceCheckIds list names Repo Map checks to execute when a changed file
matches the rule. Check execution and rule satisfaction are separate facts.
The point of keeping both classification and enforcement metadata is that they answer different questions:
- Classification: what kind of requirement is this?
- Enforcement: how strongly should Veritas apply it right now?
Evidence-backed requirements#
Use kind: "evidence-check", a nonempty match.files list, and nonempty
evidenceCheckIds when the requirement is established by executed checks.
No placeholder artifact assertion or text pattern is needed. The rule is pending
until bound execution is available; missing/failed checks cannot satisfy it.
See Code Hygiene for an executable integration.
Current Reference#
Use repo-standards/work-agent-convergence.repo-standards.json as the current schema example.