Repository navigation
[codex] refill 128-worker review capacity - #392
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 3:54 PM ET / 19:54 UTC. Summary Reproducibility: Do we have a high-confidence way to reproduce the issue? Not applicable: this is an operational capacity PR, not a bug report; the behavior to prove is live scheduler capacity accounting in Actions, which is not shown yet. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land the scheduler refill only after live, redacted Actions proof shows the new planner accounting behaves as intended and the release-owned changelog entry is removed. Do we have a high-confidence way to reproduce the issue? Do we have a high-confidence way to reproduce the issue? Not applicable: this is an operational capacity PR, not a bug report; the behavior to prove is live scheduler capacity accounting in Actions, which is not shown yet. Is this the best way to solve the issue? Is this the best way to solve the issue? Unclear until live proof is posted: central config plus matching workflow/docs/tests is the right shape, but the overlapping planner behavior and changelog policy issue need resolution before merge. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f7e8b13d0eb3. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ed05a72bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| .map((value) => value.trim()) | ||
| .filter(Boolean); | ||
| const budget = numberFrom(env.WORKER_BUDGET, 32); | ||
| const budget = numberFrom(env.WORKER_BUDGET, 128); |
There was a problem hiding this comment.
Paginate active-run fetches before raising budget
With the dashboard default now set to 128, a full fleet can exceed one GitHub Actions page of active workflow runs (for example 51 repair workers + 51 issue-implementation workers + 20 exact reviews). activeWorkflowRuns() still fetches only /actions/runs?status=...&per_page=100 once per status, so anything beyond the first page is dropped and active_codex_jobs/budget usage under-report during high-capacity runs. Please paginate the active status fetches before exposing 128 as the default.
Useful? React with 👍 / 👎.
perf(scheduler): refill 128-worker review capacity
Why
ClawSweeper's checked-in scheduler had been reduced to a 32-worker model. It also kept each scheduled background sweep behind one workflow-wide concurrency lock until the older run finished publishing, which could leave workers idle during a long tail.
This restores the intended 128-worker fleet without making exact review less responsive.
What changed
The central budget is now 128 workers. Its derived defaults become 89 normal-review shards, 44 hot-intake shards, 51 repair workers, and 6 commits per commit-review page. The existing exact-review admission limits remain 20 globally and 16 per target repository; imported cluster repair remains capped at 2.
Broad background workflow runs can overlap, but their planner jobs serialize per target repository. Each planner subtracts live shard jobs from the available budget. A run that has finished its shards and is only publishing counts as zero Codex workers, so the next wave can refill released capacity instead of waiting for the whole workflow to exit. Exact-item planners use run-scoped groups and do not wait behind broad planning.
Dashboard defaults, operator docs, limit examples, and regression tests now describe the same model.
Safety and validation
The scheduler still reserves 16 workers for interactive work and 8 for matrix expansion, leaving 104 quiet-system background slots. Background lanes continue to yield to active priority work.
pnpm run checkpasses, including build, lint, 558 unit tests, 575 repair tests, both coverage gates, limit drift checks, and formatting. Structured Codex autoreview reported no accepted or actionable findings.