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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/16196-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 0 commits fork

  • Merged. scout/16196-sentinel-shared-01m23vygyffx5hg2f5vm8r74 was merged into main as 5693c67.

Review

Sign in to review this change.
1 file changed +12 −3
test/crew-review-stall.test.ts +12 −3
@@ -5,6 +5,7 @@
55
66 import { seatAs } from "./helpers/seat.ts";
77 import { describe, expect, test } from "bun:test";
8 import { existsSync } from "node:fs";
89 import { addToCrew, createAgent } from "../src/actions/crew.ts";
910 import { openPull } from "../src/actions/pulls.ts";
1011 import { commitToBranch } from "../src/actions/repos.ts";
@@ -19,7 +20,12 @@ describe("the crew, with a stand-in Claude Code: a stalled brief", () => {
1920 reviewBudgetMs: 300,
2021 reviewGraceMs: 200,
2122 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 ],
2329 // Never answers and ignores the abort: the stall the production runs sat in for 24 min.
2430 // The check passes at once: a review waits on a pending check and would never start.
2531 checkStep: async () => ok(),
@@ -52,8 +58,11 @@ describe("the crew, with a stand-in Claude Code: a stalled brief", () => {
5258 (r) => r.reason === "review" && r.issueId === issue.id && r.summary?.startsWith("budget:") === true,
5359 8_000,
5460 );
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/);
5766 } finally {
5867 await stopStandInCrew(standIn);
5968 }

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs