From 41fa508707031e1db3ab1edc74c0d4acda98d4a4 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 23 Nov 2026 11:10:24 -0700 Subject: [PATCH] Conformance: the before-table is frozen, the living table may change Co-Authored-By: Claude Fable 5.2 --- tests/test_conformance.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/test_conformance.py b/tests/test_conformance.py index dda2054..fe22517 100644 --- a/tests/test_conformance.py +++ b/tests/test_conformance.py @@ -104,11 +104,18 @@ class ConformanceFormTests(unittest.TestCase): self.assertTrue(problems, "validation must fail when an id is removed") self.assertTrue(any(reqs[10]["id"] in p for p in problems), problems) - def test_before_copy_matches_and_names_its_commit(self): + def test_before_copy_is_frozen_and_names_its_commit(self): + """The 'before' table is a dated record: same requirements, in order, judged at a named + commit. The living table changes as the work lands; the frozen one does not.""" before = load_json(BEFORE) - self.assertEqual(before["entries"], load_conformance()) + self.assertEqual([e["id"] for e in before["entries"]], + [e["id"] for e in load_conformance()]) self.assertEqual(before["date"], "2026-11-23") self.assertRegex(before["commit"], r"^[0-9a-f]{40}$") + counts = {} + for e in before["entries"]: + counts[e["status"]] = counts.get(e["status"], 0) + 1 + self.assertEqual(counts, {"met": 8, "partial": 293, "missing": 74}) if __name__ == "__main__":