Skip to content

feat(workboard): expose dispatch --max-starts to raise the per-pass start cap - #100174

Merged
steipete merged 3 commits into
openclaw:mainfrom
souvikDevloper:feat/workboard-dispatch-max-starts
Jul 13, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
souvikDevloper:feat/workboard-dispatch-max-starts

Conversation

@souvikDevloper

@souvikDevloper souvikDevloper commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

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 maxStarts dispatcher 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 uses workboard.cards.dispatch; capped calls use the additive workboard.cards.dispatchWithOptions method 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

  • Added CLI coverage for method selection, forwarding, strict validation, and mixed-version no-fallback behavior.
  • Added Gateway coverage for the cap, invalid inputs, legacy-method rejection, method registration, and existing authorization behavior. The final behavior test starts four distinct owners with maxStarts: 4, while the unchanged legacy method starts three.
  • Updated docs/cli/workboard.md with the flag, default, mixed-version behavior, and retained owner cap.
  • Blacksmith Testbox tbx_01kxdzyd55csd18hdg35pptwwb: 29/29 focused dispatcher, Gateway, and CLI tests passed.
  • Blacksmith Testbox check:changed: LOC ratchet, formatting, production/test types, lint, database/storage guards, and import cycles passed.
  • Fresh local and full-branch autoreview: clean, with 0.99 and 0.94 confidence.
  • Exact-head CI run 29263159549 for 5366ef4a13097a7f145be4ae92a6cbb44fc1b927: pass on repaired main; the final helper split fixed the prior PR-specific LOC-ratchet failure.
  • Real behavior proof run 29263157173: pass.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: workboard size: S labels Jul 5, 2026
@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 8:36 AM ET / 12:36 UTC.

Summary
Adds a request-scoped workboard dispatch --max-starts flag and an additive Gateway RPC method that forwards a strictly positive per-pass worker-start cap, with focused tests and CLI documentation.

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.

  • Operator surface: 1 CLI flag added; 1 Gateway RPC method added; 0 config or environment options added. The bounded request-scoped surface avoids persistent configuration while still introducing a compatibility-sensitive plugin API method.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #100169
Summary: This PR is the candidate implementation for the linked issue's configurable-cap portion; the issue's separate parallel-start request remains outside this branch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

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

Rank-up moves:

  • [P1] Add redacted terminal or runtime output showing a single --max-starts dispatch starts more than three eligible cards.
  • Show that an uncapped dispatch still follows the default legacy path in the same real setup.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The linked workflow passed, but its inspectable evidence does not show a real after-fix Workboard dispatch starting more than three eligible cards; add redacted terminal or runtime output, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.

Risk before merge

  • [P1] The new additive Gateway method expands a plugin RPC surface; mixed-version CLI/Gateway behavior must remain explicitly fail-closed so an older Gateway cannot silently apply the default cap instead.
  • [P1] The linked proof workflow is green, but its available evidence does not demonstrate the real operator outcome of starting more than three eligible cards in one pass.

Maintainer options:

  1. Require observable dispatch proof (recommended)
    Before merge, obtain redacted terminal or runtime output showing one capped dispatch starts more than three eligible cards while the default command still uses the legacy behavior.
  2. Accept the unobserved runtime path
    Merge based on focused tests and the additive mixed-version design while explicitly accepting that the changed real operator flow was not independently inspectable.

Next step before merge

  • [P1] Hold merge for contributor-supplied inspectable real-behavior proof; no concrete automated code repair is currently needed.

Security
Cleared: The diff adds no dependency, workflow, secret, permission, package-resolution, or downloaded-code surface, and retains the existing Workboard write authorization.

Review details

Best 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 changes

Label justifications:

  • P2: This is a bounded Workboard throughput improvement with focused scope and limited blast radius.
  • merge-risk: 🚨 compatibility: The PR adds a plugin Gateway method and relies on deliberate mixed-version failure behavior when the CLI is newer than the running Gateway.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The linked workflow passed, but its inspectable evidence does not show a real after-fix Workboard dispatch starting more than three eligible cards; add redacted terminal or runtime output, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +69, Tests +119, Docs +1. Total +189 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 108 39 +69
Tests 2 119 0 +119
Docs 1 4 3 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 231 42 +189

Acceptance criteria:

  • [P1] Run a real Workboard setup with at least four eligible cards owned by distinct available agents and capture openclaw workboard dispatch --max-starts 4 --json output showing more than three starts.
  • [P1] Run openclaw workboard dispatch --json without the flag and confirm the default path remains capped at three.
  • [P1] Verify a newer CLI against an older Gateway rejects workboard.cards.dispatchWithOptions without falling back to data-only dispatch or starting workers.

What I checked:

  • Current behavior: Current main exposes an internal maxStarts dispatcher option with a default of three, but the Gateway entry point forwards only boardId, so operators cannot currently reach the existing option. (extensions/workboard/src/dispatcher.ts:1358, 253f4a33e073)
  • Current Gateway boundary: The current workboard.cards.dispatch handler retains operator.write authorization and invokes the dispatcher without a request-provided start cap. (extensions/workboard/src/gateway.ts:2328, 253f4a33e073)
  • Mixed-version design: The PR keeps the legacy method for uncapped calls and uses a new additive method only when --max-starts is supplied, preventing an older Gateway from silently ignoring the requested cap. (extensions/workboard/src/cli.ts:112, 49a77cfb9597)
  • Validation coverage: The branch adds CLI and Gateway tests for strict parsing, method selection, parameter forwarding, legacy-method rejection, authorization, method registration, and limiting starts. (extensions/workboard/src/gateway.test.ts:262, 49a77cfb9597)
  • Proof gap: The latest completed ClawSweeper cycle inspected the linked workflow and found that it did not expose enough redacted terminal or runtime output to verify an actual after-fix dispatch starting more than three eligible cards; no newer contributor proof is present. (49a77cfb9597)
  • Maintainer sponsorship signal: The current head was force-pushed by steipete, and the sole head commit is authored by steipete with the contributor credited as co-author, indicating that the bounded feature direction has received maintainer involvement. (49a77cfb9597)

Likely related people:

  • steipete: Adopted and force-pushed the current head, authored its sole commit, and is the clearest available routing candidate for the Workboard API and mixed-version decision. (role: recent feature integrator; confidence: high; commits: 49a77cfb9597; files: extensions/workboard/src/cli.ts, extensions/workboard/src/gateway.ts, extensions/workboard/src/dispatcher.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.
Review history (5 earlier review cycles)
  • reviewed 2026-07-05T04:33:31.754Z sha 6b1a3472bfd229424aac1dde5982d16b09b986ba :: needs real behavior proof before merge. :: [P3] Use strict decimal parsing for max-starts
  • reviewed 2026-07-05T06:10:57.336Z sha 931288a46e75d98230f94fb244681d5c48d24465 :: needs real behavior proof before merge. :: [P3] Keep the plugin docs synopsis in sync
  • reviewed 2026-07-05T07:01:15.526Z sha 931288a46e75d98230f94fb244681d5c48d24465 :: needs real behavior proof before merge. :: [P3] Update the plugin docs synopsis
  • reviewed 2026-07-05T07:07:36.252Z sha 931288a46e75d98230f94fb244681d5c48d24465 :: needs real behavior proof before merge. :: [P3] Update the plugin docs synopsis
  • reviewed 2026-07-13T12:21:28.047Z sha 49a77cfb95975f621a79755165d22a25509d50ce :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 5, 2026
@souvikDevloper
souvikDevloper force-pushed the feat/workboard-dispatch-max-starts branch from 6b1a347 to f97e29a Compare July 5, 2026 05:39
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 5, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 5, 2026
@souvikDevloper

Copy link
Copy Markdown
Contributor Author

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

@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 5, 2026
@steipete
steipete force-pushed the feat/workboard-dispatch-max-starts branch from 931288a to 49a77cf Compare July 13, 2026 11:06
@steipete steipete self-assigned this Jul 13, 2026
@steipete
steipete force-pushed the feat/workboard-dispatch-max-starts branch 3 times, most recently from 54fd4ba to cd944a1 Compare July 13, 2026 15:29
@steipete
steipete force-pushed the feat/workboard-dispatch-max-starts branch from f3b9b8b to 5366ef4 Compare July 13, 2026 15:39
@steipete

Copy link
Copy Markdown
Contributor

Land-ready at 5366ef4a13097a7f145be4ae92a6cbb44fc1b927.

Proof:

  • Blacksmith Testbox tbx_01kxdzyd55csd18hdg35pptwwb: pnpm test extensions/workboard/src/dispatcher.test.ts extensions/workboard/src/gateway.test.ts extensions/workboard/src/cli.test.ts — 29/29 passed. The Gateway behavior test starts four distinct owners with maxStarts: 4; the unchanged legacy method starts three.
  • Same Testbox: pnpm check:changed — LOC ratchet, format, production/test types, lint, storage guards, and import cycles passed.
  • Exact-head Real behavior proof 29263157173 — passed; body-triggered recheck 29264027453 also passed.
  • Exact-head CI 29263159549 — passed.
  • Fresh local and full-branch autoreview — no actionable findings (0.99 and 0.94 confidence).

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.

@steipete
steipete merged commit da62904 into openclaw:main Jul 13, 2026
103 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

@souvikDevloper

Copy link
Copy Markdown
Contributor Author

@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

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: workboard rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Make workboard dispatch maxStarts configurable and parallelize per-card start loop

2 participants