Skip to content

fix(settings): separate native and WSL gateway management - #1623

Closed
bkudiess wants to merge 16 commits into
mainfrom
bkudiess-native-gateway-settings
Closed

bkudiess wants to merge 16 commits into
mainfrom
bkudiess-native-gateway-settings

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes Settings and recovery surfaces treating a selected native Gateway as WSL, and rejects incomplete or stale selected-removal requests instead of widening their scope.

User Impact

Settings, onboarding, Diagnostics, and tray presentation follow the selected Gateway's installation type. Selected WSL removal preserves other Gateways, shared Local AI files, Companion settings, startup entries, execution approvals, and the MCP token.

Native removal deletes the package-owned isolated account, workspace, configuration, and credentials for the current Windows user while leaving the Store package installed. Other Companion profiles using that same package also lose access. Native Start/Stop/Restart, terminal, and Diagnostics Doctor controls remain WSL-only/hidden; this PR does not add native equivalents.

Ready for review, not ready to merge. Image-backed selected-WSL removal and real Gateway-mediated MXC containment now pass. Those runs used an explicitly disclosed, uncommitted test-provisioning overlay on 907277ce, not an unmodified checkout. Three additional P2 findings and native/UI/recovery proof gaps remain open below.

Why This Change Was Made

Installation-specific owners replace URL-based management and profile-wide selected removal. Native teardown uses the saved package family's versioned control contract. WSL removal retains identity/retry state until installation cleanup succeeds. Reopened custom-WSL onboarding is intended to remain bound to its selected record, distro, and endpoint.

907277ce adds guards for the earlier ClawSweeper findings: incomplete target options are rejected before forwarding; saved-target authority is refreshed at asynchronous removal boundaries; and residual deletion retries recheck registration absence and ownership. That is not a claim that ClawSweeper has cleared the new head. Its last inspected completed review targeted older head b00cdced65e3411010c8c1db1a77663304ebadde.

Ownership remains: Settings applies WinUI state; LocalGatewaySettings owns classification/comparison; NativeGatewayRemoval and WslGatewayRemoval own installation removal; GatewayIdentityRemoval owns staged profile cleanup; ExistingWslGatewaySetup owns reopened-WSL binding; GatewayConnectionManager retains connection/runtime serialization.

Evidence

Current head c7d4a6e6 (updated after the ClawSweeper review of 6c94eb91). Code and test changes since that review:

  • Removing a gateway now suppresses the legacy-settings credential fallback for that URL in the HTTP chat/dashboard resolver (InteractiveGatewayCredentialResolver), including a re-added record without credentials. New test: TryResolve_RemovedGatewayEndpoint_DoesNotFallBackToLegacyCredentials.
  • The legacy native removal warning no longer says profile data is kept. It now says removal is permanent and deletes the saved connection, credentials and the legacy gateway profile folder. Updated in all 6 locales and in the mounted rendering assertion.
  • WSL removal now deletes and verifies the ownership marker and the retry receipt before forgetting the saved gateway. A locked or undeletable marker or receipt leaves the saved target in place for retry. New test: LockedReceiptKeepsSavedTargetForRetry.
  • GatewayRemovalConsentTests no longer expects token rotation to be refused, because the consent digest is token-free by design. Ownership drift (signature, browser port, label, endpoint) is still refused before SetupEngine dispatch. docs/CONNECTION_ARCHITECTURE.md now states which fields the digest covers.

Automated results for this head are in Validation. The live runtime proof below was collected at an earlier head and is not current-head proof.

Local Windows ARM64 validation completed actual setup, pairing, Gateway connection, selected WSL removal, and Gateway-to-Windows-node MXC execution. Selected removal passed 1/1; strict MXC passed 18/18, with zero skips and all three required proof checks passing. The removal test verified the distro was absent and preserved an unrelated native-profile sentinel, settings bytes, and MCP-token bytes.

The normal Ubuntu ARM64 catalog install had returned HTTP 404. The rerun used the user-selected Ubuntu 24.04.5 ARM64 WSL image, verified against Ubuntu's SHA256SUMS:

SHA256: 74478b5024d9047397ba79d17c27f73caf85ada4988f88cffc2892d65e6a806b
Size: 388300496 bytes

Source qualification: The base is PR head 907277ce29980f1d3fbcf5c2282b3c88ac037c40. The local overlay adds an internal command-runner injection seam, fixture wiring, a test-only image adapter, adapter tests, and documentation. OPENCLAW_E2E_WSL_IMAGE substitutes only the fixture's uniquely named catalog installation with wsl --install --from-file; all remaining production setup steps and removal owners are unchanged. Product defaults and machine-wide catalog settings are unchanged. The overlay is not committed or pushed, is not available from this PR head alone, and is not an unmodified-head certification or normal-catalog-download proof.

On the unmodified head, 16 focused mounted WinUI tests passed and 19 local RenderTargetBitmap captures were collected; native/WSL captures were inspected. These prove mounted rendering, not live removal buttons, dialogs, cancellation, or recovery. Captures and full logs/TRX remain local; no new public media/artifact links are claimed.

Additional local review findings, still open: Two independent reviewer contexts reviewed all 56 changed files at 907277ce; model identities were unavailable, so no cross-model claim is made. These findings are separate from the older bot's three removal-guard findings.

Priority Location Problem and required action Evidence status
P2 GatewayIdentityRemoval.cs:38-40 Removing an active migrated connection retains the legacy URL/root identity that startup uses to recreate the connection and credentials. Persist explicit removal/migration-complete authority and add removal-then-startup coverage. Reproduced through removal/migration APIs using synthetic data; full app restart not exercised.
P2 SetupWindow.xaml.cs:765-780 Classic-wizard fallback drops the reopened WSL target pin. Switching active Gateways before fallback can configure another Gateway. Carry the ID/endpoint binding through classic connection and retry admission. Supported by traced execution paths; not runtime-reproduced.
P2 WslGatewayRemoval.cs:38-41 Between parent confirmation and initial child admission, a same-ID credential change becomes the child's new baseline because only ID/endpoint binding crosses the boundary. Carry a confirmation-authority revision/receipt without exposing raw credentials. Reproduced using a safe dry run, a nonexistent synthetic distro, and a command runner that prohibits execution. Destructive dispatch not exercised.

The successful happy-path E2E tests do not resolve these findings. Existing regressions and previously reported CLI refusal cases do not replace live revoked-target, replacement-registration, interrupted-recovery, or native teardown/coexistence proof.

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

Required proof pools

  • windows-winui-interactive: mounted Settings rendering passed; live UI-driven removal, failure/cancellation, recovery, and custom-WSL onboarding finalization remain unverified.
  • windows-wsl-gateway-e2e: image-backed real setup/pairing/connection and successful selected removal/preservation passed. Normal catalog download, live revoked/reassigned-target refusal, replacement registration, and interruption/recovery remain unverified.
  • windows-wsl-mxc: image-backed strict real Gateway-to-Windows-node containment passed, including execution and protected-directory write denial. No -AllowSkip; the local provisioning-overlay qualification above applies.
  • windows-clean-installer-upgrade: disposable native teardown/coexistence and existing-profile receipt/staging recovery remain unverified.
  • windows-11-arm64: ARM64 build, automated tests, selected WSL removal, and real MXC execution passed. Complete live native/UI/recovery proof is not claimed.

Validation

Current head c7d4a6e6 automated results (local, isolated OPENCLAW_TRAY_DATA_DIR, OPENCLAW_TRAY_APPDATA_DIR and OPENCLAW_TRAY_LOCALAPPDATA_DIR; command form dotnet test <project> -p:DisableGitVersionTask=true -p:Platform=x64; GitVersion fails locally, so .\build.ps1 was not usable):

Project Result
OpenClaw.Tray.Tests 4,627 passed, 0 failed
OpenClaw.Connection.Tests 1,737 passed, 0 failed, 1 skipped
OpenClaw.SetupEngine.Tests 2,549 passed, 5 failed (BoundedProcessOutputTests x3, CommandRunnerTests x2). These are in files this PR does not touch; I did not confirm they fail on the base commit.
OpenClaw.Tray.UITests Compiles. Not run on this head, so the updated legacy-native warning assertion is unverified.
OpenClaw.Shared.Tests, OpenClaw.WinNode.Cli.Tests Not rerun on this head.

The table below is from the earlier 907277ce runs.

Host: local Windows ARM64 (OS 10.0.28120.0), .NET SDK 10.0.401. OPENCLAW_REPO_ROOT pointed to the isolated worktree; settings/profile roots were isolated. Fresh test projects were built before --no-restore runs and nonzero execution was confirmed. No remote lease or paid proof provider was used.

The table distinguishes the unmodified 907277ce run from the final uncommitted-overlay run. Output-only logger/results-directory switches are omitted from ordinary suite rows; E2E selection/runtime/watchdog switches are included. Skips are not passes.

Command Unmodified PR head Final local overlay
.\build.ps1 All five projects built All five projects built
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,312 passed, 34 skipped 4,312 passed, 34 skipped
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 4,057 passed, 0 skipped 4,057 passed, 0 skipped
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore 1,621 passed, 1 cross-volume skip Not rerun with overlay
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore 2,364 passed, 1 cross-volume skip 2,364 passed, 1 cross-volume skip
dotnet test .\tests\OpenClaw.WinNode.Cli.Tests\OpenClaw.WinNode.Cli.Tests.csproj --no-restore 129 passed, 0 skipped Not rerun with overlay
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-arm64 --filter 'FullyQualifiedName~LocalGatewaySettingsRenderingTests|FullyQualifiedName~FunctionalUiFlyoutIdentityTests' --blame-hang-timeout 5m --blame-hang-dump-type none 16 passed, 0 skipped Not rerun with overlay
dotnet test .\tests\OpenClaw.E2ETests\OpenClaw.E2ETests.csproj -r win-arm64 --filter FullyQualifiedName~WslImageCommandRunnerTests Adapter not in PR 13 passed, 0 skipped
.\scripts\validate-mxc-e2e.ps1 -NoBuild -RuntimeIdentifier win-arm64 -ResultsDirectory '<local-results-directory>' Failed: 11 passed, 7 failed at Ubuntu provisioning before Gateway/MXC assertions 18 passed, 0 failed, 0 skipped; strict required proof checks passed
dotnet test .\tests\OpenClaw.E2ETests\OpenClaw.E2ETests.csproj --no-build --no-restore -r win-arm64 --filter FullyQualifiedName~SelectedGatewayRemovalTests --blame-hang-timeout 8m --blame-hang-dump-type none Failed: 0 passed, 1 failed at Ubuntu provisioning before removal assertions 1 passed, 0 failed, 0 skipped

Image-backed E2E environment:

$env:OPENCLAW_REPO_ROOT = (Get-Location).Path
$env:OPENCLAW_E2E_WSL_IMAGE = '<absolute path to the checksum-verified ubuntu-24.04.5-wsl-arm64.wsl>'
$env:OPENCLAW_E2E_TRAY_EXE = '<absolute path to the exact local-overlay ARM64 tray build>'
$env:OPENCLAW_RUN_E2E = '1'
$env:OPENCLAW_RUN_MXC_E2E = '1'

The strict script sets its own E2E/MXC gates. The image variable was unset after the proof run; no persistent environment or catalog override was installed.

An earlier overlay closeout failed two existing Shared cases (Build_ManyListItems_ScalingCurve and HandshakeGate_Reconnect_SuppressesEarlyMutationThenSendsAfterHelloOk) and one existing Setup case (PostRestartVerification_BorrowsNormalOwnerAndRejectsUnownedOrReplacedAuthority, isolated variant). All passed unchanged focused retries and the final full default-parallel reruns. No thresholds were relaxed or unrelated code fixes made; root causes were not established, and failed logs/TRX were retained.

Real Behavior Proof

  • Environment tested: local Windows ARM64; synthetic isolated profiles and two uniquely named WSL fixtures. Existing Ubuntu remained registered after cleanup.
  • PR head or commit tested: 907277ce29980f1d3fbcf5c2282b3c88ac037c40 plus the uncommitted test-only provisioning overlay, not a clean remote-head run. No commit/push of the overlay is claimed.
  • Exact steps or command run: install the verified local image into each fixture's own distro/path using wsl --install --from-file; complete the production setup/pairing pipeline; invoke the built tray CLI with --uninstall --confirm-destructive --gateway-id <fixture-target> --gateway-binding <captured-binding> --json-output <report>; run the strict MXC script and selected-removal test above.
  • Evidence after fix: copied, redacted output from actual runs:
cmd.start: wsl.exe --install --from-file <verified-image>\ubuntu-24.04.5-wsl-arm64.wsl --name OpenClawE2E-1c47651f --location <isolated-local-root>\OpenClawTray\wsl\OpenClawE2E-1c47651f --no-launch --version 2
SelectedGatewayRemovalTests: Passed=1; Failed=0; Skipped=0

Gateway MXC proof passed: MirroredWslSafeGatewayPort_IsListeningAndRecorded
Gateway MXC proof passed: RealGateway_SystemRun_ExecutesThroughWindowsNodeMxcSandbox
Gateway MXC proof passed: RealGateway_SystemRun_BlocksWritesToTrayDataDirectoryInMxcSandbox
MXC validation completed successfully.
MXC: Passed=18; Failed=0; Skipped=0
{
  "outcome": "Success",
  "exitCode": 0,
  "failedStepId": null,
  "message": "The selected WSL Gateway was removed. Other gateways and Companion data were preserved.",
  "requiresRestart": false,
  "compatibilityFailure": null
}
  • Observed result: the selected owned WSL distro was removed through the real tray CLI; an unrelated native-profile sentinel and settings/MCP-token bytes were preserved. Real Gateway-to-node system.run executed under MXC and writes to the isolated protected tray-data directory were denied. Both proof-owned distros were cleaned up; only the preexisting Ubuntu remained registered.
  • Screenshot or artifact links verified? N/A for new public links. Logs/TRX and 19 mounted-render captures remain local; redacted live output is copied above. Historical screenshot URLs returned HTTP 403 and are neither embedded nor credited.
  • Current-head note: the evidence above was collected at 907277ce and has not been repeated at c7d4a6e6. The changes since then (credential fallback suppression, WSL marker and receipt cleanup order, removal copy, consent test scope) are covered by automated tests only. No live proof exists for them. Data-model compatibility (existing stored data still loading, upgrade preservation) is covered by existing registry migration tests, not by a live upgrade run.
  • Not verified or blocked: normal catalog provisioning; clean-remote-head reproduction of the local image overlay; live native teardown/coexistence and unrelated-installation preservation; live incomplete/revoked/reassigned authority and replacement-registration refusal at destructive boundaries; interrupted receipt/staging recovery; UI removal/cancellation/failure/lock contention; classic fallback/active-Gateway switching; custom-WSL onboarding finalization; removal followed by ordinary migrated-profile startup at the current head.

NVIDIA-machine handoff

No new explicitly GPU-required or cross-volume proof is claimed. If those capacity lanes are required, use an appropriate disposable host/directory, enable OPENCLAW_RUN_INTEGRATION=1 and OPENCLAW_RUN_GPU_PROOF=1, configure the architecture-matched OPENCLAW_WXC_EXEC, and point OPENCLAW_TEST_HF_CACHE_ROOT at a disposable directory on a genuinely separate volume. Never use existing model data. Native destructive teardown still requires a disposable account/host rather than an existing shared package session.

Security Impact

  • New permissions or capabilities? (Yes/No) No new node/MCP capability or permission grant.
  • Secrets or tokens handling changed? (Yes/No) Yes: installation-specific cleanup, staged identity preservation, and retry handling. Credential contents are not exported.
  • New or changed network calls? (Yes/No) No new product endpoint. Validation downloaded the user-selected public Ubuntu image; existing Gateway transports and local package control remain in use.
  • Command or tool execution surface changed? (Yes/No) Yes: package-qualified native teardown and target-bound WSL uninstall admission.
  • Data access scope changed? (Yes/No) Yes: selected WSL removal is narrower; native teardown has package/current-user scope, including other Companion profiles, disclosed in confirmation.
  • If any answer is Yes, explain the risk and mitigation: explicit destructive consent, paired-option rejection, persisted-target/registration revalidation, ownership locks, registry CAS, and partial-outcome reporting are implemented. The parent-to-child confirmation gap, migrated-profile re-import, and classic fallback target loss remain open P2 findings; successful happy-path proof does not close these boundaries.

Compatibility and Migration

  • Backward compatible? (Yes/No) No unqualified compatibility claim: full existing-profile compatibility remains unverified, and the three P2 findings need correction. Selected-removal preservation semantics are intentional.
  • Config or environment changes? (Yes/No) Yes, validation-only locally: OPENCLAW_E2E_WSL_IMAGE belongs to the uncommitted test harness, not a new product setting. The PR requires paired target options for selected CLI removal and uses scoped retry receipts. Normal product install defaults are unchanged.
  • Migration needed? (Yes/No) No automatic schema migration added. The legacy migration/removal interaction needs the P2 fix above; production interruption/recovery compatibility remains unverified.
  • If yes, list the exact upgrade steps: N/A. Existing native Local AI ownership must be explicitly stopped/released before native installation removal. This PR does not add missing native lifecycle/terminal/Doctor controls.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

No bot clearance or resolved-thread claim is made. Three local-review P2 findings were recorded at 907277ce; later commits changed the related code, but their status at c7d4a6e6 has not been re-verified by live proof. Proof pools remain incomplete as listed. Ready for review is not approval to merge.

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added 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: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This PR separates native and WSL Gateway management and limits installation removal to the confirmed target.

Example: A native Gateway at ws://127.0.0.1:18789 is selected in Settings.

  • Before: Settings presents WSL-specific removal guidance and routes configuration through WSL-oriented setup.
  • After: Settings presents native-specific consequences and routes configuration and removal through native owners.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, owner-backed work with substantial focused coverage, but two cleanup defects and incomplete destructive-path evidence prevent landing.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Selecting a native Gateway can leave Settings, onboarding, and removal behaving as though the selected installation were WSL.
Reason: Current main retains the mismatch, and collaborator authorship plus recorded maintainer engagement establish direction without another product approval.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open: this maintainer-backed fix remains necessary on main, but two WSL cleanup defects block merge.

Priority: P2
Reviewed head: c7d4a6e65f63627fb58ad648f1f1f0745d51d489

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise allowed native and selected-WSL removal, then demonstrate revoked/reassigned saved targets and replacement registrations being refused before package teardown, unregister, or file deletion. Credit remains for the disclosed older WSL/MXC overlay output, earlier executable refusal cases, mounted UI tests, and reported native Settings actions; none proves the latest cleanup settlement or completed native teardown. Supply current-head redacted logs, terminal output, or linked artifacts covering removal, preservation, interruption, and visible recovery, with credentials, IPs, and non-public endpoints removed. The new persisted suppression/receipt/staging behavior also lacks a latest-stable upgrade preservation run. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Distinguish an unreadable marker from successful deletion (P2) - Hold the matching setup-managed-distro.json open with FileShare.None while removing a Gateway with explicit SetupManagedDistroName. DeleteMarker calls TryReadMarker, which catches the sharing violation and returns false; HasPathBoundMarkerEvidence repeats that same failed read and also returns false. This check therefore permits receipt deletion and identity removal, reporting success while the ownership marker remains. The previous metadata-cleanup finding is still reachable. Use a cleanup result that distinguishes absent, unrelated, deleted, and unreadable markers, retaining the saved retry target on an unreadable matching marker.
  • Retain the teardown fence across failed identity commits (P2) - After successful unregister and disk cleanup, this ordering deletes the receipt before GatewayIdentityRemoval.Remove commits gateways.json. If that commit fails and profile restoration succeeds, the original active record remains with no receipt or staged profile. SettingsPage's finally block then passes its HasRemovalReceipt check and calls ReconnectIfSameTargetAsync, which re-enables automatic reconnect for the already-deleted WSL installation. Preserve durable teardown-started state through failed identity settlement, while still providing retryable receipt cleanup, and cover the restored-profile failure through the parent recovery path.
  • Resolve security review attention item - Destructive target authorization still requires current-head final-effect evidence.
  • Resolve merge risk - Before merge, the PR owner must establish that revoked or reassigned saved targets and replacement WSL registrations are rejected before the final destructive effect.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Distinguish an unreadable marker from successful deletion — src/OpenClaw.SetupEngine/WslGatewayRemoval.cs:92-94
  • [P2] Retain the teardown fence across failed identity commits — src/OpenClaw.SetupEngine/WslGatewayRemoval.cs:95-96

Tests

  • Missing end-to-end proof: Current-head shipped removal/refusal/recovery and latest-stable upgrade runs are missing, base-fail/head-pass evidence for the new regressions is not supplied, and normal build/Shared closeout remains incomplete.
Agent review details

How this fits together

Companion reads the active GatewayRegistry record, selects native or WSL management, and forwards confirmed removal through package control or SetupEngine before cleaning saved identity state.

flowchart TD
A[Settings and tray CLI] --> B[Selected Gateway record]
B --> C[Installation classification]
C --> D[Serialized native removal]
C --> E[Selected WSL removal]
D --> F[Package teardown]
E --> G[WSL registration and disk cleanup]
F --> H[Registry and identity cleanup]
G --> H
Loading

Technical review

Best possible solution:

Keep the installation-specific owners, distinguish unreadable cleanup metadata from absence, and retain a durable teardown fence until identity removal commits.

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

Current-main source establishes the native-versus-WSL Settings mismatch, and current-head callers establish both cleanup failure paths; no target code was executed.

Is this the best way to solve the issue?

The owner split fits the existing architecture, but cleanup settlement must preserve retry and disconnect invariants across unreadable markers and failed identity commits.

Full review comments:

  • [P2] Distinguish an unreadable marker from successful deletion — src/OpenClaw.SetupEngine/WslGatewayRemoval.cs:92-94
    Hold the matching setup-managed-distro.json open with FileShare.None while removing a Gateway with explicit SetupManagedDistroName. DeleteMarker calls TryReadMarker, which catches the sharing violation and returns false; HasPathBoundMarkerEvidence repeats that same failed read and also returns false. This check therefore permits receipt deletion and identity removal, reporting success while the ownership marker remains. The previous metadata-cleanup finding is still reachable. Use a cleanup result that distinguishes absent, unrelated, deleted, and unreadable markers, retaining the saved retry target on an unreadable matching marker.
    Confidence: 0.99
  • [P2] Retain the teardown fence across failed identity commits — src/OpenClaw.SetupEngine/WslGatewayRemoval.cs:95-96
    After successful unregister and disk cleanup, this ordering deletes the receipt before GatewayIdentityRemoval.Remove commits gateways.json. If that commit fails and profile restoration succeeds, the original active record remains with no receipt or staged profile. SettingsPage's finally block then passes its HasRemovalReceipt check and calls ReconnectIfSameTargetAsync, which re-enables automatic reconnect for the already-deleted WSL installation. Preserve durable teardown-started state through failed identity settlement, while still providing retryable receipt cleanup, and cover the restored-profile failure through the parent recovery path.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 849cba5765c8.

Merge-risk options

Maintainer options:

  1. Validate destructive targeting before landing (recommended)
    The PR owner should supply current-head allowed-removal and revoked/reassigned-target refusal evidence through the production removal owners on disposable installations.

Provenance checked

  • Settings installation removal changes intended behavior with a stated reason (223db1f: The original uninstall implementation supplied WSL installation removal, onboarding reset, and persistent result presentation.)
  • WSL registration and residual cleanup keeps the original intent (fd8901d: Cleanup was bound to live registration identity and canonical managed paths to preserve same-named foreign installations.)
  • Reopened setup target ownership keeps the original intent (652a20a: Non-destructive Local AI recovery requires an exact managed Gateway, endpoint, and distro rather than adopting another active target.)
  • Classic wizard compatibility changes intended behavior with a stated reason (3eed1f1: Shared AI setup retained classic compatibility with platform-specific native authorization; this PR explains why saved native installations cannot use that fallback while staged native setup retains it.)
  • Legacy interactive credential fallback changes intended behavior with a stated reason (140fece: History associates the fallback with tray pairing recovery; retained legacy settings and root identity support older profiles, while explicit removal now revokes their automatic reuse.)
  • Window and connection lifecycle ownership keeps the original intent (3a097bc: WindowManager owns concrete setup-window lifetime while App remains the composition root and focused services own lifecycle decisions.)

Testing

Proof path: in-process harness.

Security

Needs attention: Destructive target authorization still requires current-head final-effect evidence.

Evidence

What I checked:

  • Current main still contains the reported classification: At fetched main, LoadGatewaySection still infers installation presence from setup-state.json or the legacy settings URL and exposes onboarding through the WSL host-access classification. (src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml.cs:310, 849cba5765c8)
  • Previous review disposition: The current delta fixes legacy HTTP credential suppression, corrects legacy-native deletion warnings in all six locales, and removes token-rotation refusal expectations from executable consent tests; marker-cleanup verification remains incomplete. (src/OpenClaw.SetupEngine/WslGatewayRemoval.cs:92, c7d4a6e65f63)
  • Unreadable marker is indistinguishable from absent evidence: DeleteMarker and HasPathBoundMarkerEvidence both depend on TryReadMarker, which returns false for IO and access failures; a read-locked matching marker can therefore survive successful selected removal. (src/OpenClaw.SetupEngine/ManagedDistroOwnership.cs:203, c7d4a6e65f63)
  • Receipt lifetime controls reconnect recovery: The new ordering deletes the removal receipt before GatewayIdentityRemoval commits; Settings restores reconnect intent on failure when that receipt is absent, while identity rollback can leave the original record and profile intact. (src/OpenClaw.Tray.WinUI/Pages/SettingsPage.xaml.cs:644, c7d4a6e65f63)
  • Full proof and validation disclosure inspected: The full REST body matches SHA-256 1b081b9d3ff08bbb4491e5143636ef57d08383a58c5ce59dcab91c6e27b84d05. It explicitly attributes live WSL/MXC output to an older provisioning overlay, reports no current-head live or upgrade proof, and reports five Setup test failures without a confirmed base comparison. (c7d4a6e65f63)
  • Maintainer direction and historical proof credited: karkarl supports the direction and reports earlier native Settings action verification, while explicitly distinguishing it from completed teardown and preservation proof: fix(settings): separate native and WSL gateway management #1623 (comment).

Likely related people:

  • Karen: Raw commit 7dcbc2f adds src/OpenClaw.Tray.WinUI/Services/WindowManager.cs:627 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7dcbc2f798a8; files: src/OpenClaw.Tray.WinUI/Services/WindowManager.cs)
  • Scott Hanselman: Raw commit fd8901d adds src/OpenClaw.SetupEngine/CleanupStaleDistroStep.cs:109 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: fd8901d85f44; files: src/OpenClaw.SetupEngine/CleanupStaleDistroStep.cs)

Review metrics

Metric Value Why it matters
Diff excluding line-ending churn Production/resources +1450/-115; tests +2488/-18; docs +132/-0 The added coverage addresses distinct authority, rollback, process-boundary, preservation, and mounted-rendering contracts.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Installation-specific management fixes a concrete Settings problem, with remaining defects limited to removal cleanup and recovery.
  • merge-risk: 🚨 compatibility: The PR changes persisted removal suppression, retry receipts, identity staging, and existing-profile recovery semantics.
  • merge-risk: 🚨 security-boundary: Confirmed saved-record authority now controls package teardown, WSL unregister, and filesystem deletion across asynchronous and child-process boundaries.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add final-effect proof for revoked or reassigned saved targets and replacement WSL registrations, showing rejection before destructive I/O.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-03T06:18:22.006Z sha 2a6d75f :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch
  • reviewed 2026-10-03T06:55:13.257Z sha b00cdce :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch
  • reviewed 2026-10-03T23:24:10.650Z sha b00cdce :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch | [P1] Recheck registration before deleting residual WSL files
  • reviewed 2026-10-04T03:28:21.916Z sha b00cdce :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch | [P1] Recheck registration before deleting residual WSL files
  • reviewed 2026-10-04T16:54:19.526Z sha b00cdce :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch | [P1] Recheck registration before deleting residual WSL files
  • reviewed 2026-10-04T19:21:13.749Z sha b00cdce :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch | [P1] Recheck registration before deleting residual WSL files
  • reviewed 2026-10-04T19:29:51.389Z sha b00cdce :: needs real behavior proof before merge. :: [P1] Reject a binding-only removal request before forwarding | [P1] Revalidate saved target authority before WSL dispatch | [P1] Recheck registration before deleting residual WSL files
  • reviewed 2026-10-28T15:33:07.346Z sha 6c94eb9 :: needs real behavior proof before merge. :: [P1] Honor removal suppression before resolving legacy HTTP credentials | [P1] Disclose deletion of the legacy native Gateway profile | [P2] Finish WSL metadata cleanup before forgetting the retry target | [P2] Align executable consent tests with permitted token rotation

Reviewed October 28, 2026, 3:53 PM ET / 19:53 UTC (Revision 10).

@clawsweeper clawsweeper Bot added 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. and removed 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. labels Oct 3, 2026
@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 3, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 3, 2026
@bkudiess bkudiess added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Oct 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 4, 2026
@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 4, 2026
@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 Oct 4, 2026
@karkarl

karkarl commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Scoped maintainer triage verdict

HOLD_FOR_AUTHOR. Take confidence: 10%. Recommendation confidence: 98%.

Reviewed head: b00cdced65e3411010c8c1db1a77663304ebadde. Live state rechecked October 5, 2026 (UTC): open, draft, clean merge state, CI Gate successful. Green CI does not clear the destructive-targeting and ownership concerns below.

Source-level blockers

  1. Reject incomplete targeted-uninstall arguments. CliUninstallHandler detects selected-Gateway targeting from --gateway-id. A confirmed invocation containing only the binding argument can lose that targeting intent and fall through to untargeted full-profile uninstall. Reject partial target specifications before selecting an uninstall mode; never turn an invalid targeted request into broader cleanup.
  2. Revalidate persisted ownership at destructive boundaries. WslGatewayRemoval.RunAsync loads the saved registry target before awaited receipt/keepalive work. Later per-command checks verify WSL registration, not whether the saved Gateway target was rebound or replaced. The identity compare-and-swap after destruction is too late to prevent destructive work against changed ownership. Revalidate the complete expected persisted target before each destructive operation and fail closed on changes.
  3. Recheck registration during directory-deletion retries. Registration absence is checked before DeleteDistroDirectoryWithRetries, leaving re-registration during the retry window unguarded. Preserve a distro that has become registered or whose ownership is no longer proven. Cover the retry/race boundary explicitly rather than treating a prior absence check as continuing authority.

These are read-only source findings, not results from running destructive teardown on a user profile.

To reach 90%+ take confidence

  • Repair the three admission/ownership boundaries with regressions for binding-only input, missing/mismatched target pairs, registry replacement/rebinding during awaited work, and WSL re-registration between deletion attempts. Assert that unrelated Gateway records, packages, profiles and data survive.
  • Obtain a complete successful required local closeout on the final head: .\build.ps1, Shared tests, Tray tests, and affected SetupEngine/Connection/CLI suites. Diagnose the reported default Setup-suite failure; a serial pass alone does not erase that failure.
  • Provide current-head isolated WinUI and real selected-WSL/native removal evidence on disposable hosts, including refusal paths, migration-lock contention and preservation of other installations. Relevant pools include windows-winui-interactive, windows-wsl-gateway-e2e and windows-clean-installer-upgrade; retain strict windows-wsl-mxc validation for the affected setup/node path.
  • Keep evidence attribution precise: earlier proof at 1f79db27 is not automatically proof of this head. The reported selected-WSL removal stopped during fixture setup, native package execution was unavailable, and passing MXC cases do not prove teardown.
  • Complete final independent review, confirm ready-for-review intent, and recheck CI Gate and the actual landing base. Document unavailable proof as blocked, not passed.

Owner: bkudiess, already carrying active ownership. Keep this work with that owner rather than starting a competing cleanup implementation. The direction is useful, but this revision should not merge yet. No destructive execution or merge is authorized by this verdict.

@bkudiess bkudiess removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 15, 2026
@bkudiess
bkudiess force-pushed the bkudiess-native-gateway-settings branch from b00cdce to 907277c Compare October 15, 2026 02:07
@bkudiess
bkudiess marked this pull request as ready for review October 15, 2026 05:55
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@karkarl

karkarl commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Global repo triage adversarial review

Decision: HOLD_FOR_AUTHOR
Take confidence: 55%
Recommendation confidence: 96%

Both independent reviewers completed against exact head 907277ce29980f1d3fbcf5c2282b3c88ac037c40. CI is clean and the PR is mergeable, but verified correctness issues and destructive/recovery proof gaps block landing.

Severity Finding Location Fix confidence
HIGH Removing a migrated gateway can leave legacy settings/root identity that startup re-imports with old credentials, so removal does not survive restart. src/OpenClaw.Connection/GatewayIdentityRemoval.cs:38-40 90%
MEDIUM Classic-wizard fallback drops the reopened WSL gateway ID/binding, allowing setup to mutate a different active target. src/OpenClaw.SetupEngine.UI/SetupWindow.xaml.cs:762-780 95%
MEDIUM Parent-confirmed full gateway authority is reduced to ID and endpoint binding; same-ID credential or excluded-field drift can become the accepted baseline. SettingsPage.xaml.cs:528-544; WslGatewayRemoval.cs:38-42 80%

Additional lower-severity concerns: stale in-memory registry after successful child removal, post-commit cleanup without a useful retry path, uncaught rollback aggregation, malformed-registry CLI failure, legacy managed-state recovery gaps, and latent hard-kill cancellation risk.

Required next action: fix the accepted HIGH/MEDIUM issues, then rerun exact-head review and the applicable windows-winui-interactive, windows-clean-installer-upgrade, and windows-wsl-gateway-e2e proof. The reported WSL/MXC proof used an uncommitted provisioning overlay, so it is not unmodified-head certification.

No code changes or remote branch updates were made by this review.

@bkudiess

bkudiess commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator Author

Fixed the three HIGH/MEDIUM findings from your review in 03c06a8.

  1. Removal survives legacy migration on restart. The registry commit that removes the saved gateway now atomically suppresses automatic legacy migration for its endpoint, including equivalent loopback aliases. Startup's settings-URL bridge and operator/node root-identity fallback honor that decision. Shared legacy settings and root identity are preserved for unrelated gateways; an explicitly added connection can still use its own new credentials. Regressions cover simulated restart, unrelated data, explicit re-add, persistence/reconciliation, and failed-commit rollback.
  2. Classic-wizard fallback keeps the reopened WSL target. WizardPageArgs carries the original gateway ID and endpoint binding into the classic wizard. Initial connection and retries pass them to the existing session authority checks. Two mounted UI cases change the active ID or same-ID endpoint and verify that neither initial admission nor retry connects to the replacement or sends a wizard request. The 30 existing native shared-flow cases also pass.
  3. Removal consent survives the parent/child boundary without accepting drift. The existing --gateway-binding argument now carries a SHA-256 digest of the complete confirmed record except LastConnected. Both tray forwarding and engine admission reject credential/configuration drift before destructive work. No raw credentials are added to the command line. Retry receipts retain their separate endpoint/registration binding for compatibility. Regressions cover token, signature, browser-port and label changes, timestamp-only changes, and rejection of endpoint-only consent; six actual tray executable --dry-run checks verify refusal before engine dispatch.

Validation

These results were collected on the exact final source before committing. Before publication, all 21 changed files were verified unchanged against the recorded SHA-256 manifest; no additional source changes were made.

Command Result
.\build.ps1 Passed, all five build targets
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,311 passed, 35 skipped, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 4,064 passed, 0 skipped, 0 failed
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore 1,625 passed, 1 skipped, 0 failed
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore 2,371 passed, 1 skipped, 0 failed
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -c Debug -r win-x64 Passed

Focused UI command:

.\scripts\Invoke-CiTest.ps1 -Project .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -ResultsDirectory <session-artifacts>\final-ui-results -TrxFileName final-ui.trx -Runtime win-x64 -Filter 'FullyQualifiedName~WslWizardBindingTests|FullyQualifiedName~LocalGatewaySettingsRenderingTests|FullyQualifiedName~NativeSharedFlowTests|FullyQualifiedName~GatewayRemovalConsentTests' -HangTimeoutSeconds 300

53 passed, 0 skipped, 0 failed: 15 Settings rendering, 30 native shared-flow, 2 WSL fallback, and 6 actual CLI consent-refusal cases. Test processes used isolated data/roaming/local roots. The initial run exposed a reflection error in the new test and four Settings captures resolving a Dark application background for a Light page. The reflection was corrected and the capture host now uses the existing element-scoped theme helper. All pixel thresholds and completeness assertions remain intact; the original failed logs are retained.

A scoped independent rubber-duck review of the production changes found no actionable issues. This was static review, not another dual-model review.

bkudiess and others added 6 commits October 16, 2026 11:21
Route settings and removal through the selected gateway installation, preserve unrelated profiles, and add native/WSL coverage. Keep live native and remaining WSL proof gaps explicit in the draft PR.

Co-authored-by: Copilot App <[email protected]>
Restore the flyout test container and window bounds, isolate Settings rendering from inherited dimensions, and cover the 600x400 leaked-fixture regression without weakening viewport assertions.

Co-authored-by: Copilot App <[email protected]>
Use the actual WinUI client area when hosted Windows clamps the requested window size. Cover native and WSL at a constrained viewport while retaining complete-control visibility and exact capture-size checks.

Co-authored-by: Copilot App <[email protected]>
Reject partial tray target arguments before forwarding. Refresh full persisted target authority at destructive WSL boundaries and registration absence on every residual cleanup retry. Preserve unrelated records and retry state. Repair native teardown invocation after rebase and add behavioral regressions.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: c5310802-7cde-400e-9332-c91997728072
Prevent legacy gateway resurrection after explicit removal without deleting shared legacy state. Pin reopened WSL classic-wizard fallback and retries to the reviewed target. Carry a full-record consent digest through tray and setup-engine removal admission, retaining endpoint-bound retry receipts.

Add restart, rollback, credential drift, mounted fallback and actual CLI refusal regressions. Resolve Settings capture backgrounds in their requested theme without weakening proof assertions.

Co-authored-by: Copilot App <[email protected]>
Preserve the automatic uninstall cleanup copy from main in mounted Settings assertions after rebase. Keep exact title/message, visibility, preservation and pixel proof checks.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess force-pushed the bkudiess-native-gateway-settings branch from 03c06a8 to 616d66d Compare October 16, 2026 18:44
Refuse unsupported saved-native classic setup, surface changed WSL finalization targets, and preserve compound identity recovery guidance in structured removal results. Add owner and mounted-UI regressions plus localized guidance.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 114689d7-761a-4a23-a1d4-51fe1a04ca54
@karkarl

karkarl commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

October 22 update: manual native Settings verification and main integration

At head c0e0b60177cccc07747c17b75c60fce9a70be735, @karkarl manually tested Settings > Local Gateway and reported verifying the Open setup, Open onboarding, and Remove Local Gateway actions.

The developer-provided screenshot shows the selected native Gateway state:

  • Open setup describes configuring the selected native Gateway's AI provider and model without reinstalling it.
  • Open onboarding is available for provider/model configuration on the selected local Gateway.
  • Remove Local Gateway displays native-specific consequences: removal of the Windows package's isolated Gateway account, workspace, configuration, credentials, and startup records; an explicit warning for other Companion profiles sharing that package/account; and preservation text for the Gateway Store app, WSL Gateways, other saved Gateways, Companion settings, and MCP token.

This is developer-reported manual action verification plus visible native Settings evidence. It does not establish completed destructive removal or actual preservation after removal. WSL-specific Settings behavior and side-by-side management remain unverified: the attempted embedded WSL setup stopped at preflight because port 18789 was occupied. No existing Gateway was stopped or removed to bypass that conflict.

Validation at c0e0b60 before the latest main merge

  • Normal full repository build passed at c0e0b601; Shared tests executed 4,615 passed, 25 skipped, 0 failed.
  • The separately admitted Tray continuation executed 4,444 passed, 0 skipped, 0 failed, including all seven required owner classes and both App regressions.
  • The focused Connection command exceeded its controller's 45-second command deadline before producing a test report. It is incomplete, not a demonstrated test assertion or Gateway connection failure. Focused Setup tests and ARM64 UI-test compilation were not attempted in that continuation.
  • A subsequent normal, app-only Debug ARM64 build passed with 0 errors and one generated-XAML obsolete-Icon warning. The isolated app started successfully; authenticated MCP discovery, read-only status, and navigation to Connection succeeded. This startup evidence is separate from the later manual Settings checks.
  • Build and Test run 39490547432 completed successfully for its earlier integration candidate. It does not validate integration with today's main.

Latest main integration: 2a54fc2

Appended 2a54fc2e, merging main bef07da01911fa78ed5ab728ab9248bbb1ec0466 without rewriting contributor history. The single conflict in AiSetupPage.xaml.cs retains both main's updated AI group visibility and this PR's CanUseClassicWizard safety gate. All six resource catalogs retain the exact three-way key/value changes, with 3,219 unique keys per locale.

An independent Copilot code-review-role rubber-duck found no verified P0-P3 merge-integration defect. Its model identity was not exposed. This is static review of the resolution and proof plan, not canonical-helper isolation or runtime proof.

Post-merge local validation is not green:

Command / stage Actual result at 2a54fc2e
dotnet restore .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --disable-parallel -m:1 -nr:false -v:minimal Passed. Required for main's new Shared.TestHost-to-TestSupport project reference.
.\build.ps1 -NoTrustRepository Passed all repository build targets.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore -p:UseSharedCompilation=false -m:1 -nr:false 4,659 passed, 25 skipped, 0 failed.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore -p:UseSharedCompilation=false -m:1 -nr:false 4,528 passed, 4 failed, 0 skipped.
Separate focused Connection/Setup compilation and tests; ARM64 UI-test compilation Not attempted after the Tray failure.

The test invocations additionally wrote fresh TRX reports and VSTest diagnostic logs to the isolated session artifact directory. Normal GitVersion remained enabled; no real user settings, Gateway, WSL distro, native package, or peer preview was changed.

All 215 cases across the seven required Tray owner classes passed, including both exact App migration/removal-suppression regressions. Independent resource-release audit completed at 2026-10-22T19:57:23Z, confirming the run's processes and disposable directories were gone and protected peer previews remained intact. Resource release does not turn the failed/incomplete validation into a pass.

All four failures are BuildPrerequisiteTests.CheckOnly_UsesTheAppLocalRuntimeResolver theory cases introduced on main by #1816 (fix(dev): reject incompatible app-local VC++ prerequisites). Both the test and build.ps1 are unchanged from the merged main. The fixture sets PROCESSOR_ARCHITECTURE=AMD64 before launching Windows PowerShell, but every failing child reports Architecture: ARM64 and skips the x64 runtime-resolver branch, so the expected success/failure text is absent. This is an observed ARM64 fixture mismatch, not a Settings assertion failure or Connection timeout. No tests were weakened, skipped, or retried.

The controller rejected Tray's ordinary xUnit failure RunInfo entries under its generic "Incomplete, aborted or stale report" check. The preserved raw TRX nevertheless contains all 4,532 results, a Failed summary, and zero timeout/aborted counters; the four assertion failures above are authoritative.

Not verified / blocked: a fully passing post-merge local closeout, focused Connection/Setup completion, current-head mounted UI execution, and real native/WSL destructive-removal/preservation proof. The manual native checks above predate this merge and are not relabelled as post-merge proof. No PR merge or complete proof-pool sign-off is claimed.

Previous October 20 status and historical evidence, superseded by the update above

Prior head c0e0b60: earlier conflicts resolved, integration correction pending validation

Appended merge commit 20850e69, preserving the contributor's commits and repair head 4ef785b8. Its second parent is main c1d8953.

Then appended c0e0b601 to address the nullable startup integration error found by hosted CI. Startup now checks that the explicit legacy URL exists before querying removal suppression. The existing App ownership regression now requires that guard.

The seven conflicts are resolved. Startup credential recovery retains both the explicit-removal suppression guard and main's explicit-only legacy endpoint lookup. All six locale files retain both parents' independent additions, with 3,211 unique keys per locale and exact three-way key/value preservation.

An earlier independent Copilot-hosted P0-P3 static review at 20850e69 reported no merge-specific findings, but missed the compiler error below. The model was not exposed. That review was not helper-isolated, executable validation or runtime proof.

A source-only git merge-tree --write-tree 20850e69c93354e955d8f5daa597dbf7ab904215 8dfedf9616c5c5b6eb5e0d428b28aec799120653 returned exit 0 against the subsequently advanced main, producing tree 4e01a726fd2ac8f2f361dbf2130b66f40771a03c. That check proved textual mergeability, not compilation or behavior.

Validation

Current-head local validation has not run. A concurrent metadata failure in the shared-host validation controller blocks admission until the common correction is qualified and a fresh coordinated slot is granted. The source-reviewed correction has been adopted for preparation only. No validation bypass, metadata-disabled fallback, or uncoordinated runtime operation was used.

Current-head command Result
.\build.ps1 -NoTrustRepository Not run; coordinated local closeout blocked
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore Not run; blocked
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore Not run; blocked
Focused Connection/Setup owner suites and ARM64 UI-test compilation Not run; blocked

Read-only dependency inspection identified stale assets in all five planned test projects: they reference OpenClaw.Shared but lack the newly required Microsoft.Mxc.Sdk/1.0.0. The prepared closeout restores those exact projects before testing. Migration tests will use a private OPENCLAW_TRAY_LOCALAPPDATA_DIR with OPENCLAW_TRAY_LOCAL_DATA_DIR absent.

Run 39488174278 exposed CS8604 at App.xaml.cs:1836: main's nullable GetLegacyCredentialGatewayUrlOrNull() result was passed to IsLegacyMigrationSuppressed(string). The publish log, hosted UI and integration logs show the same compiler failure. Integration subsequently failed to locate the unbuilt app. The tested integration commit was ddf5084c4d5525024c6438fee5426d7ec056879a, with parents 8dfedf96 / 20850e69 and the same 4e01a726 tree above. This failure is preserved, not relabelled as infrastructure.

The correction triggered Build and Test run 39490547432 naturally. Replacement hosted CI results are pending, not credited from the older green run below. No manual CI rerun was requested.

Required proof pools

windows-winui-interactive, windows-wsl-gateway-e2e, windows-wsl-mxc, windows-clean-installer-upgrade, windows-11-arm64.

Real behavior proof

Not verified at this head: visible changed-state Settings flows, native/WSL removal and preservation, retry/recovery, and strict Gateway/MXC behavior. UI/runtime execution remains separately coordinated; a user-persistent Gateway is not a disposable removal fixture. No proof pool or 90% merge-confidence claim is established by this conflict resolution.

The PR remains open. Conflict-resolution publication is not completion of required local closeout or runtime proof.

Historical repair-head evidence for 4ef785b, not rerun at current head

All results below predate merge commit 20850e69 and correction c0e0b601. Their original head, integration-tree and diagnostic limitations remain preserved; they must not be read as current-head validation.

Appended 4ef785b8 without rewriting the contributor's commits.

  • Existing native installations now reject unsupported classic setup in both the page and window navigation. Staged native setup retains its supported classic path.
  • Changed WSL onboarding targets now produce a visible finalization failure on Skip/Retry instead of leaving the wizard busy.
  • Compound registry-commit/profile-restore failures now retain the recovery folder and reconnect warning in the WSL child's structured failure result.

Added failure-injection and mounted-UI regressions, preserved the target-binding source guard, translated the new guidance in every supported locale, and updated the connection contract documentation.

Validation

Normal local build/tests and hosted CI are green. Hosted UI passed after one explicitly authorized diagnostic retry, and all seven scoped synthetic UI cases passed locally. Real native/WSL proof remains blocked, so these results do not establish merge readiness.

Normal command Result
.\build.ps1 Passed all five project targets: Shared, Cli, WinNodeCli, SetupEngine, WinUI
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,314 passed, 35 ordinary opt-in skips
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 4,141 passed, 0 skipped
.\scripts\setup-dev.ps1 -CheckOnly Passed; no prerequisites installed.
.\scripts\validate-docs.ps1 Passed, 63 Markdown files and both proof-pool validator paths.
git diff --check Passed.

The successful normal closeout used isolated profile roots and real GitVersion metadata. Generated metadata records exact head 4ef785b893402cfbd02755d9ffc473213da8ff2b; no metadata-disable flag was used. The shared build slot and owned processes have been released.

Earlier bounded attempts stopped in GitVersion.MsBuild 6.8.2 / RunGitVersion before tests (Tray also initially needed restore). Read-only mutex-owner inspection subsequently verified contention with another task's normal build: GitVersion serializes linked worktrees using a common-repository mutex and an unbounded wait. Its owning process exited normally. This establishes the observed wait mechanism, not a deadlock or every earlier timeout's cause. No peer process or mutex was interrupted; the successful pass followed a coordinated handoff.

Additional normal, metadata-enabled commands:

dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore --filter 'FullyQualifiedName~WslGatewayRemovalTests|FullyQualifiedName~ExistingWslGatewaySetupTests|FullyQualifiedName~SetupAccessDraftTests|FullyQualifiedName~ProgramArgumentTests'
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore --filter 'FullyQualifiedName~LocalGatewaySettingsTests|FullyQualifiedName~GatewayIdentityRemovalTests|FullyQualifiedName~NativeGatewayRemovalTests'
dotnet test .\tests\OpenClaw.WinNode.Cli.Tests\OpenClaw.WinNode.Cli.Tests.csproj --no-restore
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false -p:UseSharedCompilation=false -m:1 -nr:false --verbosity minimal

Results: Setup 311 passed, Connection 35 passed, CLI 129 passed, all zero skips. Normal ARM64 UI-test compilation passed with zero errors and one preexisting generated-XAML obsolete-Icon warning.

Separate, explicitly metadata-disabled diagnostics compiled and exercised the repair. They used isolated profile roots and OPENCLAW_REPO_ROOT pointing to this worktree. The commands below show the actual build/test options; TRX destination paths are omitted because they are local session artifacts.

dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false -p:DisableGitVersionTask=true -p:UseSharedCompilation=false -m:1 -nr:false --verbosity minimal

dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore -p:DisableGitVersionTask=true -p:UseSharedCompilation=false -m:1 -nr:false --filter 'FullyQualifiedName~WslGatewayRemovalTests|FullyQualifiedName~ExistingWslGatewaySetupTests|FullyQualifiedName~SetupAccessDraftTests|FullyQualifiedName~ProgramArgumentTests'

dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore -p:DisableGitVersionTask=true -p:UseSharedCompilation=false -m:1 -nr:false
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore -p:DisableGitVersionTask=true -p:UseSharedCompilation=false -m:1 -nr:false

dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore -p:DisableGitVersionTask=true -p:UseSharedCompilation=false -m:1 -nr:false --filter 'FullyQualifiedName~LocalGatewaySettingsTests|FullyQualifiedName~GatewayIdentityRemovalTests|FullyQualifiedName~NativeGatewayRemovalTests'

dotnet test .\tests\OpenClaw.WinNode.Cli.Tests\OpenClaw.WinNode.Cli.Tests.csproj -p:DisableGitVersionTask=true -p:UseSharedCompilation=false -m:1 -nr:false

# Full-suite expansion reuses those diagnostic assemblies without invoking GitVersion.
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-build --no-restore -- RunConfiguration.TestSessionTimeout=300000
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-build --no-restore -- RunConfiguration.TestSessionTimeout=300000

$env:OPENCLAW_RUN_INTEGRATION = '1'
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-build --no-restore --filter FullyQualifiedName~Run_CompletesPromptly_WhenOrphanChildProcessHoldsStdoutHandle
Diagnostic result Actual execution
ARM64 UI/app compilation Passed, 0 errors; one generated-XAML obsolete-Icon warning
SetupEngine owner/argument tests 311 passed, 0 skipped
Full Tray tests 4,141 passed, 0 skipped
Full Shared tests 4,314 passed, 35 ordinary opt-in skips
Connection ownership/removal tests 35 passed, 0 skipped
Full Connection tests, existing diagnostic assembly 1,625 passed, 1 configured cross-volume skip
Full SetupEngine tests, existing diagnostic assembly 2,409 passed, 1 configured cross-volume skip
Full WinNode CLI tests 129 passed, 0 skipped; restored missing assets after initial NETSDK1004
Original CI orphan-stdout failure reproduced locally with integration enabled 1 passed, 0 skipped; this does not erase the earlier CI failure

The new compound-recovery test was also run before the exception fix: 1 failed, 0 skipped, on the real escaped AggregateException after both commit and restoration failed. After the fix, it passed within the 311-test run. It verifies the retained staged identity, saved connections, recovery path/warning, serialized failed outcome, and exit code 1.

The first diagnostic Tray run caught an obsolete exact-source assertion and the untranslated-copy rationale requirement. Both were fixed without weakening the guards; the full suite then passed.

One independent Copilot-hosted, read-only P0-P3 source review, including the subsequent resource/source-guard deltas, found no significant issues. This was not helper-isolated and did not establish runtime proof.

Fresh Build and Test started naturally for the appended head. After its UI startup failure, the user explicitly authorized one UI-job-only debug retry: gh run rerun 38981137029 --repo openclaw/openclaw-windows-node --job 117242849021 --debug. That single retry and the CI Gate passed.

Hosted evidence is from the integration tree, not an identical PR-head tree. Checkout logs identify merge candidate 23b57b31186f01065ae4fd53571d9a16765f454a, combining repair head 4ef785b893402cfbd02755d9ffc473213da8ff2b with main a259c5668fe4658c26baff30940185c77e8f47a3.

The completed Core and CLI job used ordinary metadata generation: Shared 4,385 passed, 1 skipped; Connection 1,695 passed, 1 skipped; WinNode CLI 129 passed, 0 skipped. The original orphan-stdout failure passed in 64 ms. Mandatory local closeout was independently run as recorded above.

The run has now completed with these additional results:

Hosted report or build Verified result
Tray 4,148 passed, 0 skipped
SetupEngine 2,420 passed, 1 skipped; compound identity recovery regression passed in 40 ms
Tray integration / development settings 51 passed, 2 skipped / 10 passed, 0 skipped
Functional UI 19 passed, 0 skipped
Tray UI Attempt 1 aborted before completed results; authorized attempt 2: 498 passed, 25 ordinary skips
Hardware-profile gallery / accessibility Attempt 2: 12 passed / 23 passed, no skips
Setup/connect E2E 40 passed, 7 MXC cases NotExecuted
Network / revocation recovery E2E 2 passed / 1 passed, no skips
Release metadata, x64 publish smoke, x64/ARM64 MSIX, Store bundle Passed

The original failure is preserved, not called fixed. The first UI attempt last logged UIThreadProc: before bootstrap, then aborted for five minutes of inactivity. Its TRX and sequence artifact contains no completed test results and no dump. The sequence names audio and WSL-binding cases as incomplete, not proven causes. The same-base main run passed 471 UI cases with 25 skips and completed bootstrap in 18 ms.

The authorized retry tested the same integration commit and completed bootstrap in 33 ms. All seven scoped native-fallback, WSL finalization and classic-binding cases are individually logged as passed. Its successful reports are separate from the failed attempt. The first hang remains unexplained and was not reproduced; no source change, weakened assertion or hidden skip was used to obtain the retry result.

The passing setup/connect lane explicitly skipped all seven MXC cases because hosted runners lack the required runtime. It contains zero SelectedGatewayRemovalTests results. It therefore does not establish strict MXC or selected-target teardown proof.

The integration comparison changes none of the repaired production files. Adjacent native startup/handoff and WSL reachability changes were inspected without finding a repair-integration conflict. This does not certify every runtime interaction or a future landing base.

At final refresh, main advanced by one Nemotron Bolt catalog/receipt-compatibility commit to c2ce4f50eb6313121ffb385e086cf4c4ba7b982b. Its production changes do not edit the repaired owners. The published merge ref remains the tested 23b57b31, and GitHub reports clean mergeability. A merge with the newer main has not been executed or tested here.

Required proof pools

windows-winui-interactive, windows-wsl-gateway-e2e, windows-wsl-mxc, windows-clean-installer-upgrade, windows-11-arm64.

Real behavior proof

Scoped synthetic mounted UI: 7 passed, 0 skipped. In a separately authorized no-build slot, the frozen ARM64 diagnostic assembly exercised native page/window classic-fallback refusal, both WSL Skip/Retry drift cases, supported classic fallback, and both pinned WSL-binding cases. The run lasted 8.2 seconds; all owned test processes exited normally. The exact isolated data/local/roaming roots were inspected and removed, and the desktop slot was explicitly released. There was no physical input, unrelated capture, or real native package/WSL/Gateway operation.

Test DLL SHA256 before and after: 06D12EBB3051A2123E8D1515DFD3EBA2A333BA214E7943F9F3D5017A34BA90EB. This is metadata-disabled diagnostic assembly evidence, not canonical local validation or real-path proof. Hosted screenshots cover adjacent hardware/workspace surfaces and are not credited as changed native/WSL management-state proof.

Subsequent normal ARM64 UI-test compilation produced SHA256 1E6CA198DED1B85B1544CA71D9AB73898698A3AACB42A6987554D843E0AE9FD1. That new local binary was not launched under the already-released diagnostic slot. The hosted normal UI run independently passed the same seven cases.

Not verified / blocked: native/WSL teardown, preservation, retry/recovery, strict Gateway/MXC, and visible changed-state Settings proof still require an approved disposable host and exact resource targets. The user selected an existing disposable host they will provide, but host identity/access and provisioning/removal authority remain unavailable. No proof pool is declared complete. Older overlay runs and other merged PRs are not evidence for this head.

90% merge confidence is not established. The remaining gates are approved native/WSL management, preservation, strict MXC and changed-state visible proof, followed by final landing-candidate verification.

@karkarl

karkarl commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

Adversarial re-review of #1623 (fix(settings): separate native and WSL gateway management)

Exact base and merge base: 9ac0169aa0f18c8961e482ba095ca62e594961da
Exact reviewed head: 4ef785b893402cfbd02755d9ffc473213da8ff2b
Prior frozen head: 616d66d8df27eda7659519664583c558c02d3328
Older reviewed head: 907277ce29980f1d3fbcf5c2282b3c88ac037c40

Independent models: Claude Opus 5.5 (claude-opus-5.5, high reasoning, default context) and GPT-6 Astra (gpt-6-astra, high reasoning, long_context). Both used the same pinned diff/callers/tests context and identical prompt SHA-256 bf18810969bccee57a6d2c5cfe1b9bd07ad74a07869eaf8e0c8c143a27059d27. Neither model was substituted.

HIGH consensus

Issue Opus 5.5 GPT-6 Astra Fix Confidence
WSL removal forgets its target before marker and receipt cleanup is reliable LOW MEDIUM 95%

GatewayIdentityRemoval.Remove commits removal before DeleteMarker and receipt deletion. A locked matching marker makes DeleteMarker return false, which is ignored and can report success with stale ownership metadata. A receipt deletion error instead reports failure after the target is gone, so selected-removal retry cannot pass admission. Check cleanup before forgetting the target, or return an explicit partial-cleanup outcome with exact paths and a supported recovery route. Add locked/read-only marker and receipt tests.

LOW consensus

Issue Opus 5.5 GPT-6 Astra Fix Confidence
Interactive fallback can reuse credentials for an explicitly removed legacy endpoint MEDIUM not flagged 95%
Existing/native accepted-connection flow may expose classic setup until target admission rejects it; disputed policy question LOW not flagged 80%
Stale registry memory; rejected as data loss, fails closed LOW not flagged 90%
Suppression loss after corruption/older rewrite; narrowed to pre-existing compatibility LOW not flagged 70%
Native teardown timeout; proof gap, no corruption established LOW not flagged 60%
Same-user child authority-hash argument; rejected as additional secret exposure LOW not flagged 99%

The credential fallback is verified reachable. When no record is active, it constructs legacy-settings from the retained settings URL and credentials but never checks GatewayRegistry.IsLegacyMigrationSuppressed. Loopback shared/bootstrap tokens are provenance-gated, but a root device token is not classed as strong; non-loopback legacy tokens also pass that local provenance gate. Honor endpoint suppression before resolving any legacy fallback and add remove-then-resolve tests.

The classic-setup item is retained as a LOW one-model concern because existing-native fallback is now rejected at the explicit existing-native page/window boundaries, while the separate accepted Existing/Remote flow lacks behavioral coverage. Verify intended route policy before changing behavior.

Rejected or narrowed

  • Stale tray registry memory fails closed by refusing an overwrite. Treat reload UX as robustness, not data loss.
  • Suppression loss after registry corruption or an older-version rewrite is largely pre-existing compatibility behavior, not a new PR defect.
  • Native teardown timeout recovery and unrelated-installation preservation remain runtime proof questions. Source evidence did not establish corruption.
  • The removal authority hash in same-user child arguments is not a meaningful additional secret exposure.
  • The new delta fixes compound rollback message serialization, WSL finalization recovery UI, and explicit existing-native classic fallback rejection.

Checks, proof, and triage

Assigned-head checks contain 20 successful and 5 skipped checks; CI Gate is green. Hosted execution used integration commit 23b57b31186f01065ae4fd53571d9a16765f454a, whose tree differs from the reviewed head. The original UI attempt failed and its retry passed; the initial failure remains unexplained. These are qualified integration results, not clean-head runtime proof.

Mandatory current-head proof remains missing for live WinUI removal/failure/recovery, clean-head WSL selected removal and interruption recovery, strict WSL/MXC without required skips or overlays, native teardown/coexistence and cleanup recovery, and ARM64 runtime/UI behavior. Older 907277ce proof used an uncommitted provisioning overlay and does not certify this head.

Decision: HOLD_FOR_AUTHOR. Take confidence: 65%. Recommendation confidence: 97%. Fix the two verified cleanup/credential issues or explicitly disposition them, then obtain the declared clean-head runtime proof before landing.

karkarl and others added 8 commits October 20, 2026 15:34
Preserve removal suppression alongside explicit-only legacy credential recovery and retain both sets of localized resources.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 114689d7-761a-4a23-a1d4-51fe1a04ca54
Keep explicit-removal suppression conditional on an existing legacy target after merging the nullable endpoint contract. Protect the startup guard in the existing ownership regression.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 114689d7-761a-4a23-a1d4-51fe1a04ca54
Preserve main's AI setup grouping and the native classic-wizard fallback guard.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 114689d7-761a-4a23-a1d4-51fe1a04ca54
Disconnect only the confirmed target, restore the connection on a failed removal, reconcile the tray registry, refuse CLI removal while the tray runs, bind consent without secrets, pin WSL setup before the access draft, and align legacy removal copy.

Co-authored-by: Copilot App <[email protected]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

New head 6c94eb9 includes the main merge and review fixes for gateway removal recovery.

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 28, 2026
Suppress legacy credential fallback for removed gateways, correct legacy native removal copy, delete WSL marker and receipt before forgetting the target, and align consent tests and docs with token-free removal digest.

Co-authored-by: Copilot App <[email protected]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@bkudiess

bkudiess commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this broader proposal in favor of #2017 (fix: native Gateways are treated as WSL in Settings and setup). The new draft keeps only the small Settings, keepalive, tray-label and WSL replacement-reporting fixes. The selected-Gateway removal, credential-cleanup and broader reopened-onboarding work from this PR is intentionally not carried forward. The draft records the remaining UI/WSL proof and source-review gaps; this closure does not claim that broader work is complete.

@bkudiess bkudiess closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🧂 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants