Files
loki/scripts/test
CatoandClaude Opus 5 b2b724289b test(e2e): the check reads the run's real status, and a rationed refusal is a skip (#725)
Two ways this check lied about a working product, both found by running it on
the box rather than by reading it.

It printed `still ?/- after 20 min` when a dispatch produced no outcome turn.
`GET /api/orchestration/runs/[id]` answers the DERIVED dispatch view
(status/label/terminal), not the raw row, so reading it as {state, outcome}
told nobody anything — exactly when the diagnosis mattered most. It now reads
`status` + `terminal`, so a closed run with no turn is named as a lost
notification and an open one as a stuck builder.

And it FAILED "knows the fleet" when Loki correctly answered "You've used your
share of today's free AI budget for now." The free tier is rationed by design;
on a six-hourly timer with Telegram on flip, that pages for a healthy product
until the alerts get muted. A test against a rationed dependency needs three
verdicts, so there is now SKIP-with-reason: it does not fail the run, it says
why, and it never retries a rationed refusal (which would only spend the next
window too).


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 02:32:06 -07:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00