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

A pure read picks the five most-behind open crew pulls to bring up to date first #6550

shipped production is serving it opened this has it
opened this

Part of #5930 (owner, 2026-10-26: rebase drifting trees early, while it is cheap).

Done:

  • [ ] New src/flow/rebase_first.ts exports rebaseFirst(drifts, now), taking { number, behind, baseAt, approved, held }[] and returning at most 5 numbers: held pulls never; approved pulls before others; then most landings behind; then oldest base.
  • [ ] Pulls 0 behind are never picked.
  • [ ] Tests: each ordering rule, held left out, the cap.

Files: src/flow/rebase_first.ts, test/flow-rebase-first.test.ts.

Before pushing: bun x tsc --noEmit and the new test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs