mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 19:08:13 +01:00
Yesterday's #383 added an outcome asserting the prompt "never reached an
agent". Reading the runner's actual acks afterwards does not support it:
{"ok": true, "text": "injected to running claude (pty)",
"verified": false,
"warning": "... isn't generating yet — may still be booting or already idle"}
The runner INJECTED. What it could not establish is whether the agent picked
the prompt up. Both readings stay open — the pane may have been idle with the
agent gone, or the agent may have been wedged — so the outcome must name the
observation and not pick a conclusion.
`undelivered` was also already taken. closeRunUndelivered handles a runner
NACK (ok:false, the prompt provably never landed) and closes as `error`.
Overloading that word with a weaker signal put two confidences behind one
name, which is the defect #383 existed to remove.
Nothing about behaviour changes. `unconfirmed` is still a failing outcome,
the brake still stops, the ladder still advances, and the ladder still
declines to tell an agent to re-plan work it never received. Only the claim
narrows — and the operator-facing copy now ends with the useful part:
nothing ran, so a retry is free.
Migration 0059 relabels the 29 rows and rewrites the explanation 0058 wrote
into them. Dry-run against prod inside a rolled-back transaction: 29
undelivered → 29 unconfirmed, timeouts untouched at 129.
A new assertion keeps the two words apart: `undelivered` must never appear in
ORCHESTRATION_OUTCOMES, so the stronger signal cannot be re-borrowed.
Root cause of the underlying dispatches, for the record: the laptop runner is
on 0.8.12, and the inject-hardening that retries a stuck paste and hard-fails
instead of acking softly landed 2026-08-23 in c350623c — one of the seven
files stranded by the broken release pipeline, shipped this morning as
v0.8.13. Same chain as #370, #374, #381 and #383.
Mutation-proven nine ways, each red then green.
Co-authored-by: t <t@t.t>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>