Repository navigation
Commit be59d15
committed
fix: two more guards that could not fail, in the shapes today keeps producing
FRESHNESS, FAIL-OPEN. The 180-day wholesale-stale floor ran only
`if (boardNewest > 0)`, so the one board it could not judge - none carrying a
resolvable displayed stamp - was the one it waved through. Publishing
generated_at=now over a board whose age cannot be established at all is exactly
what that floor exists to refuse, so it is now a hard failure with its own
reason. Test confirmed RED against the old branch.
ONE-API, VERIFIED ONE MODEL OF THREE. The setup creates three channels (openai,
anthropic, gemini) and then proved only that gpt-4o-mini relays. A channel that
inserted but never became routable was invisible there and surfaced later as the
GATEWAY failing: "no available channel for model gemini-1.5-pro", two red cells,
in all eight runs of 2026-07-27/28 including the oldest engine. Every model is
now relayed before measuring, and a model that does not aborts the run naming
itself. A setup this harness got wrong must stop the run, not become a verdict
about the gateway.
The channel POSTs already aborted on a non-zero exit; this closes the gap where
the POST succeeds and the routing still does not work.
Both are the same shape as the retry budget nothing called, the box
qualification that always seeded, the history appender scanning directories the
engine stopped writing, and the site fixtures asserting against an empty board.
Silent rather than wrong, which is why none of them were noticed.1 parent 95aafd2 commit be59d15
3 files changed
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
619 | 635 | | |
620 | 636 | | |
621 | 637 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3170 | 3170 | | |
3171 | 3171 | | |
3172 | 3172 | | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
0 commit comments