Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 25, 2026, 5:00 AM ET / 09:00 UTC. ClawSweeper reviewWhat this changesThe PR makes Workboard ignore a card’s running state, execution, and claim for global owner-capacity accounting after the claim has passed the existing five-minute reclaim grace period, with regression coverage at the boundary. Merge readinessThe patch appears to be a focused, coherent fix for the linked Workboard starvation report and includes strong exact-head runtime proof. It should remain open for maintainer review because its branch is behind current Priority: P1 Review scores
Verification
How this fits togetherThe bundled Workboard plugin persists cards, running executions, and claims, then its dispatcher selects ready cards to start while enforcing global per-owner capacity. A claim’s reclaimability is used by board-scoped cleanup and now also determines whether a stale card blocks another board’s ready work. flowchart LR
A[Persisted cards and claims] --> B[Shared reclaimability rule]
B --> C[Global owner capacity accounting]
D[Ready cards on selected board] --> C
C --> E[Workboard dispatcher]
E --> F[Agent run starts]
B --> G[Board-scoped stale cleanup]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +15, Tests +71. Total +86 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase or inspect the exact current three-way merge, then land the narrow shared-predicate fix if the final Workboard dispatch and cleanup paths retain the same reclaimability boundary. Do we have a high-confidence way to reproduce the issue? Yes, from source and the supplied exact-head runtime trace: create a running card with a short-lived claim on one board, wait past the existing reclaim grace, then dispatch a ready card for the same owner on another board. The trace reports the pre-boundary block and post-boundary single start using a real SQLite-backed Workboard store. Is this the best way to solve the issue? Yes, subject to current-main merge review. Reusing the store’s existing reclaimability predicate is narrower and safer than adding a dispatcher-specific expiry rule, because it keeps cleanup and global capacity accounting on one lifecycle contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aba0b12014a3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
1f26658 to
31d02ed
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thank you @shaoohh for investigating this and for the focused shared-reclaim-predicate solution. Your root-cause analysis directly informed the complete fix that has now landed on The merged implementation keeps one canonical reclaimability rule for store cleanup and global owner-capacity accounting, preserves the existing five-minute running-worker heartbeat grace, and adds the genuine cross-board regression: the worker remains blocked exactly at the grace boundary and starts exactly once one millisecond afterward. It also adds owner-wide concurrency stress and passed the protected CI and runtime proof. I’m closing this pull request only because its intended fix is now included in the merged change. Thanks again for the clear report, implementation, and useful test direction. |
[AI-assisted]
Closes #113252
What Problem This Solves
Fixes a Workboard starvation case where a reclaimable running card on one board could continue consuming its owner's global concurrency slot and prevent ready cards on another board from starting.
Why This Change Was Made
runningcard status, running execution, and claim no longer reserve global owner capacity.User Impact
Workboard fleets can resume same-owner work on another board after an abandoned running claim becomes reclaimable, without weakening the existing late-heartbeat grace period or requiring a cleanup pass on the stale card's board first.
Evidence
9f8c1a7853f0.check-lint,check-dependencies,check-test-types, build artifacts, and requiredopenclaw/ci-gate.446e6a391104has parent exactly equal to the final product head. Its workflow verifies that only.github/proof/workboard-113325-real-dispatch.tsand.github/workflows/proof-workboard-113325.ymldiffer, so proof assets are not part of this PR's product diff.extensions/workboard/src/dispatcher.test.tspassed 27/27 tests andextensions/workboard/src/store.test.tspassed 100/100 tests in the proof run.WorkboardStoreand SQLite database held a cross-board card with bothstatus=runningandexecution=running. Thirty seconds before the reclaim boundary it still reserved capacity (started=0,worker_calls=0); after the full grace it released capacity and the ready same-owner card on the other board started exactly once, while the stale card/claim/execution remained untouched for its board-scoped cleanup path.status=running,execution=running, andrun_id=proof-run-113325.Changelog
No root changelog edit in this contributor PR; release-note context remains here for maintainer release assembly.