Repository navigation
feat(workboard): queue a node-ticket start on a full slot and stay on the board - #52
Merged
Merged
Conversation
…is full
workboard.cards.start on a node ticket whose pool or route is full now
records metadata.automation.startRequest, posts one notice, and returns
{ queued: true, card } with the card left in todo. The handoff resume
drains queued tickets oldest request first; a ticket whose own route is
still full keeps its place without holding back a later ticket on a free
route, and any other refusal blocks the card with the reason.
Only the store's queue write can set the request: update, create, and
agent tools drop it, and every card write clears it once the ticket
leaves todo or ready, is claimed, or is archived. A reviewed D56 reopen
that finds no slot joins the same queue instead of retrying on its own.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tart Start, Run Claude, and Run OpenAI no longer open the started session, so starting several cards does not bounce between the board and sessions; Open Claude and Open OpenAI still do. A queued node ticket's Start reads Queued and is disabled, and the queued start response replaces the card without an error. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…drain blocks A published or questions ticket without a review comment or answer is no longer queued, so the D56 bounce back with the next step still runs instead of the drain starting a round with no feedback. Starting a backlog ticket on a full slot moves it to todo and queues it in the same write; moving it back to backlog still cancels. A queued start that loses a race to a card edit (a write conflict, or changed authority before the claim) keeps its request and retries on the next change instead of blocking the card. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…art controls A queued node ticket shows a Queued chip in the tile's meta row, which stays visible without hover, and in the list row. Run and Open in an engine are disabled too, since any other start or session would collide with the queued autonomous start. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…eing it The claim's card preconditions (parents not done, scheduled for later, retry budget exhausted) now live in one workboardClaimRefusal that both the claim and the exact start's selection use. An exact start checks them before the slot, so on a full slot the operator gets the same reason as on a free one and the card is not queued; previously the drain later hit the refusal and blocked a card that dependency promotion then never revived. Only a refusal for the slot alone carries the full slot that queues a start. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
Author
This was referenced Oct 13, 2026
tomorrowflow
added a commit
that referenced
this pull request
Oct 13, 2026
* style(workboard): bring store-card-helpers back under the 700-line cap #51 and #52 each stayed under the cap and together reached 701 lines on main. The attempt rebuild carries contextTokens in one line. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(workboard): run git diff --check at node-ticket import Both of dev's defect verdicts in the Phase 4 window were a failing `git diff --check` that the session reported done anyway. The host clone now runs it over the imported range before it creates the ticket branch. A failure adds a failed `import check` proof entry and blocks the card with the command and output first, so the re-run session reads them and fixes them with a new commit in the same node worktree. A rework round checks only its own commits: the rework record gains `startCommit`, the branch tip the round started from, so a reviewer's commits or an "Update branch" merge of main never block the session. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(workboard): leave a failed import's pending record to the re-run A re-run claims the card while it still carries the pending handoff of the failed import, and the handoff sweep fires on that claim. It then imported the old head again: an import-check failure blocked the re-run before its session could fix it, and a generic failure jumped to review mid-start. A pending record older than the card's claim now belongs to the start that replaces it. The rework round's starting tip is checked as a commit id before it reaches host git. The start queue tests move to their own file to keep the handoff tests under the line cap. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






Problem
Operators start several node tickets in a row from the Workboard. Two things got in the way:
dev's view-only link session; the work runs on the node. Starting three cards meant bouncing board → session → board three times.Solution
Queue (D71). The operator's
workboard.cards.starton a full slot recordsmetadata.automation.startRequest: { requestedAt }and one notice comment, and returns{ queued: true, card }instead of throwing. The card stays intodo(a backlog card moves totodoin the same write).readywas not usable as the marker: dependency promotion, schedules, reclaim, promote and agent moves all produce it, anddevmust never start a card. Update/create patches, agent tools and normalizers drop the field (allowAutomationLaunchgate).updateCardclears the request whenever the card can no longer hold it (claimed, archived, blocked, moved out of todo/ready). Moving a card to backlog cancels; moving it back does not resurrect the request.createNodeTicketHandoffs().resume()(already woken by every store change, no timer) starts queued cards oldest-first. A card whose route is still full keeps its place; a later card on a free route still starts, so a busy Mac never holds back the Linux pool. A card that changed mid-start stays queued; any real refusal blocks it with the reason.workboardClaimRefusal.UI. Autonomous starts (Start, Run Claude, Run OpenAI) stay on the board; interactive Open still opens the session. A queued card shows an hourglass "Queued" chip on its tile and disables every start control.
Evidence
/chat/dev/subagent/workboard-…; second Start shows a red busy toast and Start stays enabled; the tile looks unqueued./workboardafter both starts; second card shows disabled "Queued" in its detail and a Queued chip on its tile.pnpm test <file> --maxWorkers=1, warm):gateway-node-ticket-stop.test.ts7 tests 12.1 s;node-ticket-handoff.test.ts28 tests 24.4 s;view-card-actions.test.ts12 tests 1.7 s;view-card-content.test.ts2 tests 1.7 s. Full workboardsrc463 tests andbrowser247 tests pass. Each required case was checked to fail with its fix removed.run-tsgoontsconfig.extensions.jsonandtest/tsconfig/tsconfig.extensions.test.json: workboard clean; the only errors are the pre-existingqa-lab@openclaw/crabbox-providermissing-module errors.Impact
No schema change; the request lives in the card JSON the store already owns. Update behavior: none (no config, no migration). Docs:
docs/plugins/workboard.md"Queued starts".🤖 Generated with Claude Code