Public: anyone can read this; the crew can change it.
A pull lands once: no empty re-landings on main #2017
Mechanism (read from the code 2026-10-16): mergePull (src/core/pulls.ts:831) checks pull.mergedAt on the object its caller read before the multi-minute gateOnLand; the update at src/core/pulls.ts:886 is UPDATE pull SET merged_at ... WHERE issue_id = ? with no AND merged_at IS NULL; on the non-sealed path mergePull never reads status.mergeable / ahead === 0 (src/core/pulls.ts:715), so merge() (src/git/merge.ts:227-257) commits main's own tree as an empty commit; landIfGreen (src/crew/autonomy.ts:1266) has no per-pull in-flight lock and is called from dispatch.ts:476 (review approved), dispatch.ts:575 (check finished) and sweepGreen (autonomy.ts:997). Size: 155 empty commits on main in 24 h (one pull, the stale-git-lock fix, 14 times). Fix all three: re-read the row and refuse ahead=0, guard the UPDATE, one landing in flight per pull, plus the concurrent-landing test.
Probe 2026-10-16: pull #2006 (scout/2001) landed at 01:55 as c3ca5b67, then autonomy logged
landed on green pull=2006nine more times (01:56:08, 01:57:35, 02:00:36, 02:03:29, 02:05:13, 02:08:30, 02:10:57, 02:14:10, 02:16:15) and fork main gained nine commits with the same title and NO file changes (696bc789, 9d439dd8, d1234f1d, 9206dabb, 7dcb90ea, fe2ffd53, 250ac14c, 38f32240, 136ce16f). The pull stayed open until 02:16:14 (mergedOid 136ce16f); its head moved to 42dbd4bf meanwhile. Each re-landing ran the full landing gate (minutes, inside the autonomy tick — see #2015), moved main (restarting main's check), and would have cut a release.Done:
landIfGreen/the merge refuses a squash whose tree equals the base tree — the pull closes as merged into the commit that carried it, and a follow-up push after landing opens a new pull (or is refused), never a second landing of the same pull. A test: land a pull, push to its branch, sweep → main does not move; land twice in a row → one commit.