Skip to content

Evaluate Continuous Worker Slots Instead of Rounds That Wait for the Slowest Worker #4079

Closed

Description

@ptr727

Ask

Raised by the maintainer, 2026-11-11. Evaluate whether backlog-burndown, and any orchestrator that dispatches batched subagent work, should keep its worker slots full continuously, rather than running a round as a batch that waits for its slowest worker. Keep the model simple. This issue asks for the evaluation and a recommended design, not a rewrite.

The problem

"The Round" runs dispatch, then collect, then clean up, then promote, then re-rank. Step 5 collects every worker's outcome before step 6 or 7 runs, and the next round dispatches only after that. So a round lasts as long as its slowest worker. When one worker runs for hours, every slot whose worker has already finished sits idle, and the queue behind them waits.

Observed shape, from a live run in another fleet repository (finmod)

Only timing and counts are given here, since that repository is private.

  • The run holds five open burndown claims.
  • One group's feature pull request has been open for more than two hours and is still in review. Its siblings in the same batch merged earlier.
  • The merges into develop cluster at batch boundaries. Three merged within six minutes of each other, after waiting about nine hours from their creation.
  • So nothing new is dispatched while the slow group runs, though the slots its siblings held are free.

The same shape in this hub's run of 2026-11-10 to 11

  • In round 2, two groups merged within about an hour of dispatch. The resync and standup group took roughly three hours, through 16 local passes over seven pushes.
  • The round's promotion, and every round-3 dispatch, waited on it.
  • The workers that finished first had nothing to do for those two hours.

A candidate model to evaluate

  • Keep up to N slots busy. When a worker ends (merged, parked, or abandoned), the orchestrator cleans up that group. It then re-ranks, and dispatches the next group whose predicted files are free under "Grouping and File Claims". File claims already make concurrent groups safe, and the round adds no safety the claims do not.
  • Batch at the promotion, not the dispatch. A promotion opens on a trigger, such as K merges waiting, a time since the last promotion, or an urgent fix, rather than at a round's end.
  • The freeze becomes a merge hold, not a dispatch stop. While a promotion is open, workers keep driving to the Merge Gate. Each stops and reports ready rather than merging, and the orchestrator releases those merges once the promotion merges. This hub's run used exactly this handshake on 2026-11-11 to sequence merges with two peer sessions, and it worked.

What the evaluation has to answer

  • Re-ranking cost. Is a full re-rank per freed slot affordable? Or does the orchestrator rank once and keep a ranked queue, re-ranking only at a promotion or when new issues land?
  • Harness limits. How many concurrent subagents does the harness sustain? How does a 429 or overload interact with continuous dispatch? Does "A Dispatch That Fails" still hold?
  • Promotion size. A promotion opened on a trigger may carry work at different stages. Does the size cap on review stay bounded, given that a large promotion surfaced four defects in round 1?
  • Away mode. The planner and worker split, run state in GitHub, and the round cap all assume rounds. What replaces the round as the unit the report, the cap, and the net-flow count are measured over?
  • What stays. File claims, the worker brief, the tier choice, the review budgets, and cleanup all appear to carry over unchanged. Confirm that.
  • Other batched orchestrators. The same shape applies wherever an orchestrator dispatches a batch and waits for all of it, including decision-triage research and any fleet sweep. Say whether one rule covers them.

Done when

A short design recommendation is recorded here, choosing between keeping rounds and moving to continuous slots, or a middle path. If the recommendation is to change, the follow-up issues name which sections of backlog-burndown change.

Activity

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

    @ptr727
    OwnerAuthor

    Measurements from the finmod burndown session, 2026-11-11. Counts and approximate times come from its subagent duration counters. The repository is private, so no content is given.

    Batch Worker time to finish, minutes Idle slot time waiting for the slowest, minutes
    Round 1, 4 workers 80, 95, 118, 155 about 75, 60, 37
    Round 2, 4 workers 31, 37, 87, and 1 still running about 95, 90, 40, until an early re-plan

    The slow worker. It is a local review loop on one pull request covering 5 issues across 6 modules: 7 recorded passes so far, each finding a new edge, then the hosted review wait. It hit an account usage limit at about 125 minutes. It was retired at about 495k tokens of context with a handover, and a fresh worker took the same branch. Context growth was the cost driver, not CI.

    What held the next group back:

    • The round structure, which collects every worker before re-ranking.
    • The four-worker cap.
    • A file-claim collision. The top-ranked next issue shares files with the slow group, so it could not start under any scheduling.

    Two findings that bear on this issue:

    • Starting the next planner early worked. The maintainer prompted it while one round-2 worker was still live. The planner verifies claims against in-flight branches, so only collision-bound issues waited. This is the continuous-slots model in a small form.
    • The larger serializer was merge approval, not slot scheduling. In round 1 the workers' own merges into develop were denied by the auto-mode permission classifier. So each pull request waited at the gate for the maintainer to approve in a dialog, which cost hours for that batch. The evaluation should cover how a dispatched worker's merge is authorized under auto mode, since continuous slots gain little while every merge waits on a dialog.

    A third input from this hub's run. The slowest groups here were also the widest pull requests: round 2's resync group took 16 local passes. So capping a group's scope may shorten the tail more than scheduling does. The evaluation should weigh both.

  3. added
    decision
    on Nov 13, 2026
  4. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Question for the maintainer (backlog-burndown planner, away mode, round 6). This issue asks for a design choice about how a burndown run schedules its workers, and the committed rules do not make that choice, so the away run labels it decision and holds it.

    The problem. Today a burndown round dispatches up to four workers and then waits for every one of them before it cleans up, promotes, and plans the next round. So a round lasts as long as its slowest worker, and the slots whose workers already finished sit idle. The measurements recorded above show roughly 40 to 95 idle minutes per freed slot per round.

    Question: should a burndown run keep its worker slots filled continuously instead of waiting for the slowest worker in each round?

    1. Middle path (recommended). Keep the round as the unit the report, the net-flow count, and the promotion are measured over. But when a worker ends (merged, parked, or abandoned), clean up that group and dispatch a fresh planner at once to fill the freed slot from issues whose files are free. Reason: the file claims are already what keeps concurrent groups safe, and the early planner start recorded above already worked this way in practice. It changes only "The Round" step order and the collect step, and leaves away mode's reporting, the four-slot cap, and the promotion boundary as they are.
    2. Full continuous slots. Drop rounds entirely: dispatch on every freed slot, open a promotion on a trigger (merges waiting, elapsed time, or an urgent fix), and turn the promotion freeze into a merge hold. Reason to choose it: it removes the most idle time. What it costs: the round report, the net-flow count, and away mode's run state all need a new unit, and promotion size is no longer bounded by a round.
    3. Keep rounds as they are. Reason to choose it: no skill change. What it costs: the idle time measured above continues.

    Whichever is chosen, the follow-up issues name the backlog-burndown sections that change, as this issue's "Done when" asks.

  5. ptr727 commented on Nov 16, 2026

    @ptr727
    OwnerAuthor

    Answered by the maintainer, 2026-11-15: run the evaluation in the next session, after promotion #4198 and #3919. It is now work. The deliverable is the one this issue's "Done when" names: a design recommendation recorded here, plus follow-up issues naming the backlog-burndown sections that change, if it recommends a change.

  6. removed
    decision
    on Nov 16, 2026
  7. ptr727 commented on Nov 16, 2026

    @ptr727
    OwnerAuthor

    Evaluation and recommendation, 2026-11-15, accepted by the maintainer the same day. This answers "Done when" above. The source is backlog-burndown on main at the 2.0.1468 release. The measurements are the ones recorded on this issue.

    Recommendation: keep the round, and refill a freed slot from the round's own ranked queue

    Full continuous slots are not recommended. The round stays the unit that the report, the net-flow count, the round cap, and the promotion are measured over. What changes is "The Round" step 5. When a worker ends (merged, parked, abandoned, or stopped on a question), its group is cleaned up at once, per step 6. The freed slot is then refilled with the next group from the ranking this round already made. The refilled group's predicted files are first re-verified against everything in flight. The round closes for promotion when no in-flight worker remains and no refill is possible. That is the case when the ranked queue is exhausted, when every remaining group is claim-blocked, or when a per-round refill cap is reached. A cap of four refills, so eight groups a round, is suggested.

    Why not full continuous slots

    • The promotion freeze is what makes continuous slots expensive. "The Promotion Boundary" step 6 holds every dispatch while a promotion waits. The reason is that a worker's one procedure, drive-pr, pushes and opens a pull request. Continuous slots would need a new worker state: driven to the Merge Gate, then held unmerged until the promotion lands. drive-pr describes no such state, and a held worker costs context for as long as the maintainer takes. The refill keeps promotions at round boundaries, so no worker is ever in flight when one opens.
    • Away mode keeps its unit. The round cap, the per-round report, and the net-flow count stay as they are. Under full continuous slots each of them needs a new definition.
    • Promotion size stays bounded. That bound comes from the refill cap rather than from a trigger. Round 1's large promotion surfaced four defects, so a bound is worth keeping.

    The evaluation's questions

    • Re-ranking cost. A refill does not re-rank. It takes the next group from the round's ranking, so it costs only a claim re-verify against in-flight branches. An issue filed mid-round waits for the next round's re-rank, as it does today. The one exception is a promotion fix, which already jumps the queue. In away mode the refill is a planner dispatch scoped to "next claim-free group from this plan". It is not a fresh step 1 to 3 run.
    • Harness limits. Concurrency stays at four, so the 429 and overload exposure per moment does not change. More dispatches happen per hour. Each one is an ordinary dispatch, so "A Dispatch That Fails" applies unchanged, and so does its three-wait bound.
    • Promotion size. Bounded by the refill cap, as above.
    • Away mode. Its unit is still the round. The round cap keeps counting rounds, so with the refill cap a run's total work is still bounded.
    • What stays. File claims, the worker brief, the tier choice, the review budgets, cleanup, and "Raising a Blocked Question" all carry over unchanged. Cleanup simply runs per group as each ends, rather than once at step 6.
    • Other batched orchestrators. decision-triage's research is short and uniform, and no tail has been measured for it, so it should stay as it is. A fleet sweep that dispatches per repository can take the same refill rule if a tail is measured there. No shared rule is proposed until a second skill needs one.

    The measurements point at two larger serializers than scheduling

    • The slowest group is the widest group. Here, round 2's resync group took 16 local passes. In finmod, the slow worker held one pull request covering 5 issues across 6 modules. A refill shortens the idle time around that tail but leaves the tail itself. Capping a group's scope, in issues and in files, shortens it. That is a separate change to "Grouping and File Claims".
    • Merge approval under auto mode. In finmod's round 1, the workers' develop merges were refused by the auto-mode permission classifier. Each merge then waited on a dialog. "What Invoking This Skill Authorizes" already grants those merges, so the gap is that the harness doesn't see that grant. No skill wording closes it. The installer already allows the hub's merge command, so the cause has to be found first. Any fix lands under host-setup/agent-safety/ and needs the maintainer's approval.

    Follow-up issues

  8. ptr727 commented on Nov 16, 2026

    @ptr727
    OwnerAuthor

    Closing: the recommendation recorded here was accepted on 2026-11-15, and its work is carried by #4204, #4205 and #4206.

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