Skip to content

v1.12.0 — check the registry against the world, not only against the docs

Choose a tag to compare

@CesarRivasP CesarRivasP released this 27 Sep 19:45
· 108 commits to main since this release

Summary

The registry checked against the world, not only against the docs. A set worked for 39 rounds audited 0 contradictions, 0 drift almost every round while ten built components sat outside changes[] for fifteen of them — consistent with itself, wrong about the tree.

  • Check 37 — ids unique per container and across them; reserved_ids: for ids deleted before retired existed.
  • Check 38 — source_tree: globs vs the files on disk.
  • Check 39 — changes[].built_on: read against the files and status:.
  • Check 40 — dates.revisions[] oldest first, changelogs newest first, same dates.
  • Check 41 — [PROVISIONAL: <ref> <date>] fires when its entry moves.
  • Check 42 — docs[].regenerated_on: lists cited entries that moved since (candidates).
  • Check 43 — contracts.*.validated_in: fields the validator never names (candidates); §Contract parity documents the repo-side test.
  • Check 16 — parsing half mechanized: round order, required fields, every set file's wc -l + blob vs the last entry that recorded it, log size.
  • Check 27 / 34 — defect status: outside open | fixed | dead is DRIFT; changes[] depends_on: follows defects.
  • Docs: stub read-back, log rotation, split sweeps, [MANUAL] results recorded on acceptance[].

A registry that uses none of the new fields gains only the vocabulary, id, order and log findings.

Validation on real sets

Swept against ~35 real spec sets. Two false-positive shapes found and fixed before this PR: changelog order judged by position in an inverted registry (now by date and tag number), and a stub + completion written as two headings with one id (now one round). Log-field misses collapse into one finding past three entries.

Test plan

  • python3 tests/test_audit.py — 283/283 (10 new fixtures)
  • python3 tests/test_render.py — 2/2
  • python3 tests/test_triage.py — 8/8

Closes #21, #22, #23, #24, #25, #26, #27, #28, #29, #30, #31