Commit 00b9f4e
committed
feat: four verified defect fixes, built in parallel worktrees
Four independent slices, each with a test that fails without its fix, each
adversarially verified by a separate agent that BROKE the fix and confirmed
the test went red. 4 of 4 PASS.
1. THE FILE QUEUE BACKEND HAD NO CRASH RECOVERY. `--reap` was redis-only, so
a dead worker's item sat in processing/ forever and an unattended fleet
stalled on it. Reproduced before the fix: --reap exited 2, item stranded.
file_reap() now requeues items whose mtime is older than the visibility
timeout. A FRESH item is never touched -- requeuing a live build means the
user's work is built twice. Verifier's mutation 1 (revert the dispatch)
reproduced the original defect verbatim: 8 failures, first one naming the
stranded item. 17 assertions, no broker needed.
Disclosed ceiling, not hidden: mtime-as-claim-time means a consumer that
rewrote its own item file would reset the clock and never be reaped. No
current consumer does; it is documented in both the header and the
function docblock.
2. "ANCHORED 0 of 9" NEEDED TO READ AS HISTORY, NOT A REGRESSION. All 9
receipts predate the base_sha fix and can never be anchored -- that is
frozen history, not a live defect, and nothing should try to rewrite them.
classify_unanchored() now buckets by_design / historical / regression /
live so a genuinely NEW break is distinguishable from old receipts.
Verifier ran three mutations; collapsing everything to "historical" (the
green-wash direction) trips 4 assertions.
3. THE GATE LADDER HAD NO PROGRAMMATIC SURFACE. `loki gates --json` existed
with zero consumers and no dashboard route. Added a read-only endpoint
following a sibling GET's auth scope exactly. An UNMEASURED gate
serializes as null, never 0 -- zero is a claim that the gate ran and never
fired. The agent also found the module docstring documented rationale but
not one field, and added the shape.
4. ACCEPTANCE-CRITERION IDS WERE MINTED AND DROPPED. The receipt now records
criteria_declared -- the AC ids present in the spec. Named
criteria_declared, NOT criteria_met, because we do not measure
satisfaction yet and the field name must not imply we do. Absent when the
spec has none; never invented.
Merge note worth recording: I applied three of the four diffs and missed
worktree 2, and the merged tree reported 8 failures in a suite that passed
9/9 in isolation. Running the suites after merging is what caught it -- a
"they all passed in their worktrees" summary would have shipped a
half-applied change.
Gate green 73/0. Four suites: 17 + 9 + 12 + 67 assertions.1 parent b9f31b7 commit 00b9f4e
10 files changed
Lines changed: 1082 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
23 | 46 | | |
24 | 47 | | |
25 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 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 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
96 | 182 | | |
97 | 183 | | |
98 | 184 | | |
| |||
315 | 401 | | |
316 | 402 | | |
317 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
318 | 407 | | |
319 | 408 | | |
320 | 409 | | |
| |||
381 | 470 | | |
382 | 471 | | |
383 | 472 | | |
| 473 | + | |
384 | 474 | | |
385 | 475 | | |
386 | 476 | | |
387 | 477 | | |
388 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
389 | 482 | | |
390 | 483 | | |
391 | 484 | | |
392 | 485 | | |
393 | 486 | | |
394 | 487 | | |
395 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
396 | 495 | | |
397 | 496 | | |
398 | 497 | | |
| |||
442 | 541 | | |
443 | 542 | | |
444 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
445 | 567 | | |
446 | 568 | | |
447 | 569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1024 | 1024 | | |
1025 | 1025 | | |
1026 | 1026 | | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1027 | 1051 | | |
1028 | | - | |
| 1052 | + | |
| 1053 | + | |
1029 | 1054 | | |
1030 | 1055 | | |
1031 | 1056 | | |
| |||
1052 | 1077 | | |
1053 | 1078 | | |
1054 | 1079 | | |
1055 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1056 | 1089 | | |
1057 | 1090 | | |
1058 | 1091 | | |
| |||
0 commit comments