Skip to content

fix(release): backport backup, Linux, database, and macOS repairs to 2026.10.10 - #181464

Merged
RomneyDa merged 8 commits into
release/2026.10.10from
tideclaw/release-remediation-2026-10-23-beta
Oct 23, 2026
Merged

RomneyDa merged 8 commits into
release/2026.10.10from
tideclaw/release-remediation-2026-10-23-beta

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

Consolidated beta remediation for the active release/2026.10.10 line.

The beta line predates the final mixed-agent host test installer, so the production #179320 settlement repair is covered through its branch-native broker and existing execution suites instead of importing an incompatible main-only fixture.

Validation

  • snapshot sanitizer: 4 passed
  • worker broker settlement: 7 passed
  • changed TypeScript formatting: passed
  • changed TypeScript type-aware lint: passed
  • Linux Rust and macOS Swift runtime validation: CI authoritative

Co-authored-by: RomneyDa [email protected]

wangmiao0668000666 and others added 6 commits October 23, 2026 07:13
…#164297)

Snapshot sanitization replaced any policy the strict persisted parser rejected
with a fail-closed deny-all document, so a backup taken before `doctor --fix`
migrated an older but supported policy lost its allowlist. Restoring the archive
installed deny-all instead of the saved rules.

Fall back to the legacy parser Doctor already uses, which converts the older
shape (agents.default, missing ids, commandText) into the current
representation, and keep fail-closed for genuinely malformed rows.

(cherry picked from commit e68d50a)
Co-authored-by: RomneyDa <[email protected]>
…y restart (#158908)

* fix(linux): saved Gateway dashboards need pairing approval after every restart

Saved Gateway dashboards were built as incognito WebKit views, so the
Control UI lost its browser device identity and paired device token on
every switch and restart, and the Gateway asked for approval again.

Give each saved Gateway its own private WebKit data directory, keyed by
the credential namespace and profile id, matching the per-profile
website data store on native macOS. Storage for Gateways that are no
longer saved is deleted at the next launch, because WebKitGTK keeps a
data directory in use until the app exits.

Closes #156945

* fix(linux): removed Gateway saved again must pair a fresh dashboard

Dashboard storage was keyed by the endpoint-derived profile id, so
removing a Gateway and saving the same address again in one session
reopened the removed profile's storage and its paired device token.

Each saved profile now records a random storage id when it is first
saved. Renames and credential edits keep it; removal drops it, so the
same endpoint saved again gets new storage and must pair again.
Profiles saved before this change fall back to a stable key. Storage
helpers are compiled only where they are used, and the symlink test is
Unix-only so Windows test builds compile.

(cherry picked from commit c65a353)
Co-authored-by: RomneyDa <[email protected]>
A revoked maintenance caller must not retire the shared native generation
retained by another admitted reply. Remove the maintenance-specific forced
retirement and its unused preparation option. This follows #175778's intended
contract: one stopped read-only preparation is owned by the worker until its
next preparation, metadata cleanup, or ordinary close.

Keep hard physical-owner loss distinct. On an exceptional execution exit,
check the captured canonical native file and join its retirement if that file
was replaced or disappeared. Caller aliases cannot select a different target
for this cleanup. Existing native-failure and accepted-work settlement remain.

Extend the existing refusal cases to hold and read an independent admission.
The caller-revocation case previously produced the same lost-native-owner
signature as hourly 39085230454. The original hourly initialization failure
has not been reproduced, so its exact triggering event remains unconfirmed.

(cherry picked from commit 30b7adf)
Co-authored-by: RomneyDa <[email protected]>
Fixes PostgreSQL agent-opening refusals retiring peer borrowers after an opening lease has already committed.

The caller receives its original refusal, its lease is removed after native exit, and peers can retry. A refusal before native open preserves SQLite's clean-restart seal. Unknown outcomes and genuine native or cleanup failures retain their existing invalidation and retirement behavior.

This is the explicitly separated opening-refusal follow-up to merged #179230. Producer parity alone cannot fix this outcome: the refused worker tries to release its lease in a new shared-state transaction under its already-refused operation. PostgreSQL correctly rejects that transaction, replacing refusal provenance and making settlement unknown.

Prepared workers now defer pre-open refusal cleanup to the existing host-owned `cleanupRetiredAgentDatabaseLease` / `agentDatabases.releaseExitedLease` path after native exit. That existing command carries the host's typed `refused-before-open` or `unknown` outcome. The lease owner still validates and deletes the exact lease; it preserves verification only for the explicit pre-open refusal. Missing facts never establish refusal.

This field is an internal message between processes of the same build. No public SDK/plugin contract, persisted format, schema, configuration, version, or successful-open ownership changes. Synchronous opens retain their cleanup. The PG current-operation refusal guard and native `!captured.committed` classification remain unchanged. No dedicated cleanup command was added.

Lazy `database.prepareWrite` now retains the refusal wrapper until the existing worker reply owner serializes the original error and typed outcome. The existing refusal reply branch handles factory and lazy opens, records the outcome for the matching actor after admission cleanup, and clears it before later dispatch can touch native state. Host cleanup reads the outcome only after native retirement. This resolves the accepted review finding without reusing an earlier request’s custody.

Author simplification retains one cleanup owner and one command. The full PR has +62/-44 production lines, +117/-3 test/registry lines, and seven documentation lines. The repair strengthens the two existing real refused-open seal regressions with original-error and no-operation assertions; the broker fixture only adopts the existing actor outcome state.

| Contract | RED | GREEN / candidate status |
| --- | --- | --- |
| PG refusal after committed opening lease preserves peer | Main-source baseline 39562254889/job119096566538; producer parity alone still RED in 39568439138/job119116916734 | Final head3643 passes both real engine cases in [39599121710/job119219532025](https://github.com/openclaw/openclaw/actions/runs/39599121710/job/119219532025): SQLite2,275ms, PG2,832ms |
| SQLite clean-restart seal survives refused open, both preparation modes | Previous head48ad,39576377942/job119143384085: both cases fail at line74 with missing `.seal` | [Final CI/job119219533530](https://github.com/openclaw/openclaw/actions/runs/39599121710/job/119219533530): both cases PASS (prepared false560ms / true470ms) |
| Exact lease removal, original refusal, no user operation, successful peer write | Real production worker/store sequence, independently confirms committed lease; no fabricated receipt | PASS in the final PG conformance regression |
| Synchronous owner and genuine cleanup-failure retirement | Existing authority/integrity/lease-owner contracts | Existing local63PASS/1opt-in SKIP, new local22PASS; all affected owner/transport suites passed final CI |

All three PostgreSQL conformance shards actually executed and passed on final head `3643c3c5bb50878de0fb97858b2b11420cecface` in [CI39599121710](https://github.com/openclaw/openclaw/actions/runs/39599121710): [1/3](https://github.com/openclaw/openclaw/actions/runs/39599121710/job/119219532025), [2/3](https://github.com/openclaw/openclaw/actions/runs/39599121710/job/119219532043), [3/3](https://github.com/openclaw/openclaw/actions/runs/39599121710/job/119219531982). Logs confirm all14 producer/bootstrap/preferences/peer cases ran, plus both SQLite seal regressions. All required checks, type/lint/source contracts, and affected SQLite suites passed. No CI exception or rule bypass is needed.

Formatting and final targeted type-aware lint passed. Both complete-diff Codex P0–P2 reviews completed clean, including the final shared refusal branch consolidation. Local registration/synchronous-authority suites passed22 cases; the next infra carrier blocked on host I/O before cases and was cancelled, exit143, with children joined and slot released. Final CI supplies the remaining runtime proof. The prior48ad run exposed the real seal regression; it was fixed rather than weakened or relabeled. The draft synchronize run skipped CI and is excluded from proof.

No latency or throughput claim is made. The production peer regression takes about5.1s for both engines in final CI; the two existing SQLite seal cases take about1.0s together. No public SDK/plugin, persisted-format, schema, configuration, or successful-open ownership change is introduced.

(cherry picked from commit 8cd9bf2)
Co-authored-by: RomneyDa <[email protected]>
…81389)

* fix(macos): show actual bundled Gateway status and recovery

* fix(macos): keep pending Gateway recovery actionable

---------

Co-authored-by: Scott Hanselman <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
(cherry picked from commit bd36d90)
Co-authored-by: RomneyDa <[email protected]>
The beta line predates the mixed-agent host installer used by the upstream PostgreSQL conformance fixture. Keep the production settlement repair and its broker coverage without importing a test harness that cannot boot on this branch.

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

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos scripts Repository scripts app: linux plugin: linux-node size: L labels Oct 23, 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 23, 2026
@RomneyDa
RomneyDa merged commit 0ed1dd1 into release/2026.10.10 Oct 23, 2026
34 checks passed
@RomneyDa
RomneyDa deleted the tideclaw/release-remediation-2026-10-23-beta branch October 23, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: linux app: macos App: macos 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 plugin: linux-node scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants