Repository navigation
fix(workboard): explain blocked-card claim recovery - #154990
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 12:44 PM ET / 16:44 UTC. ClawSweeper reviewWhat this changesWorkboard’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 Review scores
Verification
How this fits togetherWorkboard 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4. Total +4 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landed in Workboard now tells callers to use 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. |
* 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) ...
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]>
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_unblockrecovery 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
9ca9c85e3280and started the standard Gateway with isolated state and normal token authentication. Twelve supportedpnpm openclaw gateway callrequests exercised the registered Workboard methods and real worker SQLite, without a model endpoint or inference:{"ok":false,"error":{"type":"gateway_request_error","code":"workboard_error","message":"card is blocked; use workboard_unblock before claiming.","retryable":false}}blocked, with no claim.workboard.cards.unblock, thenworkboard.cards.claim: the child becomesrunningwith 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
2d71ebc9426eused the exact candidate Workboard source from9ca9c85e3280:card dependencies are not done.After: the corrected unblock instruction.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.