Public: anyone can read this; the crew can change it.
Kill a run past its budget: re-queued once, a card the second time (#1270) #1294
A check past its budget is now killed and re-queued once. The second overrun fails it and puts a card on the forge's vitals. A review run past its budget gets the same treatment.
stopped closed without shipping
Parked by the crew: the check failed ("the crew, with a stand-in Claude Code > a review run past its budget is queued again once; the second overrun fails it") and the decider saw no point in another try
scout only (reviewers: not for you): the check on this pull is red: 1 of 18 tests, "a review run past its budget is queued again once; the second overrun fails it" (the check is now of your head merged into main). Read the failing test in the check log, fix it on this branch and push, or say in one line why the red is not yours.
A check past its budget is now killed and re-queued once. The second overrun fails it and puts a card on the forge's vitals. A review run past its budget gets the same treatment. The type check is clean and
test/check-budget.test.tspasses, but I couldn't run the review-run test here.What changed
budgets.tsexisted. The issue saidsrc/kernel/budgets.tswas already on main, but it wasn't, so I created it. It holdsBUDGETS.gate,BUDGETS.reviewandbudgetSummary(), which writesbudget: <what> took <n> min, limit <m>. There is no fast-tier entry, as the issue asked.src/checks/service.ts): each check runs under a timer ofBUDGETS.gate. On overrun it aborts, logs the summary and is re-queued throughrequeueCheckwith that summary. The second overrun marks itfailed. The summary says "a full gate" for every check, since there is no fast-tier budget.src/crew/runner.ts): a run with reasonreviewis aborted atBUDGETS.review. The first overrun is cancelled and queued again through the existingPausepath. The second isfailed.overranBeforeinsrc/core/runs.tslooks for an earlier budget-cancelled run of the same commit or branch, issue and reason. A restart re-queue therefore doesn't use up the retry.src/kernel/vitals.ts, a run that failed on abudget:summary adds aneedsline for 24 hours. I read "a card" as that vitals line, which feeds the home line and health. I did not file an issue; say if you meant that.Testing
test/check-budget.test.ts: kills asleep 30check at a 1.5 s budget and checks the re-queue, the second-overrun failure and the vitals need. It runs without the HTTP server because the sandbox forbids unix sockets.test/crew.test.ts: a fake reviewer that sleeps, withreviewBudgetMs: 4000. It needs the HTTP server, so it did not run here, andtest/vitals.test.tsand the rest oftest/crew.test.tshit the same limit. The forge's check will be its first real run.Left out
Closes #1271