Skip to content

Worker limit needs a restart; lead should size its own worker pool live within the owner's ceiling #191

Open

Description

@n0rpan

What happened (dogfood 2026-11-20)

The owner raised oxa.workers.max from 6 to 14 in user settings (6 build workers plus 8 review workers). The running lead session kept the old limit; lead had to be restarted (kill, --continue, /goal resume) to use more workers.

Expected

  1. Live settings: a user-settings change to limits like oxa.workers.max applies to running sessions without a restart. Watch the file, or re-read it at each tool call or pass, as is already done for some settings.
  2. Lead sizes its own pool: within the owner's ceiling, lead decides how many workers to run per kind (build or review) from the backlog, quota state (429s or retry-after per pool, Smart provider selection: choose pool and model by live quota, time-of-day price and job kind #186) and machine load, and scales up and down by itself. The owner sets only the ceiling and, if wanted, per-kind caps (for example oxa.workers.max plus oxa.workers.maxByKind: {review: 8}).
  3. Lead records each change and why ("backlog 28 PRs: reviewers 3 -> 8").

Regression idea

With a session running, change oxa.workers.max in user settings: the next worker start past the old limit succeeds without a restart. A lead pass with a large review backlog raises the reviewer count within the ceiling.

Related: #187 (lead loop), #176 (model per job), #186 (provider and quota-aware selection).

Activity

  1. n0rpan commented on Nov 20, 2026

    @n0rpan
    ContributorAuthor

    Owner 2026-11-20: the hard ceiling is high (oxa.workers.max = 40 on the lab), and lead uses what makes sense: build about as fast as the merge queue merges, and keep enough reviewers that no green PR waits. No worker idles on CI or review; it pipelines into its next item (about 2 open PRs per worker at most). The worker tool and lead loop should support that pipelining directly: one worker, several in-flight PRs, woken on red CI or a P0/P1.

  2. transferred this issue fromon Nov 26, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions