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

The owner's own pulls are checked ahead of the crew's (behind approved ones; crew checks past 20 min still go first) #16932

Merged opened this

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

Merged

Tonight the owner's Minecraft pull (#16913) waited 26 minutes in the checks queue behind crew checks, twice, and missed his 02:00Z target. Cause: the starvation rule (STARVATIONMS, 5 min) takes the oldest check once anything has waited 5 minutes, so with a backlog of crew checks a fresh pull never gets a slot.

Notes

opened this

Tonight the owner's Minecraft pull (#16913) waited 26 minutes in the checks queue behind crew checks, twice, and missed his 02:00Z target. Cause: the starvation rule (STARVATION_MS, 5 min) takes the oldest check once anything has waited 5 minutes, so with a backlog of crew checks a fresh pull never gets a slot. The only priority was approved-on-head, and self-approval is refused.

  • src/checks/own_first.ts: a check is the owner's own when the pull's author is a person (not an agent) who owns the repository. Talk direct-lane pulls and the conductor's pulls (authored as the owner) count, as intended.
  • While an own check is queued, pickNext takes: (1) any check waiting past CREW_WAIT_CAP_MS (2× laneWait, 20 min; named beside STARVATION_MS with its reason) — the crew's guaranteed share; (2) approved pulls; (3) own pulls; (4) the rest. With no own check queued, the order is unchanged.
  • The pull page's checks line adds "queued ahead of the crew's checks: your own pull (behind approved ones)"; the run log says it on start.
  • docs/features/ranked-checks.md: a new section.

Test (test/checks-own-first.test.ts): only the owner's pull counts (not an agent's, not another person's); own beats a crew check older than 5 min; approved still beats own; a 21-min crew check beats own; the checks line wording.

Not yet: the home lane's order view (flow/lanes_read.ts) doesn't show the own tier.

tsc 0, gate exit 0; approved-first, checks-ranked, outside-lane, lane-wait, checks-queue pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs