test(ha-commit-barrier-rollout): RED tests for dispatch-gate fact allowlist (task 4.1)

4 RED carriers (notify/update/setpreason/clrpreason must be admitted
without quorum — currently NOT_READY, the bug-396 hole) + 2 pins (six
request opcodes stay rejected; quorum-present admits all ten). Census
494 = 488 + 6; exactly 4 FAILs.
This commit is contained in:
Rongsong Shen 2026-06-12 14:05:27 +00:00
parent 7103fa643d
commit 4fa38c6f88
3 changed files with 240 additions and 2 deletions

View file

@ -50,7 +50,7 @@
- _Requirements: 2.3_
- [ ] 4. Fact admission during quorum loss and retention proof
- [ ] 4.1 Write RED tests for the dispatch-gate fact allowlist
- [x] 4.1 Write RED tests for the dispatch-gate fact allowlist
- Tests against `ha_dispatch_gate` (ha.c:1527 anchor) with CTRL_PRIMARY and write quorum absent: `OPCode_notify`, `OPCode_update`, `OPCode_setpreason`, `OPCode_clrpreason` return 0; `OPCode_jobsub`, `OPCode_jobcontrol`, `OPCode_queuecontrol`, `OPCode_hostcontrol`, `OPCode_jobdispatch`, `OPCode_join` still return `-XCE_ERR_NOT_READY`; with quorum present everything returns 0 as today
- Observable completion: the four fact-opcode cases FAIL (red) against the current allowlist
- _Requirements: 3.2_