Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesExclude completed cards from Workboard owner-slot occupancy even when their historical execution remains running. Example: worker1 has a done card with a historical running execution and a ready card on another board.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR narrowly fixes a current Workboard dispatch bug, resolves the previous regression-test finding, and supplies relevant shipped-entry-point proof; existing CI gates remain unresolved. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherWorkboard’s shared capacity predicate consumes persisted card, execution, and claim state and informs both dispatcher selection and atomic database claim admission. flowchart LR
A[Persisted cards] --> B[Shared owner-slot predicate]
B --> C[Dispatcher selection]
B --> D[Atomic claim admission]
C --> D
D --> E[Worker session]
E --> F[Card completion]
Technical reviewBest possible solution: Merge the shared capacity correction with its existing database regression once the normal exact-head gates pass. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the failure at both capacity boundaries, corroborated by the supplied main/candidate Gateway differential; this review executed no target code. Is this the best way to solve the issue? This is the smallest complete fix for legacy completed-card starvation: correct the existing shared occupancy owner while retaining nonterminal protection and the separate terminal-transition settlement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 548649e1dc47. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1, Tests -3. Total -4 across 2 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 29, 2026, 5:41 PM ET / 21:41 UTC (Revision 2). |
Built Gateway / real Workboard dispatch differentialFinal head Secretless Node 24.22.1 Docker builds of Gateway with bundled Workboard, real SQLite worker, actual worker sessions and a deterministic local Chat Completions provider. Task-owned For each of two independent owners per snapshot, create boards through Run the shipped CLI
Every started case reaches the real provider three times: tool_search discovers workboard_complete, dispatch_action invokes that real scoped tool using the worker’s actual claim, then final assistant reply is DISPATCH_PROOF_OK. Before/after Corrected SQLite regression and zero test growthThe existing capacity matrix now expects Focused secretless Docker checks:
The initial harness attempt exposed the CLI’s redacted Revert fully restores prior admission behavior without data migration. Blast radius: global Workboard owner capacity for terminal cards with historical running executions. Existing live/nonterminal work remains protected. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed in f421bd2. Thanks @atomicdjt. Leftover executions on done cards no longer block new Workboard dispatch. |
…ns (#187880) fix(workboard): don't let a done card's leftover running execution block new dispatch A card marked done could still have a legacy execution recorded as running, and Workboard counted it against the owner's global slot. No new work was dispatched to that owner on any board. The shared predicate used by the dispatcher and the SQLite claim now ignores running executions on completed cards. Real non-terminal running executions still block, and stored rows aren't rewritten. Evidence: built Gateway with the bundled Workboard CLI and RPC, a real SQLite worker and worker sessions, with legacy done-but-running cards seeded through real RPCs. On main nothing was dispatched and fresh cards for the same owner stayed ready (twice); with this change one card was dispatched and completed with passing proof (twice). The legacy card read back exactly unchanged. Normal dispatch works on both refs, and non-terminal running executions still block on both. Details: openclaw/openclaw#187880 (comment). Thanks @atomicdjt. Co-authored-by: Ayaan Zaidi <[email protected]>
…ns (#187880) fix(workboard): don't let a done card's leftover running execution block new dispatch A card marked done could still have a legacy execution recorded as running, and Workboard counted it against the owner's global slot. No new work was dispatched to that owner on any board. The shared predicate used by the dispatcher and the SQLite claim now ignores running executions on completed cards. Real non-terminal running executions still block, and stored rows aren't rewritten. Evidence: built Gateway with the bundled Workboard CLI and RPC, a real SQLite worker and worker sessions, with legacy done-but-running cards seeded through real RPCs. On main nothing was dispatched and fresh cards for the same owner stayed ready (twice); with this change one card was dispatched and completed with passing proof (twice). The legacy card read back exactly unchanged. Normal dispatch works on both refs, and non-terminal running executions still block on both. Details: openclaw/openclaw#187880 (comment). Thanks @atomicdjt. Co-authored-by: Ayaan Zaidi <[email protected]>
…ns (#187880) fix(workboard): don't let a done card's leftover running execution block new dispatch A card marked done could still have a legacy execution recorded as running, and Workboard counted it against the owner's global slot. No new work was dispatched to that owner on any board. The shared predicate used by the dispatcher and the SQLite claim now ignores running executions on completed cards. Real non-terminal running executions still block, and stored rows aren't rewritten. Evidence: built Gateway with the bundled Workboard CLI and RPC, a real SQLite worker and worker sessions, with legacy done-but-running cards seeded through real RPCs. On main nothing was dispatched and fresh cards for the same owner stayed ready (twice); with this change one card was dispatched and completed with passing proof (twice). The legacy card read back exactly unchanged. Normal dispatch works on both refs, and non-terminal running executions still block on both. Details: openclaw/openclaw#187880 (comment). Thanks @atomicdjt. Co-authored-by: Ayaan Zaidi <[email protected]>
…ns (#187880) fix(workboard): don't let a done card's leftover running execution block new dispatch A card marked done could still have a legacy execution recorded as running, and Workboard counted it against the owner's global slot. No new work was dispatched to that owner on any board. The shared predicate used by the dispatcher and the SQLite claim now ignores running executions on completed cards. Real non-terminal running executions still block, and stored rows aren't rewritten. Evidence: built Gateway with the bundled Workboard CLI and RPC, a real SQLite worker and worker sessions, with legacy done-but-running cards seeded through real RPCs. On main nothing was dispatched and fresh cards for the same owner stayed ready (twice); with this change one card was dispatched and completed with passing proof (twice). The legacy card read back exactly unchanged. Normal dispatch works on both refs, and non-terminal running executions still block on both. Details: openclaw/openclaw#187880 (comment). Thanks @atomicdjt. Co-authored-by: Ayaan Zaidi <[email protected]>
…ns (#187880) fix(workboard): don't let a done card's leftover running execution block new dispatch A card marked done could still have a legacy execution recorded as running, and Workboard counted it against the owner's global slot. No new work was dispatched to that owner on any board. The shared predicate used by the dispatcher and the SQLite claim now ignores running executions on completed cards. Real non-terminal running executions still block, and stored rows aren't rewritten. Evidence: built Gateway with the bundled Workboard CLI and RPC, a real SQLite worker and worker sessions, with legacy done-but-running cards seeded through real RPCs. On main nothing was dispatched and fresh cards for the same owner stayed ready (twice); with this change one card was dispatched and completed with passing proof (twice). The legacy card read back exactly unchanged. Normal dispatch works on both refs, and non-terminal running executions still block on both. Details: openclaw/openclaw#187880 (comment). Thanks @atomicdjt. Co-authored-by: Ayaan Zaidi <[email protected]>
…ns (openclaw#187880) fix(workboard): don't let a done card's leftover running execution block new dispatch A card marked done could still have a legacy execution recorded as running, and Workboard counted it against the owner's global slot. No new work was dispatched to that owner on any board. The shared predicate used by the dispatcher and the SQLite claim now ignores running executions on completed cards. Real non-terminal running executions still block, and stored rows aren't rewritten. Evidence: built Gateway with the bundled Workboard CLI and RPC, a real SQLite worker and worker sessions, with legacy done-but-running cards seeded through real RPCs. On main nothing was dispatched and fresh cards for the same owner stayed ready (twice); with this change one card was dispatched and completed with passing proof (twice). The legacy card read back exactly unchanged. Normal dispatch works on both refs, and non-terminal running executions still block on both. Details: openclaw#187880 (comment). Thanks @atomicdjt. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #122911.
What Problem This Solves
A completed Workboard card can retain a historical execution marked running. That stale execution incorrectly occupies the assigned worker’s global owner slot, so ready work on another board silently never starts.
User Impact
Completed cards no longer starve later work for the same owner. Nonterminal running executions still block that owner; archived-card and expired-claim grace behavior keep their existing rules. Historical rows remain intact.
Why This Change Was Made
Move the existing done-card exclusion around all arms of the one private owner-slot predicate used by dispatcher selection and atomic SQLite admission. No duplicate SQL rule, row rewrite, migration, cap, permissions, schema, or SDK change. Keeps atomicdjt/David Turner’s contributor commits.
Evidence
Final head
74364685305f43e196067ce10a863b3dcfed5913changes tests only from the proven production repair.Built Gateway, real bundled Workboard RPC/CLI, actual SQLite worker and worker sessions, deterministic local provider. Legal done/running legacy records seeded through cards.create. Main twice starts no same-owner work on another board; candidate twice starts one actual worker and accepts workboard_complete, reaching done with passed proof. Normal dispatch succeeds on both; nonterminal running executions remain blocking on both. Entire old card readback is unchanged.
Detailed actual RPC/worker receipts: #187880 (comment)
Corrected existing SQLite capacity table retains a completed-positive and nonterminal-negative case. Candidate capacity + dispatcher files pass 56/56; corrected completed case fails as intended on frozen main (15 other cases pass). Focused formatting passes. Removed duplicate new helper/dispatcher test blocks; whole-PR tests net -3 lines, no allocations. Production +2/-3.
Merge danger: two-way door. Revert restores prior slot admission without rewriting stored cards. Blast radius: global Workboard owner capacity when a terminal card retains a historical running execution; live/nonterminal ownership protection remains unchanged.