Repository navigation
feat(workboard): expose dispatch --max-starts to raise the per-pass start cap - #100174
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 8:36 AM ET / 12:36 UTC. Summary PR surface: Source +69, Tests +119, Docs +1. Total +189 across 5 files. Reproducibility: not applicable. as a bug reproduction: current source clearly proves that the internal cap option exists but is not exposed through the CLI or Gateway. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 detailsBest possible solution: Keep the request-scoped CLI flag and additive fail-closed RPC design, preserve the default cap and authorization behavior, and require a redacted terminal or runtime transcript demonstrating more than three real starts before merge. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: current source clearly proves that the internal cap option exists but is not exposed through the CLI or Gateway. Is this the best way to solve the issue? Yes. A request-scoped flag plus an additive fail-closed RPC is safer than extending the legacy method, because an older Gateway could otherwise ignore the new parameter and silently start only the default batch. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 253f4a33e073. Label changesLabel justifications:
Evidence reviewedPR surface: Source +69, Tests +119, Docs +1. Total +189 across 5 files. View PR surface stats
Acceptance criteria:
What 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
Review history (5 earlier review cycles)
|
6b1a347 to
f97e29a
Compare
|
Added an after-fix behavior proof section to the PR description (deterministic terminal output exercising the exact changed logic, old vs new). A live capture from the specific provider stack isn't available to me, so this is a logic-level demonstration plus the CI-run unit tests against the real module. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
931288a to
49a77cf
Compare
54fd4ba to
cd944a1
Compare
f3b9b8b to
5366ef4
Compare
|
Land-ready at Proof:
Default dispatch remains capped at three. The override is request-scoped, strict-positive, sequential, and keeps the one-card-per-owner guard. No config/environment or parallel-start semantics were added. Proof gap: no full installed-CLI live capture; the real Gateway handler, SQLite-backed store, CLI/RPC selection, and failure branches are covered directly. |
|
Merged via squash.
|
|
@steipete hey do u have any open roles in openai or ur org love to work there(Remote) or onsite whatever. i can send u my resume and all |
…tart cap (openclaw#100174) * feat(workboard): expose configurable dispatch cap Co-authored-by: Souvik Ghosh <[email protected]> * refactor(workboard): split gateway dispatch helpers * docs(changelog): note Workboard dispatch cap --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Souvik Ghosh <[email protected]>
Closes #100169
What Problem This Solves
Workboard dispatch intentionally starts at most three workers per pass, but operators with larger queues had no supported way to raise that cap. The existing internal
maxStartsdispatcher option was not exposed by the CLI or Gateway RPC.Why This Change Was Made
This adds
openclaw workboard dispatch --max-starts <count>as a per-pass override. The default call still usesworkboard.cards.dispatch; capped calls use the additiveworkboard.cards.dispatchWithOptionsmethod so an older Gateway fails before starting workers instead of silently ignoring the requested cap. Input is a strict positive integer, existing write/admin authorization remains unchanged, and starts stay sequential with the existing one-card-per-owner guard.The cap is request-scoped. No new config or environment surface. No parallel-start semantic change.
User Impact
Operators can deliberately start more than three eligible Workboard workers in one dispatch pass. Existing commands keep the current default of three. After upgrading, restart the Gateway before using
--max-starts.Evidence
maxStarts: 4, while the unchanged legacy method starts three.docs/cli/workboard.mdwith the flag, default, mixed-version behavior, and retained owner cap.tbx_01kxdzyd55csd18hdg35pptwwb: 29/29 focused dispatcher, Gateway, and CLI tests passed.check:changed: LOC ratchet, formatting, production/test types, lint, database/storage guards, and import cycles passed.5366ef4a13097a7f145be4ae92a6cbb44fc1b927: pass on repairedmain; the final helper split fixed the prior PR-specific LOC-ratchet failure.