test(ha-commit-barrier-rollout): RED tests for classification totality (task 1.1)

New test_commit_barrier_rollout.c: per-type rows matching the VERIFIED
design table (STOP/RESUME/UPDATE/FAIL RETAIN per supersession), 13-value
totality sweep, fork/SIGABRT unknown-type fail-fast, fact-hook retention
contract against real persist+engine. wal_commit_mode_t + wal_classify
declared in persist.h; inert sentinel stub. 8/8 RED; suite baseline
zero preserved. Finding: RETAIN is registration-free (commit.c:233-239)
— observable contract documented in Implementation Notes.
This commit is contained in:
Rongsong Shen 2026-06-12 04:13:22 +00:00
parent 8fe2f1f96c
commit fec9519960
9 changed files with 568 additions and 92 deletions

View file

@ -964,3 +964,14 @@
| 03:45 | kiro-validate-impl ha-commit-engine: GO — 433+99 tests 0 FAIL (bug-411-aware count), cross-task wiring/lock-order/boundary clean, 1 LOW drift (commit.h includes persist.h vs fwd-decl) | .kiro/specs/ha-commit-engine/, src/controller/{commit,repl,ha,cluster,persist}.c | validated | ~45k |
| 01:15 | /kiro-impl ha-commit-engine COMPLETE: 12/12 tasks, 10 commits (d5a0f9c..95a10ce), validate-impl GO, suite 467/0 | commit.c+wiring | sub-spec 1 of 4 done | ~1.5M |
| 20:41 | Edited .kiro/steering/roadmap.md | inline fix | ~77 |
| 20:42 | Session end: 186 writes across 30 files (brief.md, project_ha_consistency_invariants.md, product.md, spec.json, requirements.md) | 92 reads | ~358650 tok |
| 20:51 | Created src/controller/testsuite/test_commit_barrier_rollout.c | — | ~4879 |
| 20:51 | Edited src/controller/testsuite/test_commit_barrier_rollout.c | 3→4 lines | ~21 |
| 20:52 | Edited src/include/persist.h | modified enum() | ~239 |
| 20:52 | Edited src/controller/persist.c | modified wal_classify() | ~187 |
| 20:52 | Edited src/controller/meson.build | 2→3 lines | ~26 |
| 20:53 | Edited src/controller/testsuite/controller_test.c | modified setUp() | ~31 |
| 20:53 | Edited src/controller/testsuite/controller_test.c | 3→4 lines | ~25 |
| 21:05 | Task 1.1 ha-commit-barrier-rollout RED complete: build green, 8/8 new cases FAIL on assertions, 0 pre-existing failures (901 PASS) | test_commit_barrier_rollout.c, persist.h, persist.c, meson.build, controller_test.c | RED verified | ~60k |
| 21:12 | Edited .kiro/specs/ha-commit-barrier-rollout/tasks.md | inline fix | ~21 |
| 21:13 | Edited .kiro/specs/ha-commit-barrier-rollout/tasks.md | added error handling | ~350 |