Skip to content

Refill a Freed Worker Slot From the Round's Own Ranking #4204

Closed

Description

@ptr727

Ask

Follow-up to #4079, whose recommendation the maintainer accepted on 2026-11-15. Today a round waits for its slowest worker before it dispatches anything new. Instead, backlog-burndown refills a freed worker slot from the round's own ranking.

Change

  • "The Round" steps 4 to 6. When a worker ends (merged, parked, abandoned, or stopped on a question), clean up its group at once. Then re-verify the next ranked group's predicted files against everything in flight, and dispatch it into the freed slot. The round closes for promotion only when no worker is in flight and no refill is possible. That happens when the ranked queue is exhausted, when every remaining group is claim-blocked, or when the refill cap is reached.
  • "Grouping and File Claims". "Cap the round at four workers" becomes four concurrent workers, plus a per-round refill cap. Four refills, so eight groups a round, is suggested.
  • "The Lean Orchestrator" steps 1, 3 and 4. A refill dispatches a planner scoped to "the next claim-free group from this plan". It is not a fresh step 1 to 3 run.

Unchanged

  • The promotion freeze and drive-pr's states.
  • The round as the unit of the report, the net-flow count, and the away-mode round cap.
  • File claims, the worker brief, tier choice, review budgets, and "A Dispatch That Fails".
  • An issue filed mid-round still waits for the next round's re-rank. A promotion fix still jumps the queue.

Done when

The three sections above describe the refill, and build_dist.py --check passes.

Activity

  1. added
    enhancement
    skills
    on Nov 16, 2026
  2. ptr727 commented on Nov 16, 2026

    @ptr727
    OwnerAuthor

    Design changed by the maintainer, 2026-11-16, on #4215. A refill runs "The Round" steps 1 to 3 afresh for one group rather than drawing from the round-start ranking. Five local review passes on the plan-based refill kept finding stale-issue-state and mid-round claim-race defects, each in the previous round's fix. A fresh run reuses the reviewed ranking and claim checks and reads live state. As a consequence, an issue filed mid-round can be picked up by a refill rather than waiting for the next round's re-rank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions