Files
openclaw/docs/cli/workboard.md
T
Ayaan Zaidi c7ee70c52d fix(workboard): preserve ready-card history on idle dispatch (#149160)
## What Problem This Solves

Every ready card gains dispatch history even when no worker starts. Thanks to @gregbond for measuring the repeated stamps. Closes #143842.

## Why This Change Was Made

Remove the scan-only write and its unused helper. This state has one writer: card mutation records actual maintenance, claim and execution transitions.

## User Impact

Idle scans preserve ready-card history, waiting age and edit versions. Real launches still record their launch state, attempts and execution events.

## Compatibility

Existing dispatch counters, timestamps and events remain readable and unchanged. No schema, stored shape, ledger or retention change. Both dispatch guides describe this behavior. Legacy notification repair from #120999 still runs during real metadata updates.

## Evidence

Three `openclaw workboard dispatch --board intake-proof --max-starts 1 --json` calls against an isolated Gateway: zero starts, six added events before; zero card changes after. Releasing capacity records an accepted launch and reaches the local provider. Expired-claim and dependency-promotion controls pass.

## Consumers

CLI, dashboard history, waiting diagnostics and capacity explanations retain their contracts. Idle scans no longer reset waiting age.

## Invalidation

Real card mutations still publish changes; idle scans publish none.

## Tests

Registered regression fails on main and passes with the fix. All 322 owner and sibling tests pass on a fresh merge. Type, lint, formatting and static checks pass.

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-09-15 20:46:50 +05:30

11 KiB

summary, read_when, title
summary read_when title
CLI reference for `openclaw workboard` cards, dispatch, and worker runs
You want to inspect or create Workboard cards from the terminal
You want to dispatch Workboard worker runs from the CLI
You are debugging Workboard CLI or slash command behavior
Workboard CLI

openclaw workboard is the terminal surface for the bundled Workboard plugin. It lets an operator list cards, create a card, inspect one card, and ask the running Gateway to dispatch ready work into subagent worker runs.

Enable the plugin before using the command:

openclaw plugins enable workboard
openclaw gateway restart

Usage

openclaw workboard list [--board <id>] [--status <status>] [--include-archived] [--json]
openclaw workboard create <title...> [--notes <text>] [--status <status>] [--priority <priority>] [--agent <id>] [--board <id>] [--labels <items>] [--json]
openclaw workboard show <id> [--json]
openclaw workboard move <id> --status <status> [--json]
openclaw workboard dispatch [--board <id>] [--max-starts <count>] [--admin] [--url <url>] [--token <token>] [--timeout <ms>] [--json]

The command reads and writes the same plugin-owned SQLite database used by the dashboard and Workboard agent tools. Card ids are UUIDs. Commands that accept a card id also accept an unambiguous id prefix. The compact text output shows the first 8 characters.

Valid status values: triage, backlog, todo, scheduled, ready, running, review, blocked, done. Valid priority values: low, normal, high, urgent.

list

openclaw workboard list
openclaw workboard list --board default --status ready
openclaw workboard list --json

Text output is compact:

7f4a2c10  ready     high    default agent-a  Fix stale worker heartbeat

Columns are id prefix, status, priority, board id, optional agent id, and title.

Flag Purpose
--board <id> Limit results to one board namespace
--status <status> Limit results to one Workboard status
--include-archived Include archived cards in compact text output
--json Print the full card list as machine JSON

Compact text output hides archived cards by default so the CLI matches /workboard list. Pass --include-archived to show them. JSON output always keeps the full card list, including archived cards, for existing automation.

create

openclaw workboard create "Fix stale worker heartbeat" --priority high --labels bug,workboard
openclaw workboard create "Write Workboard docs" --status ready --agent docs-agent --board docs --notes "Cover CLI, slash command, dispatch, and SQLite state."
Flag Purpose
--notes <text> Initial card notes
--status <status> Initial status, default todo
--priority <priority> Priority, default normal
--agent <id> Assign the card to an agent or owner id
--board <id> Store the card on a board namespace
--labels <items> Comma-separated labels
--json Print the created card as machine JSON

create writes directly to Workboard SQLite state. The card is immediately visible in the Control UI Workboard tab and to Workboard tools.

show

openclaw workboard show 7f4a2c10
openclaw workboard show 7f4a2c10 --json

Text output prints the compact card line and notes. JSON output returns the full card record, including execution metadata, attempts, comments, links, proof, artifacts, worker logs, protocol state, diagnostics, and automation metadata.

Proof statuses in JSON are worker-reported outcomes. passed records the worker's self-assessment of the attached command or check. It is not an independent verification result.

move

openclaw workboard move 7f4a2c10 --status review
openclaw workboard move 7f4a2c10 --status done --json

move changes the card's status using the same manual-operator path as dragging a card in the dashboard. It accepts a full card id or an unambiguous prefix. Active dependency and schedule holds still apply. Operators may move a claimed card without its agent claim token. Claim tokens remain scoped to agent-tool mutations, and JSON output redacts them.

dispatch

openclaw workboard dispatch
openclaw workboard dispatch --json
openclaw workboard dispatch --max-starts 10
openclaw workboard dispatch --admin
openclaw workboard dispatch --url http://127.0.0.1:18789 --token "$OPENCLAW_GATEWAY_TOKEN"

dispatch first calls the running Gateway RPC method workboard.cards.dispatch. That method uses the same subagent runtime as the dashboard dispatch action. Ready cards therefore become task-tracked worker runs with linked session keys. --max-starts uses the additive workboard.cards.dispatchWithOptions method, so an older Gateway rejects the option before starting any workers. Restart the Gateway after upgrading, before you use the flag. Cards with an assigned agent use agent-scoped subagent session keys. Unassigned cards keep an unscoped subagent key, so the Gateway's configured default agent is preserved.

The dispatch loop:

  1. Promotes dependency-ready children to ready.
  2. Blocks expired claims or timed-out worker runs.
  3. Selects a small batch of unclaimed ready cards.
  4. Claims each selected card for the dispatcher or assigned agent.
  5. Starts a subagent worker run with bounded card context and the card claim token.
  6. Stores the worker run id, session key, task linkage when the Gateway task ledger reports it, execution status, and worker log on the card.

Idle scans leave ready-card history unchanged. Existing dispatch counters and timestamps remain as historical values; new launches use the card's launch, attempt, and execution history.

Selection is conservative. One dispatch starts at most three workers by default. It skips archived or already-claimed cards. It starts only one card per owner or agent in a single pass. Cards already owned by active running or review work are left for a later dispatch. Pass --max-starts <count> with a positive integer to change the per-pass cap. The one-card-per-owner rule still applies, so the effective number of starts can be lower.

If worker start fails after a card is claimed, Workboard blocks that card and clears the claim. It records the failure in card execution and worker-log metadata. Failed starts stay visible instead of returning the card to the queue silently.

The CLI falls back to data-only dispatch against local Workboard state when both of these are true:

  • You give no explicit Gateway target.
  • The local Gateway is unavailable, or it does not expose the Workboard dispatch method yet.

Data-only dispatch can still promote dependencies, clean stale claims, and block timed-out runs, but it does not start workers. Auth, permission, and validation failures, and failures for an explicit --url or --token target, are reported directly instead of triggering the fallback.

Text output reports worker starts:

dispatch complete: started=2 failures=0

Fallback output is explicit:

gateway unavailable; data dispatch only: promoted=1 blocked=0

JSON output includes the dispatch result. Gateway-backed dispatch can include started and startFailures. Data-only fallback includes gatewayUnavailable: true. Claim tokens are redacted from card JSON output.

In the dashboard, the same dispatch result appears as a short summary. An operator can see how many cards started, promoted, blocked, reclaimed, or failed without opening card details.

Slash command parity

Command-capable channels can use the matching slash command:

/workboard list
/workboard show 7f4a2c10
/workboard create Fix stale worker heartbeat
/workboard move 7f4a2c10 --status review
/workboard dispatch

Slash command dispatch also uses the Gateway subagent runtime. It follows the same claim, worker-start, and failure behavior as the dashboard and CLI Gateway path.

/workboard list and /workboard show are read commands for authorized command senders. /workboard create, /workboard move, and /workboard dispatch mutate board state and require owner status on chat surfaces or a Gateway client with operator.write or operator.admin.

Permissions

The CLI dispatch path normally requests Gateway operator.write and operator.read scopes. Workspace-bound cards run directly in an exact configured agent workspace. A worktree request is narrowed to that directory, so the host does not materialize repository-controlled code. The selected worker must have writable, non-shared Docker sandbox access to that exact workspace, a live container hash matching the requested mounts and policy, and no host escape capability. Pass --admin to explicitly request operator.admin, allow another host checkout, and use normal managed-worktree setup. The connection fails if that scope is not approved for the client. A read-only Gateway token can inspect Workboard data through read methods, but it cannot create cards or dispatch workers. Workspace limits do not otherwise change manual card movement for callers with Workboard mutation permission.

Local list, create, show, and move commands operate on the local OpenClaw state directory used by the current profile. Use --dev or --profile <name> on the top-level openclaw command when you need a different state root.

Troubleshooting

No cards appear

Check that the plugin is enabled for the same profile and state root:

openclaw plugins inspect workboard --runtime --json

If the dashboard shows cards but the CLI does not, check that both commands use the same --dev or --profile setting.

Dispatch says data-only

Start or restart the Gateway:

openclaw gateway restart
openclaw gateway status --deep

Then retry openclaw workboard dispatch. Data-only fallback is useful for local state cleanup, but worker runs need a live Gateway.

Dispatch starts nothing

Check for at least one ready card without an active claim:

openclaw workboard list --status ready

Cards can also be skipped when the same owner already has running or review work. Move completed work to done, release stale claims through the Workboard tools, or run dispatch again after the active worker finishes.