v0.2.0 — evidence-schema check #10
Check #10: evidence-schema
Validates evidence.v1 records (the canonical SliceOps evidence record format, ratified in spec DR-2026-07-02) against the canonical JSON Schema.
- Discovery: files ending
.evidence.json/.evidence.v1.jsonunder--root; filenames containing.example.are golden fixtures and are never picked up. Zero records → SKIPPED (green). - Full JSON Schema draft 2020-12 validation when
jsonschemais importable; otherwise a documented stdlib subset (required fields,schemaVersionconst, enums, ID/hash patterns, top-leveladditionalProperties, and the P6 slice-merge completeness rule) — same optional-dependency policy as PyYAML. Enums/patterns are read from the vendored schema at run time. - The vendored schema (
templates/consistency-validators/schemas/evidence.v1.schema.json) is byte-compared against the spec canonical on every CI run; drift fails the build. - 20 new tests (54 total), green with and without the optional deps.
The toolkit now ships 10 checks.