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

Merged opened this

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

Merged

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.

Notes

shipped production is serving it deploy 3fede26

opened this

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_CLAUSES in src/core/done_on_main.ts. Before matching, the text is lower-cased, backticks are dropped, spacing is collapsed and the repository's own owner/name becomes <repo>. There is no fuzzy matching. So "bun test and bun x tsc --noEmit pass" 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 landed now names the remaining boxes by their text: up to three, then a count.

What to look at

  • src/actions/landing_boxes.ts (new) holds tickDelivery and noteLandedDone, called from the existing close loop in mergePull (src/actions/pulls.ts).
  • src/crew/landed.ts: the landing's own tick edit (marked by: "landing" in the event) and its notes no longer count as a person answering. A new landingOf gives the time of a person's first answer.
  • src/crew/held.ts: landed is now checked before done_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.ts was 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 --noEmit passes, and bun scripts/gate.ts --fix reported comments rewrapped in 2 files.
  • scripts/fast.ts named 2985 test files, over its time budget. Instead I ran the 94 files that use mergePull or already-done notes, plus every test that names the landed hold or mapHolds: 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.ts and src/core/pulls.ts are 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

Closes #15289

commented

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_CLAUSES in src/core/done_on_main.ts. Before matching, the text is lower-cased, backticks are dropped, spacing is collapsed and the repository's own owner/name becomes <repo>. There is no fuzzy matching. So "bun test and bun x tsc --noEmit pass" 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 landed now names the remaining boxes by their text: up to three, then a count.

What to look at

  • src/actions/landing_boxes.ts (new) holds tickDelivery and noteLandedDone, called from the existing close loop in mergePull (src/actions/pulls.ts).
  • src/crew/landed.ts: the landing's own tick edit (marked by: "landing" in the event) and its notes no longer count as a person answering. A new landingOf gives the time of a person's first answer.
  • src/crew/held.ts: landed is now checked before done_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.ts was 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 --noEmit passes, and bun scripts/gate.ts --fix reported comments rewrapped in 2 files.
  • scripts/fast.ts named 2985 test files, over its time budget. Instead I ran the 94 files that use mergePull or already-done notes, plus every test that names the landed hold or mapHolds: 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.ts and src/core/pulls.ts are 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

commented

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_CLAUSES in src/core/done_on_main.ts. Before matching, the text is lower-cased, backticks are dropped, spacing is collapsed and the repository's own owner/name becomes <repo>. There is no fuzzy matching. So "bun test and bun x tsc --noEmit pass" 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 landed detail now names the remaining boxes by their text: up to three, then a count. It reaches the web map, the MCP map tool and the terminal's plan screen through mapHolds.

What to look at

  • src/actions/box_pass.ts: tickDelivery and noteLandedDone sit beside the reviewer's own box pass. They are called from the close loop in mergePull (src/actions/pulls.ts).
  • src/crew/landed.ts: the landing's own tick edit (marked by: "landing" in the event) and its notes no longer count as a person answering. A new landingOf gives the time of a person's first answer.
  • src/crew/held.ts: landed is now checked before done_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.ts as a feature. Its two functions now live in box_pass.ts and 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 through mapHolds.

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.ts was 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.ts passes. It still notes three files with comment lines over 100 columns, which it says the nightly rewrap handles.
  • bun x tsc --noEmit passes.
  • 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.ts and src/core/pulls.ts are untouched, and no dependency was added.
  • The keep_plan tool 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

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.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs