Skip to content

fix(release): drain shared-state leases before retirement - #188778

Merged
RomneyDa merged 2 commits into
release/2026.10.10from
fix/release-2026.10.10-state-shutdown
Oct 30, 2026
Merged

RomneyDa merged 2 commits into
release/2026.10.10from
fix/release-2026.10.10-state-shutdown

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

Backport the production ownership repair from merged main #188496, adapted to the frozen stable broker API.

The Matrix FRV lane runs multiple isolated gateway scenarios concurrently. One scenario closing its process-wide SQLite broker could retire shared-state actors while a sibling was staging its isolated auth store, producing repeated auth profile store update failed: This operation was aborted failures. The same cleanup contention left E2EE scenario flows timing out.

This repair cancels disposable snapshot reads, fences fresh broker admission, and lets canonical shared-state cleanup release accepted leases before retiring actor bindings. Persisted formats and deadlines are unchanged.

Proof

  • Upstream fix: settle native workers in Gateway shutdown ownership order #188496 exact-head CI was green with Node/Bun ownership and shutdown regressions.
  • Stable adaptation applies the seven production/fixture files needed by the older broker; incompatible newer-main test layout is intentionally excluded.
  • Focused release proof: src/state/openclaw-state.worker.settlement.test.ts and src/infra/sqlite-readonly-worker.test.ts, 2 files / 29 tests passed.
  • Targeted state/logging typecheck passed.
  • oxfmt check passed on all 6 changed TypeScript files.
  • git diff --check passed.

Release impact

This changes C=Q and supersedes the prior candidate after merge. A fresh stable/all/soak FRV is required before publication.

Adapt merged main PR #188496 to the frozen stable broker API. Cancel disposable snapshot reads, fence fresh broker admission, and let canonical shared-state cleanup release accepted leases before retiring actor bindings.

(cherry picked from commit 83064b3)

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Oct 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S and removed size: XS labels Oct 30, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@RomneyDa
RomneyDa merged commit b95d0bb into release/2026.10.10 Oct 30, 2026
142 of 146 checks passed
@RomneyDa
RomneyDa deleted the fix/release-2026.10.10-state-shutdown branch October 30, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants