Skip to content

feat(workboard): add move command to CLI and workboard_move tool - #96554

Merged
steipete merged 2 commits into
openclaw:mainfrom
ruizcrp:feat/workboard-card-move
Jul 14, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
ruizcrp:feat/workboard-card-move

Conversation

@ruizcrp

@ruizcrp ruizcrp commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Workboard operators could drag cards in the dashboard, but the CLI and /workboard command had no matching manual move action. Agents also lacked a focused tool for moving a card to a deliberate next status.

Why This Change Was Made

This refresh rebuilds the contributor change on current main and keeps one authority model across surfaces:

  • dashboard, CLI, and slash-command operators may move cards when they have Workboard mutation permission, including claimed cards;
  • workboard_move is an agent tool, so claimed cards still require the calling agent's owner identity or claim token;
  • the store enforces agent claim scope inside the queued write, closing the preflight-to-write race;
  • all surfaces use canonical Workboard statuses and preserve dependency/schedule holds.

The implementation also moves the new tool definition and status workflow into focused modules so the existing oversized Workboard files do not grow.

User Impact

  • openclaw workboard move <id> --status <status> [--json]
  • /workboard move <id> --status <status> for owners or Gateway clients with operator.write/operator.admin
  • workboard_move for agents, with claim-scoped mutations
  • the same manual movement semantics across dashboard, CLI, and slash-command surfaces

Release note: Adds consistent manual Workboard card movement to CLI, slash-command, and agent-tool surfaces while preserving agent claim isolation.

Evidence

Exact head: c19218f06b9f703f9ee02ad2489accf3dc40f024

  • Blacksmith Testbox tbx_01kxfjtr1642ekw65bdsbrrjz9: all 161 Workboard tests passed.
  • Same Testbox: pnpm check:docs and pnpm check:changed passed, including docs-map freshness, extension production/test typechecks, extension lint, formatting, SDK baseline, database-first guard, and runtime import-cycle guard.
  • Source-blind CLI validation in an isolated profile: create, id-prefix move to review, JSON persistence, invalid-status rejection with a visible reason, and unchanged persisted status after rejection.
  • Fresh autoreview: clean, patch is correct, confidence 0.91.

Hosted exact-head CI is the remaining pre-merge gate.

@openclaw-barnacle openclaw-barnacle Bot added plugin: workboard size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 24, 2026
@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed June 26, 2026, 2:50 PM ET / 18:50 UTC.

Summary
The branch exposes Workboard card status moves through the CLI, slash command, and workboard_move agent tool, with manifest/docs updates, claim-scope checks, and focused tests.

PR surface: Source +115, Tests +238, Docs +32. Total +385 across 11 files.

Reproducibility: not applicable. as a feature PR. Source inspection confirms current main lacks public CLI/tool/slash move surfaces, and the latest PR head adds them.

Review metrics: 1 noteworthy metric.

  • New Workboard public surfaces: 1 CLI subcommand, 1 slash command, 1 agent tool added. These are operator- and agent-facing contracts whose status, token, and JSON semantics need maintainer acceptance before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit
Patch quality: 🐚 platinum hermit
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:

  • [P2] Add [--json] to the top workboard move usage synopsis.
  • [P2] Have a maintainer explicitly accept the CLI, slash-command, and agent-tool contract before merge.

Risk before merge

  • [P1] The PR publishes new Workboard CLI, slash-command, and agent-tool contracts; maintainers should explicitly accept the status, token, and JSON behavior before those surfaces become stable.
  • [P1] The top CLI quick-reference synopsis still under-documents --json, so scripts using the synopsis could miss a supported machine-output mode.

Maintainer options:

  1. Fix synopsis and accept the public surface (recommended)
    Add [--json] to the top workboard move usage line, then have a maintainer explicitly accept the CLI, slash, and tool contracts before merge.
  2. Maintainer accepts docs gap as follow-up
    A maintainer may decide the examples and section body are enough for now and track the synopsis cleanup separately, but that leaves the quick reference inconsistent at merge.
  3. Narrow or pause the feature
    If maintainers do not want all three public surfaces yet, pause this PR or ask for a narrower branch that exposes only the approved Workboard movement path.

Next step before merge

  • [P2] A repair lane can safely fix the single docs synopsis mismatch; maintainer acceptance of the new public contracts remains a separate merge decision.

Security
Cleared: The diff does not change dependencies, workflows, secret handling, or supply-chain execution paths, and claimed-card movement uses the existing Workboard claim-scope helper.

Review findings

  • [P3] List the JSON flag in the move synopsis — docs/cli/workboard.md:28
Review details

Best possible solution:

Fix the usage synopsis, then land only if maintainers accept the new Workboard CLI, slash-command, and agent-tool contracts as stable public surfaces.

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

Not applicable as a feature PR. Source inspection confirms current main lacks public CLI/tool/slash move surfaces, and the latest PR head adds them.

Is this the best way to solve the issue?

Mostly yes. Reusing the Workboard store, manifest, docs, and existing Gateway movement model is the right owner boundary, but the docs synopsis mismatch should be fixed and maintainers should accept the new public contracts before merge.

Full review comments:

  • [P3] List the JSON flag in the move synopsis — docs/cli/workboard.md:28
    The new command registers --json, and the move section includes a JSON example, but the top usage synopsis omits [--json]. Add it there so the quick reference matches the public CLI contract.
    Confidence: 0.86

Overall correctness: patch is correct
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a bounded Workboard feature with limited blast radius, but it changes public operator and agent surfaces.
  • merge-risk: 🚨 compatibility: Merging publishes new CLI, slash-command, and agent-tool contracts whose arguments and output behavior will need to remain stable.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR body now includes latest-head CLI terminal output, a Telegram slash transcript, runtime plugin inspection showing workboard_move, and agent-session/log output with final card state after the move.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body now includes latest-head CLI terminal output, a Telegram slash transcript, runtime plugin inspection showing workboard_move, and agent-session/log output with final card state after the move.
Evidence reviewed

PR surface:

Source +115, Tests +238, Docs +32. Total +385 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 6 120 5 +115
Tests 3 238 0 +238
Docs 2 43 11 +32
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 401 16 +385

Acceptance criteria:

  • [P1] pnpm docs:list.
  • [P1] git diff --check.

What I checked:

  • Repository policy applied: Root, extensions/, and docs/ AGENTS.md were read; their PR evidence-map, plugin metadata, public contract, and docs-alignment rules are relevant to this Workboard plugin PR. (AGENTS.md:34, e5123e44b0f5)
  • Current main lacks the requested public move surfaces: Current main only has the internal WorkboardStore.move helper in this search; it does not expose workboard_move, a CLI move subcommand, or slash move handling, so this PR is not obsolete on main. (extensions/workboard/src/store.ts:2831, e5123e44b0f5)
  • Existing adjacent movement contract: Current main already exposes workboard.cards.move through the Gateway and Control UI, so the PR extends an existing Workboard movement model rather than creating a new storage concept. (extensions/workboard/src/gateway.ts:120, e5123e44b0f5)
  • PR head adds CLI move with token and JSON support: The latest head registers workboard move, validates status through WORKBOARD_STATUSES, passes claim scope, and supports --json. (extensions/workboard/src/cli.ts:157, a2e886d64914)
  • PR head adds slash and agent-tool paths: The latest head adds /workboard move handling and the workboard_move tool using the same status enum and scoped store mutation path. (extensions/workboard/src/command.ts:143, a2e886d64914)
  • Store mutation shape is scoped and queued: The proposed store.move overload performs the claim check and status update inside one queued mutation and then calls updateCard with normal status-hold enforcement. (extensions/workboard/src/store.ts:2831, a2e886d64914)

Likely related people:

  • steipete: Authored the merged Workboard agent coordination, orchestration, dispatch CLI, Gateway/tool, SQLite, and docs work that this PR extends. (role: feature history owner; confidence: high; commits: 61031d1b1cec, a341ae27ece9, ed46e62bcc5d; files: extensions/workboard/src/store.ts, extensions/workboard/src/tools.ts, extensions/workboard/src/gateway.ts)
  • BunsDev: Authored merged Workboard movement controls and status-persistence fixes around the existing Gateway/UI movement path. (role: adjacent movement contributor; confidence: medium; commits: e07dbb27d91f, 60104fe25480, 32ce06daf825; files: extensions/workboard/src/store.ts, ui/src/ui/controllers/workboard.ts, ui/src/ui/views/workboard.ts)
  • vincentkoc: Recently maintained Workboard task-backed runs, tool helper sharing, docs/UI details, and store cleanup near the dispatch and card lifecycle surfaces. (role: recent Workboard flow contributor; confidence: medium; commits: 82d24b26ea93, 82fe55acac9e, 0ae0051ae744; files: extensions/workboard/src/store.ts, extensions/workboard/src/tools.ts, ui/src/ui/controllers/workboard.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: 📣 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 24, 2026
@ruizcrp

ruizcrp commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

All fixes are implemented and committed. Here's the summary:

Changes Made (4 commits):

  1. feat(workboard): add move command to CLI and workboard_move tool — Initial implementation

  2. fix(workboard): add claim-scope enforcement and canonical status validation to move — P1 fixes:

• Added workboard_move to plugin registration names list (index.ts)
• Moved claim-scope enforcement into store.move() method (using assertCanMutateClaimedCard)
• Used canonical WORKBOARD_STATUSES enum in CLI instead of hardcoded list
• Passed scope through tools layer to store for proper ownership checks
3. test(workboard): add claim scope enforcement test for store.move() — Test proving claim scope works

  1. test(workboard): add canonical status validation test — Test proving all 8 valid statuses work via canonical enum

Test Results: 19 tests pass (12 CLI + 7 tools)

The claim scope test proves that:

• Agent-b cannot move a card claimed by agent-a (throws "card is claimed by agent-a")
• Agent-a can move its own claimed card (succeeds)

The canonical status test proves all 8 valid statuses work through the CLI using the shared enum.

Using node version v24.17.0 on ubuntu 24.04.4

Proof image of the passed tests added:
image

@clawsweeper please review again.

@clawsweeper clawsweeper Bot added status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 24, 2026
@ruizcrp

ruizcrp commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 24, 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 status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. labels Jun 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 26, 2026
@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 Jun 26, 2026
@ruizcrp

ruizcrp commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 26, 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jun 26, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jun 26, 2026
@ruizcrp

ruizcrp commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 26, 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 🦪 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. labels Jun 26, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 12, 2026
@steipete
steipete force-pushed the feat/workboard-card-move branch from a2e886d to 9b3a4b4 Compare July 14, 2026 05:46
@steipete
steipete force-pushed the feat/workboard-card-move branch from 9b3a4b4 to c19218f Compare July 14, 2026 05:58
@steipete

Copy link
Copy Markdown
Contributor

Land-ready at c19218f06b9f703f9ee02ad2489accf3dc40f024.

Maintainer refresh:

  • rebuilt the contributor change on current main;
  • made dashboard, CLI, and slash-command manual movement share operator mutation semantics;
  • kept agent moves claim-scoped and enforced the claim inside the serialized store mutation;
  • preserved dependency/schedule holds and contributor credit.

Proof:

  • Blacksmith Testbox tbx_01kxfjtr1642ekw65bdsbrrjz9 / run 29309602654: pnpm test extensions/workboard — 161 passed;
  • same Testbox: pnpm check:docs — passed;
  • same Testbox: pnpm check:changed — passed;
  • source-blind isolated-profile CLI validation: create, prefix move to review, persisted JSON status, visible invalid-status rejection, unchanged persisted state after rejection;
  • fresh autoreview: clean, patch correct, confidence 0.91;
  • Workflow Sanity 29309950327: passed;
  • exact-head CI 29309950367: Workboard-adjacent docs lane passed; 17 jobs green at landing decision.

Known proof gap: the run's checks-fast-bundled-protocol job fails on generated native protocol drift already present on current main; main run 29309282688 has the identical sole failure. Remaining unrelated shards were not awaited per the maintainer's relaxed-CI direction.

@steipete
steipete merged commit 40cf6c5 into openclaw:main Jul 14, 2026
100 of 102 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged to main as 40cf6c51b35eb44677859c26bbf330076e5b7bce.

Manual Workboard movement now has matching dashboard, CLI, slash-command, and agent-tool surfaces. Operator authority and agent claim isolation remain distinct; contributor credit is preserved in the landed commit.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
Adds consistent manual Workboard movement across CLI, slash commands, and agent tools while preserving operator authority and agent claim isolation.

Co-authored-by: Ross I4JU <[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 proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M stale Marked as stale due to inactivity 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