Skip to content

fix(workboard): workboard_move to terminal status leaves live claim and running execution #119592

Closed

Description

@printerjam

What Problem This Solves\n\nworkboard_move (store-promote.ts:move()) allows moving a claimed, dispatched card to a terminal status (done, blocked, review) without clearing the card's claim, running execution, or open attempts. complete() and block() both properly clear claim, close running attempts, and mark execution terminated — but move() bypasses all of that, calling updateCard({status, position}) with no side-effect cleanup.\n\nThis leaves a card in status: "done" that still carries metadata.claim (preventing the real worker from completing it), execution.status: "running" (keeping the owner's dispatch slot consumed), and an open running attempt. The card becomes an active dependency target forever and its owner can't start any new ready cards.\n\n## Evidence\n\nReproduction:\n1. Claim a card, then dispatch it (so it has execution.status === "running", a claim, and a running attempt).\n2. Call workboard_move { status: "done" } via the agent tool.\n3. Observe: status === "done" but metadata.claim is still set, execution.status === "running", and a running attempt remains open.\n4. Compare to workboard_complete() which would have cleared all of these.\n\nCode location: extensions/workboard/src/store-promote.ts:23-44 — move() calls updateCard(id, {status, position}, {enforceStatusHolds: true}) with no claim-clearing, no execution handling, and no attempt cleanup.\n\nFix sketch: Block move() to terminal statuses while a claim or running execution is live (routing the user to complete/block), or apply the same cleanup that complete/block do: clear claim, close running attempts, and update execution status.\n\n## Checklist\n\n- [x] Overlap-checked: gh search issues 'workboard move' — no open issues/PRs. The closest open item is #113582 (proposal: fail-closed completion gates), whose PR attempt #113641 was closed without merging. This is a concrete, independently-fixable defect within that proposal's scope.\n- [x] Agent-authored

Activity

  1. clawsweeper commented on Aug 5, 2026

    @clawsweeper
    Contributor

    🦞🔧
    ClawSweeper is automatically building this issue.

    The issue review finished and no active implementation pull request was found.

    Automatic implementation progress:

  2. added
    P2
    impact:other
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:linked-pr-open
    clawsweeper:no-new-fix-pr
    on Aug 5, 2026
  3. clawsweeper commented on Aug 5, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    The merged repair fixes terminal-move claim retention, running execution, and open attempts on current main; nonterminal review handoff is separately tracked.

    Root-cause cluster
    Relationship: canonical
    Canonical: #119592
    Summary: The focused terminal-move defect is fixed by the merged repair; nonterminal claim handoff remains separately tracked.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Retain the merged shared-writer repair and track nonterminal claim handoff in #127785.

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

    No runtime reproduction was executed during this read-only review; current source and SQLite-backed regressions establish the repaired terminal path, corroborated by the linked built Gateway comparison.

    Is this the best way to solve the issue?

    The merged repair addresses the owning card writer and reuses complete/block teardown, avoiding duplicate tool policy while preserving claim authorization and nonterminal review semantics.

    Security review:

    Security review: This issue reports Workboard lifecycle consistency without a concrete security concern.

    AGENTS.md: found and applied where relevant.

    What I checked:

    Likely related people:

    • jondihaynes: Raw commit a88d599 adds extensions/workboard/src/store-status-write.ts:94 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a88d599bcc51; files: extensions/workboard/src/store-status-write.ts)

    Codex review notes: model internal, reasoning medium; reviewed against ba2c43235473; fix evidence: commit a88d599bcc51, main fix timestamp 2026-10-27T01:04:12Z.

  4. added
    impact:session-state
    clawsweeper:needs-product-decision
    P1
    clawsweeper:needs-maintainer-review
    and removed
    impact:other
    P2
    clawsweeper:needs-product-decision
    on Aug 6, 2026
  5. 8 remaining items

  6. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    and removed
    clawsweeper:no-new-fix-pr
    clawsweeper:linked-pr-open
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    on Oct 17, 2026
  7. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    and removed
    P1
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clawsweeper:source-reproimpact:session-stateissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions