Skip to content

fix(workboard): prevent orphaned runs and overwritten cards - #125951

Merged
steipete merged 3 commits into
mainfrom
steipete/reverent-thompson-931196
Aug 18, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/reverent-thompson-931196

Conversation

@steipete

@steipete steipete commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #125932

What Problem This Solves

Fixes an issue where Workboard operators could see accepted worker runs reported as failed, lose concurrent card moves or lifecycle updates when saving an older editor draft, or capture duplicate cards for one dashboard session when multiple Control UI or Gateway hosts acted concurrently.

Why This Change Was Made

The repair moves ownership to durable boundaries instead of compensating in the browser:

  • Workboard persists deterministic launch intent before external worker acceptance, carries the Gateway's canonical accepted session and run identity, and treats post-acceptance enrichment as best effort.
  • SQLite card writes use revision compare-and-swap, including an atomic per-owner claim check. The editor sends sparse conditional patches and explicitly rebases conflicts while retaining unsaved operator fields.
  • Session capture uses a deterministic store identity and atomic insert-if-absent, so independent hosts and board selections converge on one active card.
  • Dashboard starts route through the same server-owned admission and launch path as scheduled dispatch.

No SQLite schema, migration, or Gateway protocol-version change is required. The PluginRuntime addition is backward-compatible: Gateway-backed subagent runs now return the canonical accepted sessionKey, while custom runtimes may omit it.

This PR is AI-assisted. The implementation, tests, runtime contracts, and final diff were reviewed directly by the maintainer.

User Impact

Workboard now gives operators a consistent outcome under concurrent or partially failing operations:

  • accepted work remains visible and linked instead of becoming an apparent failed start;
  • card edits cannot silently overwrite newer authoritative state;
  • conflict resolution keeps the latest move/lifecycle facts and the operator's unsaved edits;
  • simultaneous session captures produce one card;
  • dashboard starts honor global worker-capacity and card-eligibility rules.

Evidence

Visual proof

Before: Workboard card before opening the editor.

Workboard before

After: the real Control UI editor running against the deterministic mocked Gateway fixture.

Workboard editor

workboard-edit-flow.mp4

Focused proof

  • node scripts/run-vitest.mjs extensions/workboard/src/store.test.ts --reporter=dot — 129 passed
  • Workboard dispatcher, races, Gateway, and lifecycle suites — 228 passed
  • Control UI Workboard unit/view suites — 257 passed
  • Real Chromium Workboard E2E suite — 8 passed
  • node scripts/run-vitest.mjs src/gateway/server-plugins.test.ts --reporter=dot — 72 passed
  • pnpm docs:list and pnpm docs:check-mdx passed
  • pnpm check:changed passed
  • pnpm build passed
  • Codex autoreview on the final uncommitted diff reported no accepted/actionable findings

Change size

Production LOC: +988/-422 (net +566) | Tests: +919/-460 | Docs: +7/-5

The production growth is the durable concurrency boundary: transactional cross-host claims and capture, canonical accepted-run recovery, revision-fenced store writes, structured conflict propagation, and the UI rebase flow. The previous browser-owned autonomous launch choreography was deleted, and shared SQLite transaction and owner-capacity policy were reused to keep the repair coherent.

Persist launch intent before worker acceptance, reconcile accepted identities,
fence cross-host card mutations, and deduplicate session capture in SQLite.

Closes #125932
@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime plugin: file-transfer plugin: workboard size: XL maintainer Maintainer-authored PR labels Aug 18, 2026
@steipete
steipete marked this pull request as ready for review August 18, 2026 18:37
@steipete steipete self-assigned this Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 18, 2026, 3:55 PM ET / 19:55 UTC.

ClawSweeper review

What this changes

This PR moves Workboard launch and card concurrency handling to Gateway and SQLite, adds conditional UI edits, and returns the accepted session identity from Gateway-backed subagent runs.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked by patch quality or review findings - 7 items remain

Keep open: both prior race findings remain on the current head, so the PR still permits an old lifecycle event to terminalize a newer run and can reject a concurrent archived-session restore.

Priority: P1
Reviewed head: 4e366457fe1b536cd6e8ca97cc9f7b7b2ef5cff2

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The branch has useful owner-boundary work, but two central concurrent-state regressions remain unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its mock-Gateway Chromium media supports the UI flow but does not resolve the remaining store-race findings.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its mock-Gateway Chromium media supports the UI flow but does not resolve the remaining store-race findings.
Evidence reviewed 6 items Terminal status remains unfenced: The lifecycle patch assigns terminal status before checking whether the matched session/run association is still current; only association enrichment is gated afterward.
Race test misses the observable failure: The new newer-attempt race test asserts the replacement identity but not that its card and execution remain running, so the erroneous review/blocked status passes.
Archived capture does not converge after CAS loss: Concurrent hosts can both read the archived deterministic card; the loser of the single conditional restore throws instead of rereading and returning the active winner.
Findings 2 actionable findings [P1] Fence terminal status by the current association
[P2] Converge archived capture after a CAS loss
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-status-persistence.e2e.test.ts --reporter=dot

Result: FAIL (partial) — step 2 expect_output Control UI Workboard status persistence E2E: expected terminal output was not visible within 30 seconds: "Control UI Workboard status persistence E2E"

node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-status-persistence.e2e.test.ts --reporter=dot
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125951-Tun4e0/target$ node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-status-persistence.e2e.test.
ts --reporter=dot
[test] starting test/vitest/vitest.ui-e2e.config.ts
[test] preflight test/vitest/vitest.ui-e2e.config.ts
node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-status-persistence.e2e.test.ts --reporter=dot
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
|                                                                                |   0% of 2.3 MiB
|■■■■■■■■                                                                        |  10% of 2.3 MiB
|■■■■■■■■■■■■■■■■                                                                |  20% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.3 MiB
FFmpeg (playwright ffmpeg v1011) downloaded to /tmp/clawsweeper-live-proof-125951-Tun4e0/profile/cache/ms-playwright/ffmpeg-1011

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125951-Tun4e0/target

··

 Test Files  1 passed (1)
      Tests  2 passed (2)
   Start at  19:56:34
   Duration  15.63s (transform 416ms, setup 80ms, import 779ms, tests 6.11s, environment 0ms)

[test] passed 1 Vitest shard in 21.69s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-125951-Tun4e0/target$ node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-status-persistence.e2e.test.
ts --reporter=dot
[test] starting test/vitest/vitest.ui-e2e.config.ts
[test] preflight test/vitest/vitest.ui-e2e.config.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-125951-Tun4e0/target













Assertions:

  • FAIL expect_output: Control UI Workboard status persistence E2E

How this fits together

Workboard turns dashboard cards into worker runs and persists their lifecycle in SQLite. Control UI and scheduled dispatch enter through Gateway methods, which launch workers and update cards for operators.

flowchart LR
UI[Control UI] --> Gateway[Gateway workboard methods]
Scheduler[Scheduled dispatch] --> Admission[Launch admission]
Gateway --> Store[SQLite card store]
Admission --> Store
Admission --> Worker[Subagent run]
Worker --> Lifecycle[Lifecycle events]
Lifecycle --> Store
Loading

Before merge

  • Fence terminal status by the current association (P1) - An old terminal event can match before another host replaces the card association; on the retry this code still writes status before associationIsCurrent is checked, so the newer running run becomes review or blocked. Gate the status/source metadata with that association and make the existing race test retain running.
  • Converge archived capture after a CAS loss (P2) - Two hosts restoring the same archived deterministic capture both read its old revision. The first restore succeeds, but the second conditional update throws instead of rereading the now-active winner; the fresh-insert path already has this convergence behavior. Retry/read the winner and cover the two-host archived case.
  • Resolve merge risk (P1) - An old terminal event can still mark a newer running card as review or blocked.
  • Resolve merge risk (P1) - Concurrent restoration of an archived captured session can surface a conflict instead of converging to one active card.
  • Resolve merge risk (P1) - The bug fix remains production-net-positive (+560 lines) while two central concurrency paths are incomplete.
  • Improve patch quality - Make the lifecycle race assertion prove that the newer card and execution stay running.
  • Improve patch quality - Add a two-SQLite-host archived-capture restore race that returns one active card from both calls.

Findings

  • [P1] Fence terminal status by the current association — extensions/workboard/src/store.ts:160-166
  • [P2] Converge archived capture after a CAS loss — extensions/workboard/src/store-core.ts:540-547
Agent review details

Security

None.

PR surface

Source +560, Tests +428, Docs +2. Total +990 across 35 files.

View PR surface stats
Area Files Added Removed Net
Source 23 982 422 +560
Tests 10 888 460 +428
Docs 2 7 5 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 35 1877 887 +990

Review metrics

Metric Value Why it matters
Production versus test delta production +560 net; tests +421 net The substantial concurrency-boundary growth needs the two remaining owner-boundary races resolved before its stated justification is complete.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/workboard/src/lifecycle-sync.test.ts, serialized state: extensions/workboard/src/dispatcher-ownership.test.ts, serialized state: extensions/workboard/src/persistence-types.ts, serialized state: ui/src/lib/workboard/card-state.ts, vector/embedding metadata: extensions/workboard/src/dispatcher-ownership.test.ts, vector/embedding metadata: extensions/workboard/src/dispatcher.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125932
Summary: This PR is the candidate fix for the linked Workboard concurrency report, but its remaining race defects are within the same root-cause boundary.

Members:

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

Merge-risk options

Maintainer options:

  1. Repair the remaining durable races (recommended)
    Fence terminal lifecycle status and stale metadata by the current association, then converge archived-capture CAS losses by returning the persisted winner.
  2. Pause the branch
    Pause if the repair cannot preserve a single durable owner boundary without expanding the Workboard lifecycle contract.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Gate terminal lifecycle status and stale writes by the current session/run association; after an archived capture CAS conflict, reread and return the active deterministic winner; add two-host regression coverage.

Technical review

Best possible solution:

Centralize both outcomes at the durable owner: fence all terminal lifecycle effects by the current association, and reread the deterministic archived-capture winner after a CAS loss.

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

Yes—source inspection establishes deterministic interleavings for both failures, although this read-only review did not execute the suites.

Is this the best way to solve the issue?

No—the durable-boundary direction is sound, but the two remaining CAS/lifecycle paths leave the reported invariant incomplete.

Full review comments:

  • [P1] Fence terminal status by the current association — extensions/workboard/src/store.ts:160-166
    An old terminal event can match before another host replaces the card association; on the retry this code still writes status before associationIsCurrent is checked, so the newer running run becomes review or blocked. Gate the status/source metadata with that association and make the existing race test retain running.
    Confidence: 0.99
  • [P2] Converge archived capture after a CAS loss — extensions/workboard/src/store-core.ts:540-547
    Two hosts restoring the same archived deterministic capture both read its old revision. The first restore succeeds, but the second conditional update throws instead of rereading the now-active winner; the fresh-insert path already has this convergence behavior. Retry/read the winner and cover the two-host archived case.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6f8e5d907815.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P1: A delayed lifecycle event can still produce an incorrect terminal state for an active Workboard run.
  • merge-risk: 🚨 compatibility: The PR changes documented PluginRuntime subagent results and Gateway-backed Workboard RPC behavior.
  • merge-risk: 🚨 session-state: The remaining defects affect persisted card/session associations and lifecycle state under concurrent hosts.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is outside the external-contributor proof gate; its mock-Gateway Chromium media supports the UI flow but does not resolve the remaining store-race findings.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs extensions/workboard/src/lifecycle-sync.test.ts extensions/workboard/src/store.test.ts --reporter=dot.
  • [P1] node scripts/run-vitest.mjs extensions/workboard/src/gateway.test.ts --reporter=dot.
  • [P1] node scripts/run-vitest.mjs ui/src/pages/workboard/workboard-status-persistence.e2e.test.ts --reporter=dot.
  • [P1] pnpm check:changed.

What I checked:

  • Terminal status remains unfenced: The lifecycle patch assigns terminal status before checking whether the matched session/run association is still current; only association enrichment is gated afterward. (extensions/workboard/src/store.ts:160, 4e366457fe1b)
  • Race test misses the observable failure: The new newer-attempt race test asserts the replacement identity but not that its card and execution remain running, so the erroneous review/blocked status passes. (extensions/workboard/src/lifecycle-sync.test.ts:800, 4e366457fe1b)
  • Archived capture does not converge after CAS loss: Concurrent hosts can both read the archived deterministic card; the loser of the single conditional restore throws instead of rereading and returning the active winner. (extensions/workboard/src/store-core.ts:542, 4e366457fe1b)
  • Persistent CAS is authoritative: The SQLite store returns false when the stored updated timestamp differs, establishing the conflict path that archived capture must converge through. (extensions/workboard/src/sqlite-store.ts:1220, 4e366457fe1b)
  • Plugin runtime addition is additive: The new sessionKey result is optional for custom runtimes, while Gateway-backed runs return the admission-phase canonical key; the SDK docs and focused gateway test agree. (src/plugins/runtime/types.ts:38, 4e366457fe1b)
  • Current-main comparison and provenance: Current main still has the earlier lifecycle implementation without association fencing, so it does not supersede this PR; blame attributes the current proposed race code to the PR head author. (extensions/workboard/src/store.ts:55, 6f8e5d907815)

Likely related people:

  • steipete: The current head’s Workboard lifecycle and race-test lines blame to this PR head, and feature history shows the strongest contribution count on the central files. (role: current Workboard repair author and primary historical contributor; confidence: high; commits: 4e366457fe1b, 1edc7ca229cd; files: extensions/workboard/src/store.ts, extensions/workboard/src/store-core.ts, extensions/workboard/src/lifecycle-sync.ts)
  • Vincent Koc: Feature-history shortlog shows repeated contributions across the store and lifecycle area, making this a useful secondary routing contact. (role: historical Workboard contributor; confidence: medium; files: extensions/workboard/src/store.ts, extensions/workboard/src/store-core.ts, extensions/workboard/src/lifecycle-sync.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-18T18:47:12.811Z sha 1edc7ca :: found issues before merge. :: [P1] Fence terminal lifecycle state by the current association | [P2] Converge archived session capture after a CAS loss

Use a plugin-local synchronization helper and update the sessions-page capture
expectation for the new store-owned RPC.
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 18, 2026
Apply terminal lifecycle state only while the matched association is current,
and converge concurrent archived session restores on the active winner.
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready evidence for #125951 at exact head a512a604e9ef43066091079094468db913a76d5b.

CI is green at the exact head: run 32182979407. The native agent prepare completed successfully with OPENCLAW_TESTBOX=1 in hosted_exact_or_recent_parent mode at 2026-08-18T20:48:32Z. It reused that exact-head hosted run; the prepare artifacts recorded Blacksmith Testbox as not applicable and therefore contain no separate Testbox lease/run ID or URL.

Focused final proof after the review fixes:

  • lifecycle-sync.test.ts + store.test.ts: 187 passed.
  • gateway.test.ts: 9 passed.
  • Real Chromium workboard-status-persistence E2E: 2 passed.
  • Scoped check-changed for the four review-fix files passed.
  • Final Codex autoreview: clean, with no accepted/actionable findings.

Earlier complete proof also passed: pnpm build, pnpm check:changed, 129 store tests, 228 dispatcher/race/Gateway/lifecycle tests, 257 Control UI Workboard unit/view tests, 8 Workboard Chromium E2E tests, 72 Gateway plugin-runtime tests, pnpm docs:list, and the MDX check.

CI history was investigated rather than bypassed. Initial exact-head predecessor run 32172015619 exposed attributable extension-boundary and sessions-page stale-expectation failures; those product/test integration gaps were fixed in 4e366457fe1b536cd6e8ca97cc9f7b7b2ef5cff2. Run 32178613502 then hit an actions/checkout codeload HTTP 429 infrastructure failure; its failed-job rerun went green.

ClawSweeper's P1 lifecycle-association fence and P2 archived-capture convergence findings were both applied in the exact head. The regression coverage now proves stale terminal events cannot close replacement runs and concurrent archived restorations converge on the durable active winner. No rank-up move was skipped.

Judged LOC against the merge base: production +988/-422 (net +566), tests +919/-460, docs +7/-5. The production growth is justified by moving launch, lifecycle association, conditional edits, and cross-host capture ownership into the Gateway/SQLite boundary while removing the browser-owned launch path.

Best-fix verdict: best. The repair records accepted identity at its producer and serializes mutable state at the durable Gateway/SQLite owner. A downstream retry would still permit an accepted worker to become orphaned; browser-local dedupe cannot coordinate multiple Gateway hosts; and retaining browser-owned launch would preserve the split ownership that caused the races.

Known proof gap: the Gateway ownership races are proven with a mocked Gateway and two-connection SQLite coverage, not an authenticated live multi-process Gateway deployment. The exact-head CI, owner-boundary race suites, Gateway tests, and real Chromium UI flow cover the deterministic contract without representing that substitute as authenticated live proof.

@steipete
steipete merged commit 549e634 into main Aug 18, 2026
239 checks passed
@steipete
steipete deleted the steipete/reverent-thompson-931196 branch August 18, 2026 20:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
…#125951)

* fix(workboard): make ownership updates atomic

Persist launch intent before worker acceptance, reconcile accepted identities,
fence cross-host card mutations, and deduplicate session capture in SQLite.

Closes openclaw#125932

* test(workboard): keep race fixtures plugin-local

Use a plugin-local synchronization helper and update the sessions-page capture
expectation for the new store-owned RPC.

* fix(workboard): fence lifecycle and restore races

Apply terminal lifecycle state only while the matched association is current,
and converge concurrent archived session restores on the active winner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. plugin: file-transfer plugin: workboard rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Workboard concurrency can orphan runs and overwrite card state

1 participant