Skip to content

fix(workboard): explain blocked-card claim recovery - #154990

Merged
obviyus merged 1 commit into
openclaw:mainfrom
MoerAI:fix/workboard-blocked-claim-guidance
Sep 21, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
MoerAI:fix/workboard-blocked-claim-guidance

Conversation

@MoerAI

@MoerAI MoerAI commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #154887

What Problem This Solves

Fixes the misleading “card dependencies are not done” error when claiming a blocked Workboard card whose parents have already completed.

User Impact

The rejection now names the existing workboard_unblock recovery action. Intentional holds remain blocked until explicitly released; claim eligibility, authorization, automatic promotion, and stored state are unchanged.

Why This Change Was Made

Blocked cards deliberately remain outside dependency promotion. The existing parent-present, non-ready, unclaimed guard incorrectly blamed dependencies for every rejected state. This change selects the blocked-card diagnostic inside that same guard, without changing the guard or parentless-card behavior.

Evidence

Registered Gateway dispatch

Built exact published head 9ca9c85e3280 and started the standard Gateway with isolated state and normal token authentication. Twelve supported pnpm openclaw gateway call requests exercised the registered Workboard methods and real worker SQLite, without a model endpoint or inference:

  1. Create a manual board and linked parent/child, claim and complete the parent, then claim and block the child.
  2. Attempt to claim the blocked child. The CLI exits 1 with:
{"ok":false,"error":{"type":"gateway_request_error","code":"workboard_error","message":"card is blocked; use workboard_unblock before claiming.","retryable":false}}
  1. Read the cards again: the full persisted child is unchanged, still blocked, with no claim.
  2. Call the existing workboard.cards.unblock, then workboard.cards.claim: the child becomes running with a claim.

The manual board had no automation job. Cron and heartbeat were disabled. The Gateway shut down cleanly, its port closed, and task-created state was removed. This is candidate-only registered RPC proof, not a new Gateway baseline or an agent/model conversation.

Baseline and controls

The retained before/after production guarded-tool proof at main 2d71ebc9426e used the exact candidate Workboard source from 9ca9c85e3280:

  • Before: card dependencies are not done. After: the corrected unblock instruction.
  • Rejected claims leave the full persisted card unchanged; explicit unblock followed by claim succeeds.
  • Unfinished-parent and active-claim rejections remain intact. Existing parentless-blocked-card claim behavior is preserved.

Contributor validation at the published head: 175 existing Workboard store/tool tests passed (83.45s reported Vitest duration), with changed-file checks passing. Those unchanged tests were not replayed. Independent targeted type-aware lint and formatting passed; the exact-head runtime build passed. No permanent wording-only test was added.

No schema, transition, permission, or claim-policy changes. Existing Workboard documentation already describes explicit unblock recovery. AI-assisted.

Name workboard_unblock instead of blaming completed dependencies. Preserve the claim predicate and card transitions. Real SQLite-backed tool proof and 175 existing tests pass, alongside changed-file checks and independent review.
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check could not safely complete for this revision.

ClawSweeper will not retry this unchanged revision.

Next step: No contributor action is requested. Maintainers should inspect the linked workflow run.

View the workflow run.

@MoerAI
MoerAI marked this pull request as ready for review September 21, 2026 16:11
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 12:44 PM ET / 16:44 UTC.

ClawSweeper review

What this changes

Workboard’s claim error now directs callers to workboard_unblock when a blocked card with parent links cannot be claimed.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped fix: current main and the latest release retain the misleading diagnostic. No actionable correctness or security findings remain, and the supplied production-tool proof covers the change.

Priority: P2
Reviewed head: 9ca9c85e3280221d173a02ff419ee812c825f17d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct diagnostic repair with relevant before/after production-tool evidence and reported passing validation.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Supplied terminal output exercises the changed claim owner through production tools and real worker-backed SQLite, showing the corrected blocked-card error and successful explicit unblock recovery; no live Gateway conversation is needed to establish this diagnostic change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Supplied terminal output exercises the changed claim owner through production tools and real worker-backed SQLite, showing the corrected blocked-card error and successful explicit unblock recovery; no live Gateway conversation is needed to establish this diagnostic change.
Evidence reviewed 7 items Introduced change preserves claim policy: The pinned introduction changes only the error selected inside the existing parent-present, non-ready, no-active-claim guard. Eligibility, authorization, promotion, and writes are unchanged.
Still needed on current main: Fetched main retains the unconditional dependency error; comparison with the reviewed head shows precisely the proposed diagnostic specialization.
Latest release retains the diagnostic: The supplied latest release, v2026.9.5, also contains the unconditional dependency error for this guard.
Findings None None.
Security None None.

How this fits together

Workboard manages task cards, dependencies, and worker claims. Its workflow store receives tool requests, checks card eligibility, and either updates SQLite-backed state or returns a recovery error.

flowchart TD
 A[Claim tool request] --> B[Workboard workflow store]
 C[Card and parent state] --> B
 B --> D{Existing claim eligibility}
 D -->|Blocked rejection| E[Error names unblock action]
 E --> F[Explicit unblock tool]
 F --> C
 D -->|Eligible| G[Persist worker claim]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +4. Total +4 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 5 1 +4
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 1 +4

Review metrics

None.

Technical review

Best possible solution:

Keep intentional blocked holds intact while directing rejected callers to the existing explicit recovery action.

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

Yes. Current source deterministically produces the false dependency error after completing a parent, claiming and blocking its child, then reclaiming the child; contributor before/after tool output corroborates this path.

Is this the best way to solve the issue?

Yes. Specializing the existing rejection message fixes the reported confusion without changing deliberate holds, claim eligibility, or persisted state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bb3a9b0f40e1.

Labels

Label changes:

  • add P2: The misleading recovery diagnostic causes unnecessary dependency troubleshooting, with limited impact and an existing unblock workaround.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Supplied terminal output exercises the changed claim owner through production tools and real worker-backed SQLite, showing the corrected blocked-card error and successful explicit unblock recovery; no live Gateway conversation is needed to establish this diagnostic change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Supplied terminal output exercises the changed claim owner through production tools and real worker-backed SQLite, showing the corrected blocked-card error and successful explicit unblock recovery; no live Gateway conversation is needed to establish this diagnostic change.

Label justifications:

  • P2: The misleading recovery diagnostic causes unnecessary dependency troubleshooting, with limited impact and an existing unblock workaround.
  • 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 (terminal): Supplied terminal output exercises the changed claim owner through production tools and real worker-backed SQLite, showing the corrected blocked-card error and successful explicit unblock recovery; no live Gateway conversation is needed to establish this diagnostic change.
  • proof: sufficient: Contributor real behavior proof is sufficient. Supplied terminal output exercises the changed claim owner through production tools and real worker-backed SQLite, showing the corrected blocked-card error and successful explicit unblock recovery; no live Gateway conversation is needed to establish this diagnostic change.

Evidence

What I checked:

  • Introduced change preserves claim policy: The pinned introduction changes only the error selected inside the existing parent-present, non-ready, no-active-claim guard. Eligibility, authorization, promotion, and writes are unchanged. (extensions/workboard/src/store-workflow.ts:126, 9ca9c85e3280)
  • Still needed on current main: Fetched main retains the unconditional dependency error; comparison with the reviewed head shows precisely the proposed diagnostic specialization. (extensions/workboard/src/store-workflow.ts:126, bb3a9b0f40e1)
  • Latest release retains the diagnostic: The supplied latest release, v2026.9.5, also contains the unconditional dependency error for this guard. (extensions/workboard/src/store-workflow.ts:126, ec9c1a13db89)
  • Existing recovery owner: The registered unblock tool calls the existing scoped store operation, which returns the card to todo. Dependency promotion then evaluates parent statuses; blocked cards intentionally remain outside automatic promotion. Documentation already describes unblock recovery. (extensions/workboard/src/tools.ts:546, 9ca9c85e3280)
  • After-fix production-boundary proof: The fully supplied PR body records macOS arm64 / Node 24.18.0 execution through createWorkboardTools, WorkboardStore, and real worker-backed SQLite. Before/after output shows the diagnostic replacement for a blocked child with a completed parent, followed by successful unblock-and-claim recovery. The scenario also reports unchanged persisted child state after rejection and successful cleanup. This is contributor-supplied terminal evidence; this read-only review did not execute it. (9ca9c85e3280)
  • Linked issue supports the bounded repair: [Bug]: blocked card with any parent is permanently unclaimable — "card dependencies are not done" never reads parent status #154887 explicitly accepts an accurate blocked-card error as an alternative to changing promotion. Its review recommends preserving explicit unblock recovery. Existing tests cover active-claim errors, blocked-state claim clearing, and unblock/retry behavior; the PR reports 175 passing tests. (extensions/workboard/src/store.test.ts:2475, 9ca9c85e3280)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • harjothkhara: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

@obviyus obviyus self-assigned this Sep 21, 2026
@obviyus
obviyus merged commit de747f0 into openclaw:main Sep 21, 2026
166 of 167 checks passed
@obviyus

obviyus commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Landed in de747f073085f89fccd32b6869e2f862be3f1181.

Workboard now tells callers to use workboard_unblock instead of blaming already-completed dependencies. The existing claim policy and deliberate hold remain unchanged.

Verified through the standard authenticated CLI/Gateway RPC path backed by real SQLite: the rejected claim leaves the blocked card unchanged, and explicit unblock followed by claim succeeds. Exact-head native review and required CI passed.

Thanks @MoerAI for the focused fix.

vincentkoc added a commit that referenced this pull request Sep 21, 2026
* commit '8a26ae487b5fb9b72ea2c12bf384e9c776659429': (154 commits)
  fix(ui): preserve skill group expansion when filtering (#150911)
  test(gateway): consolidate server history and lifecycle fixtures (#155063)
  test(codex): select HTTP fallback in native finalizer fixtures (#155008)
  improve: reduce isolated Gateway CI test time (#154366)
  test(gateway): await approval registration acknowledgments
  fix(workboard): explain blocked-card claim recovery (#154990)
  perf(agents): consolidate exec target policy tests (#155060)
  perf(config): consolidate environment test fixtures (#155062)
  fix(ui): keep the chat rail anchored through composer resize
  fix: recovery tests wait for committed outcomes (#154995)
  fix(codex): keep inference bursts from failing turns (#154945)
  fix(memory): keep generated REM reflections out of promotion rankings (#154994)
  fix(sqlite): reclaim scratch files when storage is full (#154937)
  test(cli): spawn the compiled Doctor entry in the output process test (#155055)
  fix(update): distinguish config validation execution failures (#154892)
  test(doctor): await session cleanup before deleting fixture state
  fix(update): report unavailable service inspection accurately (#154896)
  test(gateway): observe plugin approval response completion
  perf(msteams): reduce file-consent test scaffolding (#155050)
  fix(ui): retain saved permissions during delayed startup reads (#154982)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
Closes openclaw#154887

## What Problem This Solves

Fixes the misleading “card dependencies are not done” error when claiming a blocked Workboard card whose parents have already completed.

## User Impact

The rejection now names the existing `workboard_unblock` recovery action. Intentional holds remain blocked until explicitly released; claim eligibility, authorization, automatic promotion, and stored state are unchanged.

## Why This Change Was Made

Blocked cards deliberately remain outside dependency promotion. The existing parent-present, non-ready, unclaimed guard incorrectly blamed dependencies for every rejected state. This change selects the blocked-card diagnostic inside that same guard, without changing the guard or parentless-card behavior.

## Evidence

### Registered Gateway dispatch

Built exact published head `9ca9c85e3280` and started the standard Gateway with isolated state and normal token authentication. Twelve supported `pnpm openclaw gateway call` requests exercised the registered Workboard methods and real worker SQLite, without a model endpoint or inference:

1. Create a manual board and linked parent/child, claim and complete the parent, then claim and block the child.
2. Attempt to claim the blocked child. The CLI exits 1 with:

```json
{"ok":false,"error":{"type":"gateway_request_error","code":"workboard_error","message":"card is blocked; use workboard_unblock before claiming.","retryable":false}}
```

3. Read the cards again: the full persisted child is unchanged, still `blocked`, with no claim.
4. Call the existing `workboard.cards.unblock`, then `workboard.cards.claim`: the child becomes `running` with a claim.

The manual board had no automation job. Cron and heartbeat were disabled. The Gateway shut down cleanly, its port closed, and task-created state was removed. This is candidate-only registered RPC proof, not a new Gateway baseline or an agent/model conversation.

### Baseline and controls

The retained before/after production guarded-tool proof at main `6eb97ae49348` used the exact candidate Workboard source from `9ca9c85e3280`:

- Before: `card dependencies are not done.` After: the corrected unblock instruction.
- Rejected claims leave the full persisted card unchanged; explicit unblock followed by claim succeeds.
- Unfinished-parent and active-claim rejections remain intact. Existing parentless-blocked-card claim behavior is preserved.

Contributor validation at the published head: **175 existing Workboard store/tool tests passed** (83.45s reported Vitest duration), with changed-file checks passing. Those unchanged tests were not replayed. Independent targeted type-aware lint and formatting passed; the exact-head runtime build passed. No permanent wording-only test was added.

No schema, transition, permission, or claim-policy changes. Existing Workboard documentation already describes explicit unblock recovery. AI-assisted.

Co-authored-by: Ayaan Zaidi <[email protected]>
@MoerAI
MoerAI deleted the fix/workboard-blocked-claim-guidance branch September 23, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: XS 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.

[Bug]: blocked card with any parent is permanently unclaimable — "card dependencies are not done" never reads parent status

2 participants