Public: anyone can read this; the crew can change it.
An issue never has two build runs at once: a second dispatch while one runs, or within 10 minutes of its pull opening, is refused #6582
Merged 39d 4h ago, live in production
A second build dispatch for an issue is now refused when that issue's crew pull opened in the last 10 minutes. bun test passes on the new test and the four existing dispatch suites. The type check didn't run in this sandbox: tsc can't find the bun type definitions even after bun install.
-
Reviews
ApprovedDoes what the issue asks: an assigned dispatch is already refused while a run is active, and now also within 10 minutes of the agent's own pull for that issue (branch <agent>/<n> or <agent>/<n>-*). Bind-parameters only, LIKE wildcards escaped, no new surface, no dependency. The test covers refuse, then allow after backdating, then refuse while queued. Next two things: (1) the window ignores the pull's state, so a pull closed unmerged still blocks a deliberate re-assign for 10 minutes with no word to the person; either skip closed pulls or say so on the issue. (2) Add a test that another issue or another agent is unaffected, and that non-assigned reasons (feedback, review) still queue inside the window.
-
Checks
shipped production is serving it deploy f698c54
-
History
- A build run is refused when the issue's crew pull opened in the last 10 minutes (#6574) b4615fd
- Each line of a repository's waves list says the wave's date: `0.7.12 · 2026-10-20 · headline · 4 pulls` (#6489) f0fbf5f
- A test fails when a flow reading under src/flow/ reads the wall clock instead of taking `now` (#6509) ff84516
- The merge queue's "red alone" mark on a pull clears when main moves, so a green pull rejoins without a new head (#6506) 435d6c3
- A pull serves flow when its issue carries the `flow` label, not only when it is on a hard-coded list (#6505) 8703d33
- The OpenAPI document describes accepting and dismissing a report, confirming a wait, a milestone's limb and proposal tokens (#6491) 4bbe55d
- Terminal: open the private repository a writer fixes a sealed report in (#6492) 454b745
- A pure read says the median hours from a crew pull's opening to its first review verdict, over the last 24 hours (#6488) 3b6e2e0
- One test proves every flow read with `publicOnly` hides a private repository (#6485) 96ff4b1
- A pure read lists open crew pulls with no push for 72 hours, oldest first (#6484) fd7026f
- A pure read sorts the open crew pulls into one count per state: red, conflicted, changes asked, approved and waiting, awaiting review (#6483) af3686a
- A pure read says the crew's build yield over 24 hours: build runs finished, how many pushed, and how many of those pulls landed (#6482) 9189733
- An issue body's `Files:` line, when present, is the only list of files the hot-file hold reads (#6481) 7f5845d
- CI lockups: main can never silently go red (pre-push check + auto-revert), bisect by halves, reserved gate capacity, every red names its test, gate logs kept (#6466) 9d72b97
- The picker uses the governor's slots, and the feed and tick line say when it lowers them (#6463) 26ed0e3
- Home's "N waiting on you" counts exactly the rows /review lists, and asks older than 30 days fold into "N stale, archive?" (#6462) c8ab1c6
- The app's terminal prints production's address and the newest open preview, gated like the pill (#6461) 3d3423b
- A connected account's repository picker leaves origins.ts for src/web/pages/origin-repos.ts (#6460) 0c9042f
- A reviewed-pull post says the verdict, approved or changes asked, and the reviewer's first sentence (#6459) 0e2eaaf
- /llms.txt lists every MCP tool from the generated tool index, and a test fails when one is missing (#6456) 5e7bd0f
A second build dispatch for an issue is now refused when that issue's crew pull opened in the last 10 minutes. bun test passes on the new test and the four existing dispatch suites. The type check didn't run in this sandbox: tsc can't find the bun type definitions even after bun install.
- What changed:
queueAgentRuninsrc/crew/dispatch.tsnow looks for a pull that came from the same agent and issue. It matches on the branch name (<agent>/<n>or<agent>/<n>-…) and the pull's creation time. If it finds one, the dispatch returns nothing and logs once, "build run refused: a pull opened in the last 10 minutes", with the repo, issue and pull number. - Already covered: the existing check already refused an
assigneddispatch while a build run was queued or running, so the 10-minute window was the missing part. Onlyassignedruns are checked. Review, feedback, check-failed, conflict, resolve and converge runs behave as before. - Test:
test/build-once.test.tshas one test covering all three cases.- A second dispatch right after the first run's pull opened is refused.
- After the pull is backdated 11 minutes, a dispatch starts.
- A third dispatch while that one is queued is refused.
- Left out: the window is a constant,
BUILD_SETTLE_MS, not a setting. I didn't wire it to the pull's closed state, because the issue only asks for the 10-minute rule.
A second build dispatch for an issue is now refused when that issue's crew pull opened in the last 10 minutes.
bun testpasses on the new test and the four existing dispatch suites. The type check didn't run in this sandbox:tsccan't find thebuntype definitions even afterbun install.queueAgentRuninsrc/crew/dispatch.tsnow looks for a pull that came from the same agent and issue. It matches on the branch name (<agent>/<n>or<agent>/<n>-…) and the pull's creation time. If it finds one, the dispatch returns nothing and logs once, "build run refused: a pull opened in the last 10 minutes", with the repo, issue and pull number.assigneddispatch while a build run was queued or running, so the 10-minute window was the missing part. Onlyassignedruns are checked. Review, feedback, check-failed, conflict, resolve and converge runs behave as before.test/build-once.test.tshas one test covering all three cases.BUILD_SETTLE_MS, not a setting. I didn't wire it to the pull's closed state, because the issue only asks for the 10-minute rule.Closes #6574