Skip to content

feat: update Companion-owned Gateway safely in place - #1049

Closed
TheAngryPit wants to merge 23 commits into
openclaw:mainfrom
TheAngryPit:codex/gateway-in-place-update-20260722
Closed

TheAngryPit wants to merge 23 commits into
openclaw:mainfrom
TheAngryPit:codex/gateway-in-place-update-20260722

Conversation

@TheAngryPit

@TheAngryPit TheAngryPit commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #901

Credit to @iamalin for originating and detailing the lock-step Gateway proposal in #901. This implementation preserves that direction and extends it with a recoverable in-place update transaction.

Thanks to @shanselman for identifying that routine full-VHD rollback would not scale for long-lived Gateways. The revised design keeps VHD protection explicit and uses OpenClaw's native verified backup for routine updates.

Stacked Dependency

This PR remains stacked conceptually on #999, which owns the package lifecycle, reload-schema, LKG, and setup/reconnect contracts consumed here. This PR adds the in-place update, protection, recovery, retention, and synchronization transaction.

After #999 lands, this branch should be rebased once onto main; the resulting diff should contain only the #901-specific update path. The current proof is intentionally frozen at this PR head rather than chasing unrelated upstream drift.

Problem

The Windows Companion can update while its Companion-owned WSL Gateway remains on the version installed during onboarding. This leaves the Tray, Windows node, and Gateway on a runtime combination that the installed Companion was not built or tested against.

The update must preserve the existing distro, agents, configuration, memory, channels, node identity, and ownership. It also needs a bounded rollback path that does not require routine full-distro exports on ordinary user machines.

Changed Behavior

  • Detects a Gateway version mismatch and offers an explicit in-place alignment operation.
  • Uses openclaw backup create --verify --json for routine protection.
  • Binds the host copy to the SHA-256 and byte size calculated inside WSL after native verification.
  • Uses a unique owner-checked 0700 staging directory and rejects symlink or ownership substitution.
  • Keeps Full VHD protection as an explicit compatibility or operator-selected path with capacity preflight.
  • Persists private idempotent receipts for update, recovery, rollback, and retention.
  • Binds Core completion to the Gateway identity recorded by the accepted transaction.
  • Resynchronizes the same Companion-owned Gateway and Windows node after update or recovery.
  • Defaults retention to one previous version plus seven days; users can retain one, two, or all previous points.
  • Preserves unresolved receipts and protection points instead of cleaning up ambiguous state.

User Impact

Users can align the Gateway owned by their installed Companion without recreating the distro or rerunning onboarding. Routine updates use a compact native backup rather than a full VHD export, while explicit VHD protection remains available where byte-for-byte rollback is required.

Any malformed receipt, identity mismatch, digest mismatch, insufficient VHD capacity, ambiguous installer outcome, or replacement Gateway record fails closed before the transaction is completed.

Non-Goals

  • no npm latest chasing;
  • no unattended update;
  • no onboarding rerun or routine distro recreation;
  • no remote Gateway management;
  • no change to the Windows executable updater;
  • no new credentials, permissions, channels, or authority plane;
  • no representation of a native backup archive as a directly restorable VHD.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Exact-Head Validation

Validated candidate: b571afe5900a9f11e26087bb33af0d4c5eb268d1

  • Native-backup focused tests: 15/15 passed
  • Native-backup and recovery focused tests: 30/30 passed
  • Complete Connection suite: 621 passed, 3 declared host reparse-capability skips, 0 failed
  • Tray suite before the final Connection-only hardening: 1,978/1,978 passed
  • Shared suite: 3,240 passed, 31 declared environment-dependent skips
  • Complete Release solution before the final Connection-only hardening: zero warnings and zero errors
  • git diff --check: passed; Windows line-ending notices only
  • Follow-up CI composition review: YAML parse passed; the workflow now composes frozen Core main 6277c35d9a97cb128d32ed7ab5632cfc4163c746 with exact PR #110382 head 6edc1e40f37b833ec0493ec331eba6cd49db4fb6; merged Core PR #111956 is consumed from main at 2296e898e13a5b250bf557e9632e000c093e61f1 rather than reapplied.
  • The full stacked Auto-review bundle was rejected before model invocation because it exceeded the helper's safe size limit; no truncated bundle was sent. Four of five rebased functional commits retain identical patch IDs. The new convergence delta was reviewed separately; its only finding referenced a workflow writer that is absent from the exact source and was rejected with direct source proof.

The final follow-up commit changes only the CI composition contract and one stale reparse-boundary expectation. The complete Connection suite was rerun afterward: 621 passed, 3 declared host reparse-capability skips, 0 failed.

Real Behavior Proof

  • A disposable OpenClawUpdateLab WSL target, not the operator Gateway, created a real OpenClaw native backup with --verify --json.
  • Host SHA-256 and size were read back, and a second official openclaw backup verify --json returned ok=true.
  • A disposable interrupted-update marker survived exact-distro termination; the delayed mutation did not execute; proof residue was removed.
  • Coordinator-level tests cover successful verified backup, update dispatch, exact post-update version, synchronization, healthy update.complete, retained protection metadata, and zero VHD terminate/export calls on the native path.
  • Failed-first Gateway-replacement proof confirms recovery sends no completion RPC and leaves the receipt unresolved when the current Gateway identity differs from the transaction identity.

The previous public CI run provided failed-first evidence: it reapplied Core PR #111956 after that change had already merged, used stale composed refs, and expected the later restore boundary even though the fixture is rejected earlier at the staging-root boundary. Those causes are corrected on the current head. The branch was then rebased onto #999 head f5958e2190e5484a40ce551783765c0637a1786a, which restores the 2026.7.1 minimum security floor and stable-only forward-update rule. Current-head GitHub Windows/WSL CI is running after publication.

Disposable full update-to-rollback runtime proof remains a pre-promotion gate; no operator runtime was mutated.

Security Impact

  • New permissions or capabilities? (No)
  • Secrets or tokens handling changed? (No)
  • New or changed network calls? (No; the existing pinned installer path is reused)
  • Command or tool execution surface changed? (Yes)
  • Data access scope changed? (No)

Mitigations:

  • explicit user confirmation before update;
  • native verified backup or capacity-checked explicit VHD protection before mutation;
  • SHA-256 and size binding across the WSL-to-host copy boundary;
  • private owner-checked staging and durable receipts;
  • distro ownership, machine identity, package target, Gateway identity, and node policy revalidated fail closed;
  • no silent downgrade;
  • no cleanup of unresolved recovery state.

Compatibility And Migration

  • Backward compatible? (Yes)
  • Config or environment changes? (Yes)
  • Migration needed? (No)

Existing settings default to native verified backup, one retained previous version, and a seven-day retention window. Schema v3 rollback receipts remain readable as Full VHD protection. Existing Companion-owned Gateway records keep the same distro, identity, and connection ownership.

The ordinary package fallback is inherited from #999: 2026.7.1 is the minimum security floor and may advance only to a strictly newer official stable release. Composed packages continue to use exact immutable metadata.

Review Conversations

  • Incorporated the maintainer storage-scaling feedback.
  • Addressed accepted scoped review findings in the same update/backup/recovery boundary.
  • Rebasing preserved fix(setup): validate current OpenClaw package lifecycle #999's secure LKG floor and kept composed package selection separate.
  • Left only decisions and proof gates that require current-head CI or maintainer judgment.

Agent Transcript

Redacted operator/agent design and implementation timeline

This is a bounded reconstruction from the local Codex sessions used for this PR. It omits raw logs, private paths, credentials, unrelated work, and internal reasoning. Discussion records design provenance; the validation sections above remain the proof authority.

1. Destination locked by the operator

  • The operator required a real in-place update of the existing Companion-owned OpenClawGateway, not a replacement distro or a parallel Linux install.
  • The required invariant was that the Companion, distro identity, Gateway state, node relationship, and rollback path survive the update as one continuous installation.
  • The operator also required rollback to at least the previous version and asked that retention eventually be understandable and controllable by ordinary users.

2. First design and challenge

  • The initial implementation protected every update with a full VHD export because it offered a strong whole-distro rollback boundary.
  • Scott Hanselman's review challenged that default: a live distro plus one retained VHD can approach two copies at steady state, while the next update can temporarily approach three. He also identified the absence of a proportional free-space preflight before stopping the distro.
  • The operator explicitly accepted the critique rather than defending the original patch: the design needed to work for machines without abundant spare storage, and the response should treat the reviewer as a teammate improving the solution.

3. Alternatives debated

  • Keep mandatory VHD rollback for every update: rejected as disproportionate for the routine path.
  • Remove whole-distro recovery entirely: rejected because incompatible migrations and high-protection operator choices still need that boundary.
  • Rely only on package rollback: rejected because package rollback alone does not protect mutable Gateway state.
  • Layer protection by risk: accepted.

4. Contract selected

  • Routine updates use the official staged package rollback together with a native openclaw backup create --verify state backup.
  • Full VHD protection is reserved for incompatible migrations or an explicit higher-protection choice and must pass capacity checks.
  • Retention is bounded by version count and age rather than growing indefinitely.
  • Update completion requires the same persisted Gateway identity to return healthy and synchronized; recovery cannot silently bind to a replacement record.

5. Implementation and failed-first evidence

  • Focused review and tests exposed receipt ambiguity, retry target substitution, concurrent receipt adjudication, installer-start uncertainty, cleanup races, host-copy integrity, predictable staging, and Gateway-record replacement.
  • Each accepted defect was fixed at the boundary that owned it rather than by adding a parallel updater or compatibility wrapper.
  • The native backup crossing WSL to Windows is bound to the WSL-produced SHA-256 and byte size after OpenClaw verification.
  • Interrupted and failed updates retain unresolved recovery state instead of claiming completion or deleting the only rollback material.

6. Proof and current boundary

  • Disposable WSL proof exercised native backup creation and independent verification without using the operator Gateway.
  • The complete Connection suite passed after the final correction. The full stacked review bundle exceeded the safe helper limit; unchanged rebased commits were identified by patch ID and the new convergence delta was reviewed separately.
  • The previous public CI failure exposed stale composition and one stale expected boundary; the rebased current head b571afe5900a9f11e26087bb33af0d4c5eb268d1 preserves those corrections and aligns with fix(setup): validate current OpenClaw package lifecycle #999's security-floor decision.
  • Remaining gate: current-head GitHub CI plus disposable full update/rollback runtime proof. The operator runtime, private data, credentials, and channels were not used as the iterative lab.

@shanselman

Copy link
Copy Markdown
Collaborator

Bot perspective: I think the full-VHDX rollback strategy may be operationally untenable for routine Gateway updates.

Every update runs wsl --export ... --vhd, creating another complete dynamic VHDX. With the default retention of one point, steady-state storage can approach the live distro plus one full rollback copy. During the next update, the live VHDX, retained rollback, and newly exported rollback can temporarily approach three copies of the distro's allocated data. Failed or recovery-pending transactions intentionally retain their copy as well.

I also could not find a free-space preflight before the distro is stopped and export begins. On a machine with limited storage, that means an otherwise routine Gateway package update can consume many gigabytes, fill the system drive, and fail after disrupting the running Gateway.

Could we reconsider whether a complete VHDX is proportionate for every update? A safer layered policy might be:

  1. For normal package updates, use the official updater's staged package rollback plus openclaw backup create --verify for Gateway state.
  2. Reserve full VHDX recovery points for migrations known to change incompatible state or schemas.
  3. If full VHDX remains mandatory, estimate the live VHDX size, require sufficient free space plus a safety margin before stopping WSL, show the expected storage cost in the confirmation UI, and prune eligible old points before export without deleting the latest known-good point.
  4. Surface total rollback storage and provide an explicit cleanup action.

What failure model requires a byte-for-byte distro copy for every package update, and is that benefit worth the potentially 2x steady-state and 3x transient storage cost on ordinary user machines?

@TheAngryPit
TheAngryPit force-pushed the codex/gateway-in-place-update-20260722 branch 2 times, most recently from 4e4ad7d to 64eb7b2 Compare July 23, 2026 21:49

TheAngryPit commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks, Scott @shanselman . You're right about the storage model.

We optimized for the strongest possible rollback on machines with plenty of disk and made the most expensive recovery path routine. That does not scale to a normal user machine, especially as the Gateway distro grows over time.

We'll rework this into layered rollback:

  • Routine package updates will use the official updater's staged package rollback plus openclaw backup create --verify for Gateway state.
  • Full VHDX recovery points will be reserved for migrations that can change incompatible distro or schema state, or when the user explicitly asks for that level of protection.
  • Any VHDX path will estimate the required space, enforce a safety margin before stopping WSL, show the expected cost in the confirmation UI, and prune eligible old points without deleting the latest known-good point.
  • Settings will show total rollback storage and provide an explicit cleanup action.

For retention, our current direction is to keep the latest verified pre-update recovery point until the next update is healthy, then apply a seven-day grace period by default. Users will be able to choose a longer window or indefinite retention.

Before changing the implementation, we'll verify that the official staged rollback works with the exact pinned package used by the Companion and document precisely what the native backup includes and excludes. If either leaves a recovery gap, we'll map that gap to the specific cases that still need a VHDX instead of requiring one for every update.

This is a better design. Thanks for catching it before we shipped the expensive path as the default.

@TheAngryPit
TheAngryPit force-pushed the codex/gateway-in-place-update-20260722 branch from 64eb7b2 to c886914 Compare July 25, 2026 04:31
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 25, 2026
@clawsweeper

clawsweeper Bot commented Jul 25, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 1:57 PM ET / 17:57 UTC.

ClawSweeper review

What this changes

This PR adds a user-confirmed workflow to align a setup-managed local WSL Gateway with the Companion's required version, protect state before mutation, recover failures, and reconnect the Gateway and Windows node.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 8 items remain

Keep this PR open because current main still only installs a pinned Gateway during setup and keeps the local WSL distro alive; it does not detect, update, recover, or retain rollback points for a Companion-owned Gateway. The PR remains unsafe to merge as submitted because it bundles the unresolved package-lifecycle and composed-package work from #999 with the in-place update feature, and its own body says the full disposable update-to-rollback runtime proof is still pending.

Priority: P2
Reviewed head: 29bb8adfccf36e7740169a91aa8e8d3df5dc955f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation has substantial test intent, but unresolved stack ownership and missing end-to-end real behavior proof prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR describes partial disposable native-backup and interruption checks, but explicitly leaves a full current-head update-to-rollback runtime proof pending and provides no inspectable artifact that demonstrates update, recovery, and Gateway plus Windows-node reconnection together. Add redacted live output, logs, or a recording and update the PR body for automatic re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR describes partial disposable native-backup and interruption checks, but explicitly leaves a full current-head update-to-rollback runtime proof pending and provides no inspectable artifact that demonstrates update, recovery, and Gateway plus Windows-node reconnection together. Add redacted live output, logs, or a recording and update the PR body for automatic re-review.
Evidence reviewed 6 items Current main has no alignment transaction: The current keepalive service only verifies that the setup-managed local distro exists and starts a detached sleep infinity process. It has no version probe, user confirmation, installer dispatch, rollback receipt, or recovery path.
Current setup remains install-time pinning: GatewayLkgVersion still assigns the install-time LKG 2026.6.11 when setup configuration has no version. Current main therefore does not implement the requested follow-up in-place alignment behavior.
Main preserves a narrower keepalive ownership boundary: The current tray contract test requires App to compose the dedicated keepalive service rather than duplicate its logic. The proposed feature correctly needs a separate focused owner, but the branch also expands unrelated package lifecycle work.
Findings 1 actionable finding [P1] Separate the unresolved package-lifecycle stack
Security Needs attention Resolve the contributor-fork package provenance before merge: The new Gateway composition workflow fetches and applies compatibility code from a contributor fork before building a package that setup can consume. Immutable hashes and refs constrain drift, but maintainers must explicitly accept this source or require the remaining compatibility delta to land upstream before it becomes a supported installation path.

How this fits together

The Windows Companion provisions and connects to a local WSL Gateway while the tray application manages the user-facing connection state. This PR inserts a version-alignment transaction after the local distro is ready, then feeds its update or recovery outcome back into Gateway and Windows-node reconnection.

flowchart TD
  A[Companion startup] --> B[Local WSL Gateway ready]
  B --> C[Probe installed Gateway version]
  C --> D{Matches required package?}
  D -->|Yes| E[Normal Gateway and node connection]
  D -->|No, user confirms| F[Verified backup or VHD protection]
  F --> G[In-place package update and verification]
  G --> H[Reconnect Gateway and Windows node]
  G --> I[Recovery or rollback action]
Loading

Decision needed

Question Recommendation
Should the Companion accept the still-open package-lifecycle and contributor-fork composed-package contract as a dependency of this Gateway alignment feature, or require that contract to land separately before this feature is reviewed on its own? Land the prerequisite separately: Require #999 to receive an explicit decision and land first, then rebase this PR to retain only the in-place alignment transaction.

Why: The repository cannot safely infer whether the disclosed composed-package source and lifecycle policy are acceptable product and supply-chain boundaries. The PR itself identifies this as an outstanding prerequisite rather than a completed dependency.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR describes partial disposable native-backup and interruption checks, but explicitly leaves a full current-head update-to-rollback runtime proof pending and provides no inspectable artifact that demonstrates update, recovery, and Gateway plus Windows-node reconnection together. Add redacted live output, logs, or a recording and update the PR body for automatic re-review.
  • Separate the unresolved package-lifecycle stack (P1) - The new composed-package workflow is part of the still-open dependency at fix(setup): validate current OpenClaw package lifecycle #999, while this PR claims to implement the separate Gateway-alignment feature. Merging the 84-file branch would therefore land an unaccepted package-provenance and lifecycle contract together with the update transaction. Land or explicitly accept that prerequisite first, then rebase this PR to the alignment-only diff, or remove the prerequisite changes from this branch.
  • Resolve security concern: Resolve the contributor-fork package provenance before merge - The new Gateway composition workflow fetches and applies compatibility code from a contributor fork before building a package that setup can consume. Immutable hashes and refs constrain drift, but maintainers must explicitly accept this source or require the remaining compatibility delta to land upstream before it becomes a supported installation path.
  • Resolve merge risk (P1) - Merging the current 84-file branch would combine the in-place update feature with the unresolved package-lifecycle and composed-package provenance decision from fix(setup): validate current OpenClaw package lifecycle #999.
  • Resolve merge risk (P1) - The workflow adds a supply-chain boundary by composing and executing a package derived from a contributor-fork compatibility patch; immutable references reduce drift but do not replace acceptance of that source and contract.
  • Resolve merge risk (P1) - The feature changes persisted settings, WSL command execution, update recovery, and reconnect behavior. The PR body explicitly leaves full disposable update-to-rollback runtime proof as a pre-promotion gate, so an availability regression remains unproven.
  • Complete next step (P2) - A maintainer must decide whether the open package-lifecycle and contributor-fork provenance contract is acceptable before this feature can be narrowed, rebased, and proven.

Findings

  • [P1] Separate the unresolved package-lifecycle stack — .github/workflows/ci.yml:29
  • [medium] Resolve the contributor-fork package provenance before merge — .github/workflows/ci.yml:29
Agent review details

Security

Needs attention: The PR adds a concrete supply-chain boundary through a composed package assembled from frozen upstream inputs plus an immutable contributor-fork compatibility patch, but that provenance is still awaiting a maintainer decision.

Review metrics

Metric Value Why it matters
Patch scope 84 files, 15,966 added, 281 removed The branch is substantially larger than the stated in-place update feature and includes prerequisite package and CI work.
Prerequisite status 1 linked open PR The PR body identifies #999 as a required conceptual stack that has not landed.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #901
Summary: This PR is the candidate implementation for the canonical lock-step local Gateway request, but it also partially overlaps an open package-lifecycle prerequisite.

Members:

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

Merge-risk options

Maintainer options:

  1. Separate and rebase the prerequisite stack (recommended)
    Resolve the package-lifecycle and provenance decision first, then rebase this PR to a narrow alignment diff and add current-head end-to-end update and recovery proof.
  2. Pause until the combined contract is sponsored
    Keep this PR open but do not merge it while the upstream package contract, contributor-fork composition, and full rollback proof remain unresolved.

Technical review

Best possible solution:

First accept and land, or deliberately reject, the package-lifecycle contract in #999; then rebase this work into a focused alignment-only PR with current-head disposable proof of update, recovery or rollback, exact version verification, and Gateway plus Windows-node reconnection.

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

Not applicable as a bug report. Current main source establishes that the requested alignment capability is absent: startup only maintains WSL keepalive and setup only assigns an install-time LKG.

Is this the best way to solve the issue?

No. The intended transaction is plausible, but this branch is not the best merge unit because it carries unresolved package-lifecycle and provenance work from #999 and lacks the stated end-to-end rollback proof.

Full review comments:

  • [P1] Separate the unresolved package-lifecycle stack — .github/workflows/ci.yml:29
    The new composed-package workflow is part of the still-open dependency at fix(setup): validate current OpenClaw package lifecycle #999, while this PR claims to implement the separate Gateway-alignment feature. Merging the 84-file branch would therefore land an unaccepted package-provenance and lifecycle contract together with the update transaction. Land or explicitly accept that prerequisite first, then rebase this PR to the alignment-only diff, or remove the prerequisite changes from this branch.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8ac00c5f4977.

Labels

Label justifications:

  • P2: This is a substantial but non-emergency feature proposal whose merge is blocked by bounded proof and product-direction decisions.
  • merge-risk: 🚨 compatibility: The patch changes setup package selection, persisted rollback settings, and Gateway update behavior for existing Companion-owned installations.
  • merge-risk: 🚨 security-boundary: The new composed-package workflow consumes and executes compatibility code sourced from a contributor fork under an unresolved provenance decision.
  • merge-risk: 🚨 availability: An interrupted or failed Gateway update can affect the local Gateway and node connection, while full update-to-rollback runtime proof is still pending.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR describes partial disposable native-backup and interruption checks, but explicitly leaves a full current-head update-to-rollback runtime proof pending and provides no inspectable artifact that demonstrates update, recovery, and Gateway plus Windows-node reconnection together. Add redacted live output, logs, or a recording and update the PR body for automatic re-review.

Evidence

Security concerns:

  • [medium] Resolve the contributor-fork package provenance before merge — .github/workflows/ci.yml:29
    The new Gateway composition workflow fetches and applies compatibility code from a contributor fork before building a package that setup can consume. Immutable hashes and refs constrain drift, but maintainers must explicitly accept this source or require the remaining compatibility delta to land upstream before it becomes a supported installation path.
    Confidence: 0.95

What I checked:

Likely related people:

  • Barbara Kudiess: Authored the current-main local Gateway recovery change and appears throughout the recent tray and connection history adjacent to the proposed startup, connection, and recovery integration. (role: recent area contributor; confidence: high; commits: bc210e048aa9, c04c5fb06238; files: src/OpenClaw.Tray.WinUI/Services/WslGatewayKeepAliveService.cs, src/OpenClaw.Tray.WinUI/App.xaml.cs)
  • Scott Hanselman: Current history ties the existing LKG surface to this contributor, and the PR discussion records their concrete storage-scaling feedback that led to the layered backup design. (role: adjacent design contributor; confidence: medium; commits: 15ed439dc5a3; files: src/OpenClaw.SetupEngine/GatewayLkgVersion.cs, docs/ARCHITECTURE.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve the package-lifecycle and provenance dependency, then rebase this feature to the accepted current base.
  • Publish redacted current-head disposable proof covering backup, update, failure recovery or rollback, exact version verification, and Gateway plus Windows-node reconnection.

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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-29T23:23:52.988Z sha 29bb8ad :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-30T17:19:18.612Z sha 29bb8ad :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T06:16:01.187Z sha 29bb8ad :: needs real behavior proof before merge. :: [P1] Separate the unresolved package-lifecycle stack before merge
  • reviewed 2026-08-02T08:01:10.010Z sha 29bb8ad :: needs real behavior proof before merge. :: [P1] Separate the unresolved package-lifecycle stack before merge
  • reviewed 2026-08-02T10:57:54.119Z sha 29bb8ad :: needs real behavior proof before merge. :: [P1] Separate the unresolved package-lifecycle stack before merge
  • reviewed 2026-08-02T13:17:01.455Z sha 29bb8ad :: needs real behavior proof before merge. :: [P1] Separate the unresolved package-lifecycle stack before merge
  • reviewed 2026-08-02T14:31:23.694Z sha 29bb8ad :: needs real behavior proof before merge. :: [P1] Separate the package-lifecycle stack before merge
  • reviewed 2026-08-02T16:42:09.981Z sha 29bb8ad :: needs real behavior proof before merge. :: [P1] Separate the package-lifecycle stack before merge

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 26, 2026
@TheAngryPit
TheAngryPit force-pushed the codex/gateway-in-place-update-20260722 branch from 526e933 to b571afe Compare July 26, 2026 10:30
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

Rebase and secure package-policy alignment published

Current head: b571afe5900a9f11e26087bb33af0d4c5eb268d1

This branch is now rebased onto #999 head f5958e2190e5484a40ce551783765c0637a1786a. The in-place update transaction keeps the layered native-backup/VHD design discussed with @shanselman while inheriting the corrected package contract:

  • ordinary fallback: official stable 2026.7.1 security floor;
  • future fallback movement: exact stable releases strictly newer than the pin;
  • composed candidate: exact version, credential-free URI, and SHA-256 metadata;
  • explicit hot and restart reload modes remain unchanged rather than being rewritten to hybrid.

Fresh exact-head local proof:

  • YAML and package-policy simulation: passed;
  • focused SetupEngine: 13/13;
  • focused package-target tests: 20/20;
  • complete Release build: passed;
  • SetupEngine: 793/793;
  • Connection: 621 passed with 3 declared host-capability skips;
  • Shared: 3,240 passed with 31 declared environment-dependent skips;
  • Tray: 1,978/1,978;
  • git diff --check: clean.

The complete stacked Auto-review bundle exceeded the helper's safe size limit and was not sent truncated. Patch-ID comparison showed four of five rebased functional commits unchanged; the new convergence delta was reviewed separately. Its sole finding referred to a removed workflow writer and was rejected against the exact source. GitHub checks started automatically from this push; no manual ClawSweeper request was added.

@TheAngryPit
TheAngryPit force-pushed the codex/gateway-in-place-update-20260722 branch from b571afe to 29bb8ad Compare July 29, 2026 23:20
@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 Jul 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 2, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions github-actions Bot added the stale label Aug 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing due to inactivity.
If this PR should be revived, reopen it with current context and a fresh validation plan.

@github-actions github-actions Bot closed this Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. stale status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep the local WSL OpenClawGateway version in lock-step with the Windows Tray app

3 participants