Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2d966d9058 is past its budget: trevato/forge: "the crew, with a stand-in Claude Code: a stalled brief > a review that stalls before its agent is ended… #16539
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/16196-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 0 commits fork
1 file
changed +12
−3
test/crew-review-stall.test.ts +12 −3
| @@ -5,6 +5,7 @@ | ||
| 5 | 5 | |
| 6 | 6 | import { seatAs } from "./helpers/seat.ts"; |
| 7 | 7 | import { describe, expect, test } from "bun:test"; |
| 8 | import { existsSync } from "node:fs"; | |
| 8 | 9 | import { addToCrew, createAgent } from "../src/actions/crew.ts"; |
| 9 | 10 | import { openPull } from "../src/actions/pulls.ts"; |
| 10 | 11 | import { commitToBranch } from "../src/actions/repos.ts"; |
| @@ -19,7 +20,12 @@ describe("the crew, with a stand-in Claude Code: a stalled brief", () => { | ||
| 19 | 20 | reviewBudgetMs: 300, |
| 20 | 21 | reviewGraceMs: 200, |
| 21 | 22 | tickMs: 50, |
| 22 | files: [{ path: "package.json", content: "{}\n" }], | |
| 23 | // A lockfile beside the manifest, or the install (the stall) is skipped and the review | |
| 24 | // races the stand-in Claude Code to the budget: the flake of #16196. | |
| 25 | files: [ | |
| 26 | { path: "package.json", content: "{}\n" }, | |
| 27 | { path: "bun.lock", content: "{}\n" }, | |
| 28 | ], | |
| 23 | 29 | // Never answers and ignores the abort: the stall the production runs sat in for 24 min. |
| 24 | 30 | // The check passes at once: a review waits on a pending check and would never start. |
| 25 | 31 | checkStep: async () => ok(), |
| @@ -52,8 +58,11 @@ describe("the crew, with a stand-in Claude Code: a stalled brief", () => { | ||
| 52 | 58 | (r) => r.reason === "review" && r.issueId === issue.id && r.summary?.startsWith("budget:") === true, |
| 53 | 59 | 8_000, |
| 54 | 60 | ); |
| 55 | // The first overrun is queued again, the second fails: either ended at the budget. | |
| 56 | expect(failed.summary).toMatch(/^budget: a review run took/); | |
| 61 | // The first overrun is queued again, the second fails: either ended at the budget, and | |
| 62 | // both before the reviewer started: the budget falls in the clone or the install, however | |
| 63 | // loaded the machine, and the stand-in Claude Code is never run. | |
| 64 | expect(existsSync(standIn.promptFile)).toBe(false); | |
| 65 | expect(failed.summary).toMatch(/^budget: a review run, before its reviewer started, took/); | |
| 57 | 66 | } finally { |
| 58 | 67 | await stopStandInCrew(standIn); |
| 59 | 68 | } |
new above
offline