roadmap BUILT

1042. The merge queue is sized to the runner pool

COE action item: notes/coes/2026-11-03-merge-queue-backlog.md, action 5.

Raised by lane/coe-merge-queue-2026-11-03 on 2026-11-04 (UTC), from the correction of error for the Pacific day of 2026-11-03 (notes/coes/2026-11-03-merge-queue-backlog.md). This milestone changes no setting: the ruleset and the repository variable are the architect's.

Reuse: the ruleset's merge queue parameters, the NIFE_RUNNER_OWNED switch of notes/owned-runners.md, and milestone 965 (gating CI rents more concurrency before it owns a runner). No new tool: the wait measure extends helpers/ci_job_times.py and script/metrics.

Background

Ruleset 19596094 builds up to 5 queue entries at once, merges up to 5 together, requires every entry green (ALLGREEN), and waits one minute before it builds a group of one. Each entry runs its own group, so the ceiling is about 5 merges per group wall time.

On 2026-11-03 a group took a median 74.5 minutes while the hosted pool was full, and 18.2 once the heavy gates left the pull request (#3176). A group spends about 200 job minutes, roughly 11 jobs at once, so 5 groups need about 55 of the 60 hosted slots. The build window and the pool are one budget: a wider window with the same pool makes every group slower.

The ruling (2026-11-19, UTC)

The queue builds up to 5 entries at once and groups with ALLGREEN, one entry to a group. Each trigger below moves one setting, and nothing else moves it:

notes/merge-queue.md's "The queue's own settings" and notes/merge-queue/queue-sizing.md hold the settings, their triggers and the measurement of 2026-11-19.

The week the ruling rests on

The 7 days before 2026-11-11 (UTC):

On 2026-11-19 the queue took 28 entries, removed 1 and merged 27, with a median of 1.1 hours from entry to merge. Recent merge-group runs took 10 to 15 minutes, and the weekly CI build had a median of 19.0 minutes and a p90 of 34.0 in 2026W47.

Refused

Done when

Follow-on

Index row

The merge queue builds up to five groups on a pool that fits about five. Proposed: choose the build window, the group size and the owned-runner switch together, against a measured day.