Repository navigation
fix(workboard): isolate board deletion from unrelated subscriptions - #152102
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. Reviewed September 18, 2026, 3:39 PM ET / 19:39 UTC. ClawSweeper reviewWhat this changesBoard deletion reads only the selected board’s notification subscriptions, with regression coverage ensuring unrelated malformed subscriptions remain untouched. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main and the latest release still enumerate unrelated subscriptions during board deletion. No actionable correctness or security findings were found. Priority: P2 Review scores
Verification
How this fits togetherWorkboard stores local task boards and notification subscriptions in SQLite. Gateway and agent-tool deletion requests pass through the board store, which checks deletion guards, removes matching subscriptions, and deletes board metadata. flowchart TD
A[Gateway or agent tool] --> B[Board deletion]
B --> C{Non-default and empty?}
C -->|No| D[Refuse deletion]
C -->|Yes| E[Read selected board subscriptions]
E --> F[Validate and delete matching subscriptions]
F --> G[Delete board metadata]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +20. Total +20 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Reuse the existing scoped SQLite reader while preserving selected-row validation, deletion order, and unrelated persisted rows. Do we have a high-confidence way to reproduce the issue? Yes, from source: deleting an empty non-default board currently decodes every subscription, so malformed JSON on another board throws before deletion. The added regression models this path; execution was not repeated in this read-only review. Is this the best way to solve the issue? Yes. Passing the normalized board ID to the existing reader fixes the failure at row selection without adding another implementation or changing stored data. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58f54ff9a31b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…/current-conversation-binding-row * commit 'f5276e5a54c088dd23475f08479acd9738d959bd': (46 commits) perf(plugins): combine runtime and tool call scopes (#152101) test(memory): seed restart fixtures with the Gateway stopped (#152038) perf(gateway): avoid session list stalls on broad updates (#152074) fix: preserve model failure causes and worker fallback runtime (#152028) perf(logging): reduce Gateway hot-path info log volume (#152080) improve(gateway): reduce duplicate worker data fetched from SQLite (#151878) improve: format messages with many links faster (#152112) perf(cron): avoid unused SQL binding in config projections (#152029) fix: explain cloud worker startup failures (#152043) refactor(discord): share Markdown edit projection (#149214) refactor(media): remove unreachable geometry metadata backfills (#149272) chore(autoreview): sync mirror to agent-skills a7e91e1 (#152039) fix(ui): restore sidebar and chat test collection (#152099) fix(clickclack): finish SQLite cleanup between persistence tests (#152061) fix(workboard): isolate board deletion from unrelated subscriptions (#152102) refactor(agents): unify tool availability and plugin work ownership (#152073) fix: session group moves lag while requests are pending (#151689) fix(agents): preserve active cleanup during requester settlement (#151907) perf(sessions): keep deletion responsive under disk pressure (#152092) fix: preserve successful direct replies without serializing bookkeeping keys (#151870) ...
…pr-149282-proof-20260918 * refs/remotes/origin/main: fix(clickclack): finish SQLite cleanup between persistence tests (#152061) fix(workboard): isolate board deletion from unrelated subscriptions (#152102) refactor(agents): unify tool availability and plugin work ownership (#152073) fix: session group moves lag while requests are pending (#151689) fix(agents): preserve active cleanup during requester settlement (#151907) perf(sessions): keep deletion responsive under disk pressure (#152092) fix: preserve successful direct replies without serializing bookkeeping keys (#151870) fix(gateway): keep the previous plugin generation serving when a replacement stalls on admitted work (#151273) fix(agents): resume parent tasks after provider retries (#151879) perf(skills): silence identical collisions across workspaces (#152062) fix: reduce Doctor preparation time for large fleets (#151366) perf(ui): reuse session snapshots for roster updates (#152067) perf(tasks): skip SQLite admission for transient agent events (#152088) fix: await initial task persistence before Gateway activation (#151634) test: keep Vitest prototype ownership on execFile mocks (#152064) fix(pr): recover interrupted checkouts and isolate allocation state (#152069) fix(test): keep quota observer armed during Codex prewarm (#152090) fix(cron): keep scheduled jobs alive after their creating request ends (#152051) refactor(shared): reduce immutable graph traversal allocations (#152077)
…penclaw#152102) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Deleting an empty Workboard board unnecessarily loads subscriptions for every board and can fail when an unrelated board has a malformed subscription.
User Impact
Board deletion reads and decodes only that board's subscriptions. Unrelated malformed subscriptions no longer block deletion and remain untouched. Selected-row validation, deletion order, default/nonempty-board refusals, and existing partial-write behavior remain unchanged.
Why This Change Was Made
Pass the board ID to the existing scoped subscription reader: one production-line change plus an extension of the existing deletion test, moved intact into the existing subscription-scope suite to satisfy the file-length limit. This adds no schema, index, transaction, or retention change.
Evidence
cc4e89a3070e77d93c79ea794f4f474ce082fbc3: the board flow with 1,000 unrelated and three selected subscriptions returned/decoded 3 rows instead of 1,003. Facade JSON size fell from 213,625 to 625 bytes, with the same three ordered deletes. Subscription enumeration remains one call and one SELECT in both versions; this reduces transferred/materialized payload, not query count.tbx_01m2tzach3qtqk4zak2ssb230s, run 35385248781. Source and dependency pins remained unchanged; the lease stopped successfully and its controller joined with exit 0. Together with the first 16 retained checks, all 26 selected checks passed. Exact published-head CI run 35386522648 passed. The final ClawSweeper review found no actionable findings.