Files
loki/scripts/test
0cd34be79c fix(orchestration): blockers get re-verified instead of trusted forever (#140)
Gating `blocked` projects (#137) was right, but incomplete: a blocked project is
gated, and a gated agent can never notice that the world moved. Left alone that
is a deadlock — the project waits forever on something that may already have
happened.

It already had. BOTH blockers in the fleet on 2026-08-02 were stale:

  - truthseeker: "GROQ_API_KEY expired — core feature 100% down". The key had
    been rotated; only the runner's copy was stale. Three consecutive nightly
    cycles did nothing but re-surface a dead blocker.
  - surf-your-life: "autopilot stays off until a human merges PR #7". PR #7 was
    merged, and nothing was ever going to tell the project.

Two stale blockers in one day is a class, not a coincidence, so this encodes the
rule rather than clearing the instances: a block is trusted for a day, then the
project earns ONE dispatch whose job is to re-check it. Still blocked? The agent
writes `blocked` again with a fresh timestamp and the clock restarts —
self-limiting at one run per day, a cheap price for never again spending weeks
waiting on something that already resolved.

`working` keeps its much shorter clock: it claims a live process, not a fact
about the world. A genuinely running agent is never interrupted on either path,
however old its claim.

Co-authored-by: test <test@test>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-02 19:47:03 +02:00
..