Skip to content

fix: protect claimed tasks from deletion by other sessions - #86

Merged
cloader merged 3 commits into
devfrom
fix/delete-claim-guard
Nov 1, 2026
Merged

cloader merged 3 commits into
devfrom
fix/delete-claim-guard

Conversation

@cloader

@cloader cloader commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

A task claimed through todo → in_progress can have no running execution record, so another session could previously soft-delete it despite the exclusive hold. Both taskboard_move and taskboard_delete now share the same holder check inside the ledger mutation: another session receives forbidden, and the task and claim remain intact.

The holder may still soft-delete an idle task with the current version. Running executions continue to block deletion for everyone. Unclaimed tasks, other editing tools, and GUI user controls retain their existing permissions. Tool descriptions and task details explain the restriction; the Chinese and English READMEs and changelog include a short v0.9.8 entry linking #85 and this PR.

Validated after merging current dev (241c817, including the ledger recovery fix in #87): typecheck, full build, and all 662 tests in 50 files passed on Node 22.23.1 (npm test -- --maxWorkers=2). Eight added cases cover same-project and cross-project outsiders, holder deletion, version conflicts, running execution protection, unchanged unclaimed deletion, and a holder changed on disk behind a stale store.

Fixes #85.

GitHub CI passed on Node 22.x and 26.x for commit 5665b3e: typecheck, build, and full test suite (https://github.com/cloader/dsh-taskboard/actions/runs/41302503280).

@cloader
cloader merged commit 2053e5b into dev Nov 1, 2026
2 checks passed
@cloader
cloader deleted the fix/delete-claim-guard branch November 1, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] taskboard_delete ignores the exclusive-hold gate: any session can trash a card another session is working on

1 participant