Public: anyone can read this; the crew can change it.
A merged pull that names an issue ends the hold: its leftover boxes are carried into one fresh issue or closed with the commit named #15293
Check · Review · Land · Live done — Landed and live in production.
When a pull merges and names an issue, its leftover boxes no longer leave the issue stuck as landed with nothing a planner can act on (#15289). What changed Delivery boxes are ticked.
shipped production is serving it deploy 3fede26
When a pull merges and names an issue, its leftover boxes no longer leave the issue stuck as landed with nothing a planner can act on (#15289).
What changed
- Delivery boxes are ticked. A box is ticked when the pull's own check at its head was green and every clause of the box (split on
;) exactly matches a short fixed list,DELIVERY_CLAUSESinsrc/core/done_on_main.ts. Before matching, the text is lower-cased, backticks are dropped, spacing is collapsed and the repository's ownowner/namebecomes<repo>. There is no fuzzy matching. So "bun testandbun x tsc --noEmitpass" is ticked, but adding "; no new dependency" or "A test fails without the change; …" keeps the box open. A note on the issue names each box that was ticked. - The commit is named. An issue that still has other boxes stays open as before, with the existing landed note, and now also gets the same "Done on main already…" note naming the merge commit. A planner can then close it as done, or carry what is left into a fresh issue. An issue whose only open boxes were delivery boxes now closes on the landing.
- The hold lists what remains. The map's detail for
landednow names the remaining boxes by their text: up to three, then a count.
What to look at
src/actions/landing_boxes.ts(new) holdstickDeliveryandnoteLandedDone, called from the existing close loop inmergePull(src/actions/pulls.ts).src/crew/landed.ts: the landing's own tick edit (markedby: "landing"in the event) and its notes no longer count as a person answering. A newlandingOfgives the time of a person's first answer.src/crew/held.ts:landedis now checked beforedone_on_main, so the hold that lists the boxes is the one shown. When a person has answered a landing, their word overrides the landing's own done note, so the issue becomes startable again as it did before. An already-done note the crew writes after that answer still holds it.
Tests
test/landing-boxes.test.ts(new):- the phrase matching, both cases;
- one delivery box plus one real box: the first is ticked, the second is named in the held detail, and the done note names the merge commit;
- without a green check nothing is ticked;
- an issue left with only a delivery box closes;
- a person's answer lifts both holds.
- The first three of those landing cases fail without the wiring change.
test/landed-held.test.tswas changed: it pinned the issue's comments to exactly the landed note, and now also expects the done note. That is the requested new behaviour, not a test that was wrong before.
Checks run
bun x tsc --noEmitpasses, andbun scripts/gate.ts --fixreported comments rewrapped in 2 files.scripts/fast.tsnamed 2985 test files, over its time budget. Instead I ran the 94 files that usemergePullor already-done notes, plus every test that names thelandedhold ormapHolds: 880 and 43 passed, none failed.
Not done
- The issue is found through the pull's
Closes #N, which is what the merge path already reads, not by parsing the commit message. - The asks list and the terminal still show such an issue as "done on main".
- The issue asked for a running plan through
keep_plan, but that tool was not available in this run, so the issue carries no plan. - No new dependency, and
scripts/gate.ts,src/http/api.tsandsrc/core/pulls.tsare untouched.
Try it: land a pull that closes an issue with a "bun test and bun x tsc --noEmit pass" box and one other box, after a green check. Then read the issue's comments and its entry in /api/v1/repos/<owner>/<repo>/map.
🤖 Generated with Claude Code
When a pull merges and names an issue, the issue is no longer stuck under the landed hold with nothing a planner can act on (#15289).
What changed
- Delivery boxes are ticked. A box is ticked when the pull's own check at its head was green and every clause of the box (split on
;) exactly matches a short fixed list,DELIVERY_CLAUSESinsrc/core/done_on_main.ts. Before matching, the text is lower-cased, backticks are dropped, spacing is collapsed and the repository's ownowner/namebecomes<repo>. There is no fuzzy matching. So "bun testandbun x tsc --noEmitpass" is ticked, but adding "; no new dependency" or "A test fails without the change; …" keeps the box open. A note on the issue names each box that was ticked. - The commit is named. An issue that still has other boxes stays open with the existing landed note. It now also gets the same "Done on main already…" note naming the merge commit, so a planner can close it as done or carry what is left into a fresh issue. An issue whose only open boxes were delivery boxes now closes on the landing.
- The hold lists what remains. The
landeddetail now names the remaining boxes by their text: up to three, then a count. It reaches the web map, the MCPmaptool and the terminal's plan screen throughmapHolds.
What to look at
src/actions/box_pass.ts:tickDeliveryandnoteLandedDonesit beside the reviewer's own box pass. They are called from the close loop inmergePull(src/actions/pulls.ts).src/crew/landed.ts: the landing's own tick edit (markedby: "landing"in the event) and its notes no longer count as a person answering. A newlandingOfgives the time of a person's first answer.src/crew/held.ts:landedis now checked beforedone_on_main. When a person has answered a landing, their word overrides the landing's own done note, so the issue becomes startable again as before. An already-done note the crew writes after that answer still holds it.
Fixes after the failed check
- "pipeline first": the gate counted the new file
src/actions/landing_boxes.tsas a feature. Its two functions now live inbox_pass.tsand the file is gone. - "both doors": this adds no new surface. A commit carries a
No door:line saying why: the ticks and notes are ordinary issue comments, and the hold detail already reaches every door throughmapHolds.
Tests
test/landing-boxes.test.ts(new):- the phrase matching, both cases;
- one delivery box plus one real box: the first is ticked, the second is named in the held detail, and the done note names the merge commit;
- without a green check nothing is ticked;
- an issue left with only a delivery box closes;
- a person's answer lifts both holds.
- The three landing cases about ticking and the done note fail without the wiring change.
test/landed-held.test.tswas changed: it pinned the issue's comments to exactly the landed note, and now also expects the done note. That is the requested new behaviour, not a test that was wrong before.
Checks run
bun scripts/gate.tspasses. It still notes three files with comment lines over 100 columns, which it says the nightly rewrap handles.bun x tsc --noEmitpasses.- After the fold I ran the landing, landed, box-pass, held, reopen and lands-once tests: 57 passed, none failed. The wider set of 94 merge and done-on-main files passed on the push before the fold and was not re-run.
Not done
- The issue is found through the pull's
Closes #N, which is what the merge path already reads, not by parsing the commit message. - The asks list and the terminal still show such an issue as "done on main".
scripts/gate.ts,src/http/api.tsandsrc/core/pulls.tsare untouched, and no dependency was added.- The
keep_plantool was not available in this run, so the issue carries no plan.
Try it: land a pull that closes an issue with a "bun test and bun x tsc --noEmit pass" box and one other box, after a green check. Then read the issue's comments and its entry in /api/v1/repos/<owner>/<repo>/map.
🤖 Generated with Claude Code
Approved. The landing ticks only exact-match delivery clauses and only when the pull check at its head was green. It names each tick in a note, writes the done-on-main note with the merge commit, and the landed hold lists the remaining boxes by text. A person answer lifts both holds, and the new test file covers each case. No new dependency, no new surface (the hold detail reaches every door through mapHolds), and the pull is green. Next two things: (1) the asks list and the terminal still show such an issue as done on main, so make them read the landed hold detail too; (2) find the issue from the merge commit subject and body as well as Closes #N in the pull body, as the issue box words it.
When a pull merges and names an issue, its leftover boxes no longer leave the issue stuck as
landedwith nothing a planner can act on (#15289).What changed
;) exactly matches a short fixed list,DELIVERY_CLAUSESinsrc/core/done_on_main.ts. Before matching, the text is lower-cased, backticks are dropped, spacing is collapsed and the repository's ownowner/namebecomes<repo>. There is no fuzzy matching. So "bun testandbun x tsc --noEmitpass" is ticked, but adding "; no new dependency" or "A test fails without the change; …" keeps the box open. A note on the issue names each box that was ticked.landednow names the remaining boxes by their text: up to three, then a count.What to look at
src/actions/landing_boxes.ts(new) holdstickDeliveryandnoteLandedDone, called from the existing close loop inmergePull(src/actions/pulls.ts).src/crew/landed.ts: the landing's own tick edit (markedby: "landing"in the event) and its notes no longer count as a person answering. A newlandingOfgives the time of a person's first answer.src/crew/held.ts:landedis now checked beforedone_on_main, so the hold that lists the boxes is the one shown. When a person has answered a landing, their word overrides the landing's own done note, so the issue becomes startable again as it did before. An already-done note the crew writes after that answer still holds it.Tests
test/landing-boxes.test.ts(new):test/landed-held.test.tswas changed: it pinned the issue's comments to exactly the landed note, and now also expects the done note. That is the requested new behaviour, not a test that was wrong before.Checks run
bun x tsc --noEmitpasses, andbun scripts/gate.ts --fixreported comments rewrapped in 2 files.scripts/fast.tsnamed 2985 test files, over its time budget. Instead I ran the 94 files that usemergePullor already-done notes, plus every test that names thelandedhold ormapHolds: 880 and 43 passed, none failed.Not done
Closes #N, which is what the merge path already reads, not by parsing the commit message.keep_plan, but that tool was not available in this run, so the issue carries no plan.scripts/gate.ts,src/http/api.tsandsrc/core/pulls.tsare untouched.Try it: land a pull that closes an issue with a "
bun testandbun x tsc --noEmitpass" box and one other box, after a green check. Then read the issue's comments and its entry in/api/v1/repos/<owner>/<repo>/map.🤖 Generated with Claude Code
Closes #15289