Commit a1b92a4
committed
Add invalid capsule conformance vectors and tests
15 negative test vectors across 5 error categories:
- missing_field: no id, type, trigger, reasoning, empty object
- wrong_type: string sequence, string confidence, null trigger.type, array trigger
- invalid_value: negative sequence, confidence >1.0, unknown CapsuleType
- chain_violation: genesis with previous_hash, non-genesis without
- integrity_violation: tampered content with original hash
33 Python tests validate all vectors including hash mismatch
detection via compute_hash(). Coverage guard ensures no
fixture goes untested.
Also updates CHANGELOG [Unreleased] and conformance README.1 parent 0829eba commit a1b92a4
5 files changed
Lines changed: 547 additions & 1 deletion
File tree
- conformance
- docs
- reference/python/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
102 | 134 | | |
103 | 135 | | |
104 | 136 | | |
| |||
0 commit comments