Skip to content

perf(scheduler): raise ClawSweeper worker budget - #350

Closed
vincentkoc wants to merge 9 commits into
mainfrom
ops/clawsweeper-throughput
Closed

vincentkoc wants to merge 9 commits into
mainfrom
ops/clawsweeper-throughput

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

ClawSweeper background review can fall hours behind while the live fleet is healthy because the checked-in worker budget and derived lane caps are too conservative for the current queue.

Why This Change Was Made

Raise the single global budget from 32 to 48 and regenerate the derived workflow, dashboard, and operator-document values. The existing reserve and priority-lane rules stay unchanged.

User Impact

Normal review rises to 33 shards, hot intake to 16, commit review pages to 2, and repair defaults to 19 while preserving the existing reserve policy.

Evidence

  • pnpm run check:limits passes.
  • Live dashboard sample showed 24 active Codex jobs at 75% of the old 32-slot budget with zero recent failures.
  • Main still reports workers.max=32; this branch carries the intended 48 budget.

AI-assisted: yes.

@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 27, 2026, 10:20 AM ET / 14:20 UTC.

Summary
The branch raises the global worker budget from 32 to 48, updates derived lane defaults, and syncs workflow, dashboard, docs, drift checks, and tests.

Reproducibility: not applicable. This PR changes operational scheduler capacity rather than fixing a reproducible product bug. Source inspection, PR metadata, and live-operations context are the relevant checks.

Review metrics: 3 noteworthy metrics.

  • Diff surface: 17 files changed, +109/-80. The single budget knob fans out into workflow defaults, dashboard behavior, source derivation, docs, scripts, and tests.
  • Budget change: 32 -> 48 workers. This is a live automation capacity increase rather than documentation-only maintenance.
  • Merge state: draft and conflicting. Maintainers need a refreshed merge result before treating the branch as merge-ready.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Refresh the branch against current main and preserve the newer exact-review capacity settings.
  • Update the PR body so the stated normal-review shard count matches the current branch.
  • Have maintainers confirm live Actions/Codex headroom for the 48-worker budget.

Risk before merge

  • [P1] Merging intentionally raises live automation fan-out to 28 normal review shards, 16 hot-intake shards, 2 commit-review pages, and 19 repair workers; ordinary CI cannot prove hosted GitHub/Codex fleet headroom.
  • [P1] The draft branch is currently conflicting with main and must be refreshed while preserving main's newer exact-review capacity config fields.
  • [P1] The PR body still says normal review rises to 33 shards, but the current branch derives 28 after interactive and expansion reserves, so maintainer-visible merge context is stale.

Maintainer options:

  1. Refresh and approve the higher worker budget (recommended)
    Rebase or merge current main, preserve the newer exact-review cap fields, update the PR body, and then have maintainers approve the live 48-worker operating budget.
  2. Stage or pause the increase
    If current Actions/Codex headroom is not convincing, keep this draft paused or replace it with a smaller staged capacity increase.
  3. Accept the operations risk after review
    Maintainers can intentionally merge the higher fan-out after confirming live dashboard and Actions headroom despite CI not proving production capacity.

Next step before merge

  • [P2] The next action is maintainer/operator review of the conflicting draft branch and higher live automation budget, not an automated repair lane.

Security
Cleared: The diff changes capacity settings, workflow defaults, dashboard fallback values, docs, scripts, and tests without adding dependencies, secrets handling, permissions, or downloaded code execution.

Review details

Best possible solution:

Refresh the branch onto current main, preserve the exact-review capacity fields, update the public capacity numbers, and merge only if maintainers accept the 48-worker live automation budget.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR changes operational scheduler capacity rather than fixing a reproducible product bug. Source inspection, PR metadata, and live-operations context are the relevant checks.

Is this the best way to solve the issue?

Yes for the code direction after refresh: keeping workers.max as the main knob and deriving lane limits follows the existing pattern. It still needs maintainer/operator approval because the live budget increase and conflicting branch state are not things CI can settle.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ae63b16d6c74.

Label changes

Label justifications:

  • P2: This is a bounded scheduler throughput improvement with limited code scope but real automation-capacity impact.
  • merge-risk: 🚨 automation: The diff raises workflow shard and repair dispatch capacity, so green CI cannot prove live automation headroom after merge.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply because GitHub reports the author as a repository member; the PR body still provides check-limits and live dashboard context for maintainers.
Evidence reviewed

What I checked:

Likely related people:

  • vincentkoc: Blame and log history tie the current worker budget, exact-review cap follow-ups, and this branch's capacity tuning to this contributor. (role: recent area contributor; confidence: high; commits: f69d9debf487, f92fbfebbe8f, 21ed1e52b971; files: config/automation-limits.json, dashboard/worker.ts, .github/workflows/sweep.yml)
  • Dallin Romney: Blame shows the automation-limits config and derived limits surface largely originate in the release-era scheduler commit. (role: original surface contributor; confidence: medium; commits: 4e5c4d47c83f; files: config/automation-limits.json, src/repair/limits.ts)
  • Peter Steinberger: Recent history ties the durable exact-review queue capacity model near this scheduler surface to this contributor. (role: adjacent queue contributor; confidence: medium; commits: 30163dfd667b; files: dashboard/worker.ts, src/limits.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Jun 23, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 23, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 23, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jun 26, 2026
@steipete

steipete commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by the current scheduler capacity model.

Current main sets workers.max to 128 in config/automation-limits.json, landed through #392. This draft proposes the older 48-worker regime, conflicts across the generated capacity surfaces, and would reduce the current worker budget if revived as written.

Thanks for the capacity work and the operational groundwork here.

@steipete steipete closed this Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants