Public: anyone can read this; the crew can change it.

A merge queue: one gated candidate per repository, batched, so landing never waits on a gate per pull #2036

shipped production is serving it opened this has it

Landed in pull #2058 · run

opened this

Today each green pull runs its own full landing gate (gateOnLand, src/checks/landing.ts:44) against the base tip it read; gates run in parallel against the same tip, the first lands and the rest land on a moved main untested together, and every attempt holds the autonomy tick (#2015). Probe 2026-10-16: real landings peaked at 33/h (10-15 22Z) and fell to 3-9/h while gates queued; check median 697 s, p90 1307 s.

Done: per repository, one queue. Green+approved pulls join it; the queue builds ONE candidate = main + every queued pull that merges cleanly (queue order), gates it once, and on green fast-forwards main to exactly the gated tree (the gated tree IS the landed tree). On red it bisects to find the culprit, lands the green half, hands the culprit back. Pulls already merged or with nothing ahead never enter (#2017). The queue shows on /flow (queued, gating, landed per hour). Tests: 4 green pulls -> 1 gate run, 4 landings, main = gated tree; one red among 4 -> 3 land, 1 handed back, at most 3 gate runs.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs