test(resource-value-verification): verdict-logic regression selftest (task 8.2)
verdict-logic-selftest.sh sources the real aggregate_verdict()/ build_verdict_record() (via run-resource-verify.sh's BASH_SOURCE guard, no live deployment triggered) and exercises them with synthetic per-layer records: all-match/PASS positive control, a single-resource single-layer MISMATCH within a multi-resource batch (asserting both correct attribution of the failure AND that the other resources independently still report PASS), UNREACHABLE distinct from MISMATCH, REJECTED, and a zero-records degenerate case. 53 assertions total. Proven non-tautological: breaking aggregate_verdict()'s comparison logic (two different ways, independently reproduced by review) makes the selftest genuinely fail; restoring makes it pass again. This completes the resource-value-verification spec - all 15 tasks (1.1 through 8.2) implemented, reviewed, and committed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
19104d315b
commit
9be9e954c7
2 changed files with 220 additions and 1 deletions
|
|
@ -109,7 +109,7 @@
|
|||
- _Requirements: 1.1, 1.2, 1.3, 1.4, 2.1, 2.2, 3.1, 3.2, 4.1, 4.2, 4.3, 5.1, 5.2, 5.3, 5.4, 6.1, 6.2, 6.4_
|
||||
- _Depends: 7.1_
|
||||
|
||||
- [ ] 8.2 Verify the verdict logic correctly reports FAIL on a genuine mismatch
|
||||
- [x] 8.2 Verify the verdict logic correctly reports FAIL on a genuine mismatch
|
||||
- Invoke task 7.1's comparison step directly with a synthetic set of per-layer observed-value records where one layer's value deliberately does not match the corresponding injected value (no live deployment required for this check, since the comparison step is self-contained per task 7.1)
|
||||
- Observable completion: the comparison step reports an overall FAIL verdict that correctly names the specific layer whose synthetic record was mismatched, and reports PASS for every other, matching layer/resource in the same input set — proving the verdict logic distinguishes pass from fail rather than always reporting PASS
|
||||
- _Requirements: 6.3_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue