Repository navigation
[2026.10.9] retry guarded package rollback and report recovery - #187277
Conversation
Passive macOS Gateway stops now preserve an absent current-profile service definition without invoking uninstall, while explicit low-level ghost recovery remains available. Release adaptation: the 2026.10.8 backport of #180390 removed the absent-plist guard from GatewayLaunchAgentManager's disable path without main's follow-up, so every passive stop with no LaunchAgent plist ran `openclaw gateway uninstall` (mac validation: GatewayProcessManagerTests "pause preserves unretainable services" [absent]). Stable has no migration-pending custody or `.authority` wrapper, so the guard checks `custody.definition.plist` directly. Mac-only post-tag fix; npm, Docker and Linux bytes are unaffected. (cherry picked from commit cb10ec4)
…ckage root (#185160) A denied rollback publication or compensation rename could leave the installed package root missing, so the CLI and managed Gateway could not start and recovery required manually renaming retained backup directories. Rollback renames now retry transient Windows denials with authority and identity checks, and a stranded live root reports the exact move that restores a bootable installation. Fixes #184889 Backport only package-update rollback filesystem and regression coverage; exclude unrelated native plugin work and all dependency/toolchain/release validation changes. Upstream-source: d091621 (cherry picked from commit d091621) Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR backports guarded Windows package rollback retries and exact recovery-path diagnostics to release/2026.10.8. Example: Windows temporarily denies restoring package 1.0.0 after rejecting an update to 2.0.0.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored backport repairs a verified release-line rollback defect, and no introduced code defect was found. Priority: P0 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe installed updater delegates package restoration to the swap transaction and filesystem owner, which return rollback status, retained artifacts, and recovery instructions. flowchart TD
A[Installed updater] --> B[Package swap transaction]
B --> C[Package filesystem owner]
C --> D[Guarded Windows rename retries]
D --> E[Live and retained package directories]
C --> F[Rollback status and recovery instructions]
Technical reviewBest possible solution: Use this focused backport, with visible Doctor recovery for already-stranded installations considered separately. Do we have a high-confidence way to reproduce the issue? The released source establishes the missing-root failure when publication and compensation both reject; upstream native Windows traces corroborate that path, and this review executed no target code. Is this the best way to solve the issue? Sharing the established bounded retry owner is the smallest complete repair for transient locks and preserves the intentional exact-object restoration contract under permanent failure. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2e94b0988ea1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +48, Tests +218. Total +266 across 3 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 29, 2026, 12:30 AM ET / 04:30 UTC. |
Source and scope
Validation
PASS: node scripts/test-projects.mts src/infra/package-update-filesystem.test.ts --testNamePattern "names the retained backup|stops Windows rollback rename retries" (3/3).
PASS: scoped formatting check and git diff --check.
Full filesystem suite is not green (one launcher-sync test failure); full swap/subprocess integration also remains a gate after local worker-build/dependency failures. No unrelated source workaround was applied.
Validation used own local node_modules link directories, release-pinned TypeScript (and fs-safe for rollback), and borrowed installed tools (Vitest 5.0.5); no dependency or toolchain source was changed.
Remaining gates — draft only
Not ready for review, merge, or release. No release shipped.