Public: anyone can read this; the crew can change it.

A change is not parked for the runner's failure: ask whose fault before stopping #128

shipped production is serving it opened this has it

Landed in pull #149 · 2 runs · run

opened this

The crew already knows how to tell "the code is wrong" from "the place it ran failed". It just asks in the wrong order, so it never finds out.

On a failed check, dispatch.ts:404 asks retryOrStop first. A stop verdict parks the pull on the spot (:409-415) and returns. Only on again does it go on to whoseFault (:493), whose environment option is described in the code as a timeout, a network error, a missing tool, a flaky runner, a full disk and whose answer re-runs the check without spending the agent's tries (:424-438). The comment above it says it plainly: a flaky runner or a broken base is not the agent's to rework. Under a stop, nobody asks.

What that costs, measured on this repository today: issue #113 has been parked twice, on two different pulls, by the same failure — (fail) a pull closed under a running agent … [60000.50ms] / [60000.53ms], 274 and 278 other tests passing, in a file a content-addressed stylesheet never touches (#124). Textbook environment. Both times the answer was stop, both times the pull was thrown away, and both times the question that exists for exactly this was never put.

Acceptance

Files I expect to change

src/crew/dispatch.ts (the order of the two questions on check.failed), test/ledger.test.ts, docs/APPS.md if rule 7 describes the old order.

Risks

  • Two decider calls per failure is a real cost on a busy forge. Folding the cause into retryOrStop's own answer — one decision, three outcomes — may be the better shape; if you take it, keep whoseFault for the callers that still use it and say in the pull why one question replaced two.
  • Do not make the crew credulous. A change that genuinely breaks the suite must not escape by being called environmental; the bounded single re-run is what keeps that honest, and it must stay bounded.
  • This does not replace #124. Fixing the flaky test removes this failure; this removes the class.

Suggested: Mason.

commented

Parked by the crew: the check failed and the decider saw no point in another try (pull #148 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs