Repository navigation
fix(release): backport backup, Linux, database, and macOS repairs to 2026.10.10 - #181464
Merged
RomneyDa merged 8 commits intoOct 23, 2026
Merged
Conversation
…#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]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidated beta remediation for the active
release/2026.10.10line.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
Co-authored-by: RomneyDa [email protected]