Skip to content

feat: add standalone clean uninstall for demo devices - #1598

Merged
karkarl merged 5 commits into
mainfrom
karkarl-clean-uninstall-tooling
Oct 6, 2026
Merged

karkarl merged 5 commits into
mainfrom
karkarl-clean-uninstall-tooling

Conversation

@karkarl

@karkarl karkarl commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Demo-device operators need a repeatable OpenClaw clean-retest procedure that works without Copilot, a build environment, or remembered cleanup commands.

User Impact

User impact: copy scripts\clean-uninstall.ps1 to a Windows test device and preview cleanup with Windows PowerShell 5.1. Repeat with -ConfirmDestructive to apply.

-All enables dev-state, receipt-backed cached-model, and owned release/dev WSL cleanup together. -All -ExcludeCachedModels preserves external shared cached models while selecting the other built-in scopes. Exclusion overrides explicit -RemoveCachedModels too. Extra app-data profiles remain explicit -AdditionalProfilePath arguments.

-RemoveIsolatedProfilePath separately selects exact leftover Windows isolated-profile directories, including registrations whose folders were manually deleted. Only unloaded, non-special S-1-5-110 profiles directly under Windows ProfilesDirectory qualify. This is never implied by -All. Applying requires elevated Windows PowerShell as the same affected user; there is no automatic elevation. Unselected isolated profiles are reported with ownership unverified, not presumed to belong to OpenClaw.

Confirmed cleanup permanently deletes selected identities, conversations, settings, and WSL filesystems. Models inside deleted app/Windows profiles or WSL filesystems are still removed even with -ExcludeCachedModels. Diagnostic ZIP preservation is not a recoverable state backup. Explicit Windows profile cleanup removes registration and files, not unrecorded MXC backend sessions or local accounts.

Preserved WSL storage must not overlap cleanup targets. The usual %LOCALAPPDATA%\OpenClawTray\wsl\OpenClawGateway location blocks default cleanup: explicitly select -RemoveWslGateway, or relocate the distro using supported WSL tools first. Choosing No in Inno does not make deleting a parent profile safe.

Why This Change Was Made

Extends the existing uninstall skill using the prior native hard-clean procedure and Pedro's wiper as references, while keeping the legacy dev/WSL engine procedure distinct.

The script inventories exact targets, runs native Gateway teardown before package removal, keeps Inno interactive, and removes residual state only after teardown/unregistration checks. PID identity, protected-path/reparse, model-provenance/digest, startup ownership, and preserved-WSL checks stop uncertain cleanup. Explicit Windows profiles use Remove-CimInstance on freshly revalidated Win32_UserProfile records, with SID/path/load-state checks and registration/directory absence verification. There is no fallback to deleting profile registry keys or sweeping C:\Users by name pattern.

Evidence

Thirty isolated PowerShell scenarios pass, including explicit profile cleanup with missing directories, dangerous/ambiguous target rejection, identity changes, provider failures, elevation/WhatIf gates, WSL/report overlap, and successful removal with no installed packages while retaining unselected profiles. The Shared suite runs the harness automatically. Cached-model opt-out binding coverage remains in the suite.

A live read-only preview selected the two user-reported missing-directory profile registrations and explicitly preserved six other isolated profiles. No actual Windows profile deletion was run. Rubber-duck review of this addition found no remaining blocking issues after fixing a lifecycle-wiring bug caught by the new apply regression.

Earlier Hanselman review used Claude Opus 5.5 and GPT-6 Astra independently; seven accepted findings and verified delta issues were addressed. The earlier short-path fix also passed a real 8.3 TEMP-alias harness run at dd891023. Structured autoreview remains unavailable because Python/Codex tooling is missing. This PR stays draft pending disposable-device destructive 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-clean-installer-upgrade: prove native Gateway teardown, MSIX/Inno removal, residual profiles/models, optional WSL removal, and explicit Windows profile registration/file removal on a disposable device.
  • windows-11-arm64: verify real destructive behavior on ARM64; local ARM64 builds and mocked operations alone do not establish it.

Validation

Head: b1afc9439fc0e95beaadbc264f1f390ac825d9cb. Tests used this worktree's OPENCLAW_REPO_ROOT and an isolated OPENCLAW_TRAY_DATA_DIR.

  • powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build.ps1: PASS, all five build targets.
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'console;verbosity=minimal': PASS, 4,223 passed, 35 skipped, 0 failed on final full rerun.
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'console;verbosity=minimal': PASS, 3,862 passed, 0 skipped, 0 failed.
  • powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-clean-uninstall.ps1: PASS, 30 isolated scenarios.
  • powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\validate-agent-skills.ps1: PASS, 8 skills and 17 Markdown files.
  • git diff --check: PASS before commit.

An initial Shared run hit the unrelated existing Markdown scaling threshold (751ms versus <500ms). dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName=OpenClaw.Shared.Tests.MarkdownParserFuzzTests.Build_ManyListItems_ScalingCurve' --logger 'console;verbosity=minimal' then passed (1 test). All three required commands were rerun and passed without changing that test or its threshold.

python .\.agents\skills\autoreview\scripts\autoreview --mode local was blocked on the initial head by missing Python (exit 9009); Codex is unavailable. New-head CI must still pass; these are local results.

Real Behavior Proof

  • Environment tested: native Windows ARM64, Windows PowerShell 5.1, .NET 10; isolated test settings plus a read-only preview of two real profile registrations.
  • PR head or commit tested: b1afc9439fc0e95beaadbc264f1f390ac825d9cb (final source tested and committed unchanged).
  • Exact steps or command run: powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-clean-uninstall.ps1; live PowerShell preview invoked .\scripts\clean-uninstall.ps1 -All -ExcludeCachedModels -RemoveIsolatedProfilePath $paths, where $paths contained exactly the two user-reported directories. No confirmation was supplied.
  • Evidence after fix (live paths/SIDs redacted):
REMOVE isolated Windows profile and registration: [selected profile A] [SID A]
REMOVE isolated Windows profile and registration: [selected profile B] [SID B]
WARNING: Unselected isolated Windows profile (OpenClaw ownership unverified): [other profiles]. Preserved...
DRY RUN. Nothing changed. Repeat the same options with -ConfirmDestructive to apply.

Isolated harness output:

PASS: explicit isolated profile cleanup removes registration when its folder is already absent
PASS: isolated profile selection rejects ordinary, loaded, special, ambiguous, and unregistered targets
PASS: isolated profile removal rechecks identity and propagates provider failures and leftovers
PASS: explicit Windows profiles obey preview, WhatIf, elevation, and WSL preservation gates
PASS: confirmed isolated profile removal records exact scope and preserves unselected profiles
Clean uninstall regressions passed: 30
  • Observed result: live inventory recognizes both selected unloaded isolated profiles despite their missing folders. Other profiles remain unselected. Mocked CIM deletion verifies exact targeting, registration/file absence, failure propagation, and lifecycle wiring without requiring an installed Gateway package.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A; CLI-only change, redacted copied output above.
  • Not verified or blocked: actual Remove-CimInstance deletion of real isolated profiles, Windows removal timing/locked-file behavior, and full native/MSIX/Inno/WSL destructive proof on disposable signed-artifact installations. Ordinary user profiles, unregistered residual directories, UNC targets, and reparse-point profile roots are unsupported. Native backend session/account removal is not replaced by explicit profile cleanup.

Security Impact

  • New permissions or capabilities? (Yes/No): Yes; explicit Windows profile deletion requires an elevated token. No automatic elevation.
  • Secrets or tokens handling changed? (Yes/No): Yes; cleanup can delete selected credential/profile files and preserve local diagnostic ZIPs.
  • New or changed network calls? (Yes/No): No.
  • Command or tool execution surface changed? (Yes/No): Yes.
  • Data access scope changed? (Yes/No): Yes.
  • If any answer is Yes, explain the risk and mitigation: preview and destructive confirmation remain separate. Native teardown uses the selected package alias. Explicit Windows profiles require operator-selected paths plus unloaded/non-special isolated SID identity, root/path checks, preflight elevation, fresh identity checks, and provider-result verification. Unknown ownership is reported, never inferred from names. Shared model exclusion wins over removal flags, but data inside explicitly deleted containers is not retained. Reports remain local and may contain sensitive diagnostics. The tool targets quiescent trusted test devices, not hostile concurrent filesystem mutation.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes; existing removal scopes are not expanded automatically. Unselected isolated-profile inventory now produces advisory warnings, and unreadable inventory remains a fail-closed condition.
  • Config or environment changes? (Yes/No): No persistent configuration changes. Run as the affected user; elevation is additionally required only when applying explicit Windows profile removal. Clear path overrides and supply extra paths explicitly.
  • Migration needed? (Yes/No): No.
  • If yes, list the exact upgrade steps: N/A.

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.

App-native reviews were addressed locally. These unchecked boxes do not assert that every GitHub bot review thread has been resolved.

Provide dry-run-first PowerShell cleanup with native Gateway teardown, guarded profile and model removal, and an All scope shortcut. Extend the uninstall skill and cover safety boundaries with isolated regressions.

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

clawsweeper Bot commented Oct 2, 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed October 6, 2026, 4:09 PM ET / 20:09 UTC (Revision 9).

ClawSweeper review

What this changes

Adds a standalone PowerShell tool, operator instructions, and safety tests for previewing and removing selected OpenClaw installations, profiles, models, and WSL distributions.

Merge readiness

⛔ Blocked before merge - 8 items remain

Keep open: the standalone workflow remains useful and is absent from current main, but both prior package-admission defects remain. Passing CI resolves the earlier test failure, not the destructive-cleanup safety gaps.

Priority: P2
Reviewed head: 147abe277eaa07a380a2e5910c712aa3285904e4

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful guarded implementation and passing CI remain limited by two package-admission defects and incomplete final-effect proof.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the unchanged cleanup owner has real ARM64 PowerShell preview evidence for profile selection and preservation, but no final-effect evidence for trusted package/CIM cleanup or foreign-publisher rejection before execution. Demonstrate allowed removal, unselected development preservation, and identity-change rejection on the changed authority paths, with the declared disposable installer/ARM64 coverage. No stored-format contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper 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: Authority-chain proof required: the unchanged cleanup owner has real ARM64 PowerShell preview evidence for profile selection and preservation, but no final-effect evidence for trusted package/CIM cleanup or foreign-publisher rejection before execution. Demonstrate allowed removal, unselected development preservation, and identity-change rejection on the changed authority paths, with the declared disposable installer/ARM64 coverage. No stored-format contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 10 items Pinned introduced scope: The merge-base-to-head delta introduces seven files or modifications. The original head and checkout are 147abe2; base-only changes are excluded from this review.
Both package-admission findings remain: The default name list includes OpenClaw.Gateway, while Dev only adds the development Companion. Package filtering checks Name alone. Selected Gateway families supply executable aliases at lines 460–476, and selected full names reach Remove-AppxPackage at lines 716–718.
Existing trusted identity contract: Current main distinguishes Store and development Gateway identities and qualifies both by exact publisher. Checkout lines 7 and 10 identify the publisher and development name. Blame associates these lines with merged native-setup history, supporting routing to karkarl.
Findings 2 actionable findings [P1] Gate the development Gateway package behind IncludeDev
[P1] Validate package publishers before trusting their aliases
Security Needs attention Foreign package identity can authorize teardown execution: A same-name package from another publisher is accepted by the selector and supplies the executable invoked for destructive teardown, potentially from an elevated cleanup session.

How this fits together

The cleanup tool inventories Windows installations and local state, then applies operator-confirmed removal. Native Gateway teardown precedes package removal, followed by residual-state cleanup and absence checks.

flowchart TD
  A[Operator scope and confirmation] --> B[Inventory installations and state]
  B --> C[Validate ownership and preservation]
  C --> D[Preview exact targets]
  D --> E[Confirmed native teardown]
  E --> F[Remove packages and selected state]
  F --> G[Verify removal and preservation]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the unchanged cleanup owner has real ARM64 PowerShell preview evidence for profile selection and preservation, but no final-effect evidence for trusted package/CIM cleanup or foreign-publisher rejection before execution. Demonstrate allowed removal, unselected development preservation, and identity-change rejection on the changed authority paths, with the declared disposable installer/ARM64 coverage. No stored-format contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Gate the development Gateway package behind IncludeDev (P1) - The default list includes OpenClaw.Gateway, which the existing identity contract defines as the development Gateway. Running with only -ConfirmDestructive therefore executes its teardown and removes it, despite the release-only default and development opt-in contract. Move this identity into the $Dev branch and exercise the production selector in regression coverage. This prior finding remains unresolved.
  • Validate package publishers before trusting their aliases (P1) - Filtering only by Name admits separately signed packages with the same name. Their family names then select clawctl.exe for execution at lines 460–476 and their full names reach package removal. A package-qualified alias establishes which package runs, but does not establish a trusted publisher. Enforce exact supported name/publisher identities before deriving ownership roots or performing I/O, including the fresh inventory check. This prior finding remains unresolved.
  • Resolve security concern: Foreign package identity can authorize teardown execution - A same-name package from another publisher is accepted by the selector and supplies the executable invoked for destructive teardown, potentially from an elevated cleanup session.
  • Resolve merge risk (P1) - Default confirmed cleanup can tear down and remove an existing development Gateway without development-scope consent.
  • Resolve merge risk (P1) - A same-name package from another publisher can supply the executable selected for teardown and become a removal target.
  • Resolve merge risk (P1) - Disposable final-effect evidence remains missing for allowed cleanup, foreign-publisher rejection, preservation of unselected development installations, and the declared installer/ARM64 coverage.
  • Complete next step (P2) - Repair development opt-in and publisher admission, then supply disposable authority final-effect and installer/ARM64 proof before merge.

Findings

  • [P1] Gate the development Gateway package behind IncludeDev — scripts/clean-uninstall.ps1:188-189
  • [P1] Validate package publishers before trusting their aliases — scripts/clean-uninstall.ps1:190
  • [high] Foreign package identity can authorize teardown execution — scripts/clean-uninstall.ps1:190
Agent review details

Security

Needs attention: Package admission crosses a publisher trust boundary without validating the publisher.

Review metrics

Metric Value Why it matters
Production and test growth production +796 lines; tests +655 lines The standalone-device requirement explains the new script, but its destructive package selector remains outside lifecycle-test coverage.

Merge-risk options

Maintainer options:

  1. Repair admission and prove bounded cleanup (recommended)
    Require exact trusted publisher identities, gate development packages behind explicit consent, and provide disposable final-effect evidence for selected removal and unselected preservation.

Technical review

Best possible solution:

Keep the standalone workflow, enforce trusted package identities and explicit development consent, and verify removal and preservation on disposable existing installations before landing.

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

Yes, source establishes both introduced triggers: default selection admits the development Gateway, and a same-name foreign-publisher package reaches teardown and removal. No destructive execution was performed.

Is this the best way to solve the issue?

No, the current package selector undermines the otherwise guarded workflow; mirror the existing exact identity contract and require development opt-in.

Full review comments:

  • [P1] Gate the development Gateway package behind IncludeDev — scripts/clean-uninstall.ps1:188-189
    The default list includes OpenClaw.Gateway, which the existing identity contract defines as the development Gateway. Running with only -ConfirmDestructive therefore executes its teardown and removes it, despite the release-only default and development opt-in contract. Move this identity into the $Dev branch and exercise the production selector in regression coverage. This prior finding remains unresolved.
    Confidence: 0.99
  • [P1] Validate package publishers before trusting their aliases — scripts/clean-uninstall.ps1:190
    Filtering only by Name admits separately signed packages with the same name. Their family names then select clawctl.exe for execution at lines 460–476 and their full names reach package removal. A package-qualified alias establishes which package runs, but does not establish a trusted publisher. Enforce exact supported name/publisher identities before deriving ownership roots or performing I/O, including the fresh inventory check. This prior finding remains unresolved.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 791574ddf557.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded demo-device operator feature with merge-blocking safety defects, rather than an urgent shipped regression.
  • merge-risk: 🚨 compatibility: Default confirmed removal includes a development Gateway despite the documented release-only default.
  • merge-risk: 🚨 security-boundary: Package names alone authorize executable selection and removal across a publisher boundary.
  • 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: Authority-chain proof required: the unchanged cleanup owner has real ARM64 PowerShell preview evidence for profile selection and preservation, but no final-effect evidence for trusted package/CIM cleanup or foreign-publisher rejection before execution. Demonstrate allowed removal, unselected development preservation, and identity-change rejection on the changed authority paths, with the declared disposable installer/ARM64 coverage. No stored-format contract changes. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Foreign package identity can authorize teardown execution — scripts/clean-uninstall.ps1:190
    A same-name package from another publisher is accepted by the selector and supplies the executable invoked for destructive teardown, potentially from an elevated cleanup session.
    Confidence: 0.99

What I checked:

  • Pinned introduced scope: The merge-base-to-head delta introduces seven files or modifications. The original head and checkout are 147abe2; base-only changes are excluded from this review. (scripts/clean-uninstall.ps1:1, 147abe277eaa)
  • Both package-admission findings remain: The default name list includes OpenClaw.Gateway, while Dev only adds the development Companion. Package filtering checks Name alone. Selected Gateway families supply executable aliases at lines 460–476, and selected full names reach Remove-AppxPackage at lines 716–718. (scripts/clean-uninstall.ps1:188, 147abe277eaa)
  • Existing trusted identity contract: Current main distinguishes Store and development Gateway identities and qualifies both by exact publisher. Checkout lines 7 and 10 identify the publisher and development name. Blame associates these lines with merged native-setup history, supporting routing to karkarl. (src/OpenClaw.Connection/NativeGateway/NativeGatewayPackageIdentity.cs:7, dba81213371c)
  • Current main does not provide this standalone workflow: The current-main tree lacks clean-uninstall.ps1 and HARD-CLEAN.md. Its uninstall skill describes the embedded dev/WSL engine, whose retained artifacts and scope differ from the requested standalone native-package cleanup. (.agents/skills/uninstall/SKILL.md:7, 791574ddf557)
  • Captured proof and complete body inspection: Captured body SHA-256 ceb8b0cb4c2d23a28bf2d0240c9c430bc8277b537549b3cea8447834f602076c includes real ARM64 Windows PowerShell preview output selecting two registrations and preserving others. Full-body inspection also exposes the declared installer/ARM64 pools and local validation counts. Actual CIM deletion and destructive native/MSIX/Inno/WSL proof are explicitly unverified. The cleanup script and harness are unchanged between the tested b1afc94 head and the pinned head. (147abe277eaa)
  • Production selector is bypassed in lifecycle tests: The harness loads production functions, but replaces Get-CleanPackages for lifecycle scenarios and mocks package removal, teardown, WSL operations, and CIM deletion. Its successful lifecycle scenarios therefore do not establish the missing package allow/deny boundary. (scripts/test-clean-uninstall.ps1:410, 147abe277eaa)

Likely related people:

  • Karen: Raw commit dba8121 adds src/OpenClaw.Connection/NativeGateway/NativeGatewayPackageIdentity.cs:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dba81213371c; files: src/OpenClaw.Connection/NativeGateway/NativeGatewayPackageIdentity.cs)
  • Scott Hanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Pedro Larroy: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Fix both package-admission findings and add regressions using the production selector.
  • Add final-effect proof for trusted cleanup and foreign-publisher rejection, preserving unselected development installations and rejecting changed profile identities before deletion.
  • Complete the declared disposable installer/ARM64 coverage, redact private details, and update the PR body to trigger re-review; if needed, ask a maintainer to comment @clawsweeper re-review.

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 (8 earlier review cycles)
  • reviewed 2026-10-02T07:55:02.858Z sha 2b6c9e3 :: blocked before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases
  • reviewed 2026-10-02T08:17:02.949Z sha 2b6c9e3 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases | [P1] Select Inno uninstallers by their registered application identity
  • reviewed 2026-10-02T08:41:36.891Z sha dd89102 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases
  • reviewed 2026-10-02T08:53:24.625Z sha 3059777 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases
  • reviewed 2026-10-02T09:34:56.291Z sha b1afc94 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases
  • reviewed 2026-10-06T15:09:00.647Z sha b1afc94 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases
  • reviewed 2026-10-06T18:02:22.952Z sha 147abe2 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases
  • reviewed 2026-10-06T18:16:14.892Z sha 147abe2 :: needs real behavior proof before merge. :: [P1] Gate the development Gateway package behind IncludeDev | [P1] Validate package publishers before trusting their aliases

@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 2, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
Address all seven accepted Hanselman findings with isolated regressions, including real short-path TEMP handling and supported Inno version metadata.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 2, 2026
karkarl and others added 2 commits October 2, 2026 01:48
Use Windows profile deletion for exact unloaded isolated-profile registrations, with preview, elevation, SID/path rechecks and preservation gates. Never infer ownership from a folder name or select these profiles through -All.

Co-authored-by: Copilot App <[email protected]>
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 2, 2026
@karkarl

karkarl commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

Scoped maintainer triage verdict

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

Reviewed head: b1afc9439fc0e95beaadbc264f1f390ac825d9cb. Live state refreshed October 5, 2026 (UTC): open, draft, merge state BLOCKED, CI Gate FAILURE. A clean merge state is not proof of validation against the eventual landing base.

Basis and remaining gates

Two source-level admission defects remain: default package selection includes the development Gateway identity OpenClaw.Gateway, and selection by package Name lacks Publisher qualification before package-qualified alias execution/removal. Require explicit dev opt-in and verified full package identity/publisher. Current hosted failure includes the PR-owned StandaloneCleanup_PassesIsolatedSafetyRegressions test. Mocked scenarios and read-only preview do not prove destructive package/CIM/profile cleanup. Never run this path on a shared developer profile.

To reach 90%+ take confidence

karkarl: exclude dev Gateway identity by default; qualify package publisher and identity before alias execution/removal; fix own failing safety test. Then disposable-profile/CIM/package allow-deny proof. Floor + Installer/ARM64.

Here, Floor means final-head .\build.ps1, dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore and dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore, with real restore/build first on a fresh worktree. Add the touched-owner suites. UI means windows-winui-interactive with isolated data and visible changed-state proof; other hardware/installer/Gateway pools must match the affected behavior. Recheck the actual landing base, required CI and final review; rerun affected proof if integration changes the head.

Quoted execution results are author/maintainer receipts reviewed during the scoped triage, not tests rerun by this posting session. Missing or stale-head proof is not a pass. A dedicated child session is preparing a read-only revalidation/closeout plan; no implementation, destructive execution, CI rerun or merge is authorized by this verdict.

@karkarl karkarl added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 6, 2026
Clear the inherited PSModulePath in the test child process so Windows PowerShell 5.1 resolves its own inbox modules instead of PowerShell 7 modules passed through the CI test host.

Co-authored-by: Copilot App <[email protected]>
@karkarl karkarl removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 6, 2026
@karkarl
karkarl marked this pull request as ready for review October 6, 2026 20:05
@karkarl
karkarl merged commit 839dad2 into main Oct 6, 2026
30 checks passed
@karkarl
karkarl deleted the karkarl-clean-uninstall-tooling branch October 6, 2026 20:54
@clawsweeper clawsweeper Bot mentioned this pull request Oct 15, 2026
3 of 16 tasks
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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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.

1 participant