Repository navigation
Conversation
|
🦞👀 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: blocked before merge. What this changesFor npm-linked installations on macOS and Linux, explicit dev updates install into a fresh checkout while preserving the original checkout and local edits. Review scores
Merge readiness⛔ Blocked before merge - 3 items remain This remains useful work absent from current main. Prior actionable findings are resolved, but update qualification remains incomplete and GitHub currently reports merge conflicts. The member-authored, maintainer-labeled PR also requires explicit maintainer handling. Likely related people: RomneyDa and Peter Steinberger, as routing candidates based on merged update work. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe CLI updater selects and validates an installation, then uses the existing package transaction to activate it and recover failures. Relocation changes the npm launcher’s destination and feeds the settled installation into Gateway restart and recovery. flowchart TD
A[Explicit dev update] --> B[Inspect dirty checkout and npm launcher]
B --> C{Verified installation and fresh destination}
C -->|Accepted| D[Build and validate fresh checkout]
C -->|Refused| E[Preserve original installation]
D --> F[Activate npm exposure]
F --> G[Restart Gateway or recover original runtime]
Technical reviewBest possible solution: Keep relocation within the existing npm transaction and service owners, with a demonstrated bootstrap path and verified recovery to the correct runtime. Do we have a high-confidence way to reproduce the issue? Not applicable as a new relocation capability: current main and v2026.9.8 lack this path. No runtime execution was performed during this read-only review. Is this the best way to solve the issue? Yes, reusing the existing npm exposure transaction is a maintainable approach; installed-updater bootstrap and managed-service recovery still need qualification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b1697e2ae8f6. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +172, Tests +250, Docs +6. Total +428 across 18 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReview history (9 earlier review cycles; latest 8 shown)
Reviewed October 7, 2026, 4:45 PM ET / 20:45 UTC (Revision 10). |
ab218c6 to
6710b10
Compare
85454fe to
51f8892
Compare
|
@clawsweeper re-review Addressed the exact-head P2 finding on
Validation:
Production delta for this repair: +3/-1. Test delta: +65/-0. Mechanical refresh: rebased cleanly onto main f7b2f3a after the unrelated Gateway pairing shard failure. New exact head bfde7be. Post-rebase proof: updater snapshot regression 4/4 passed; changed gate passed; fresh branch autoreview clean. No updater behavior changed in the rebase. |
|
🦞👀 Re-review progress:
|
87282c8 to
bfde7be
Compare
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Addressing the remaining P3 test-cost finding on exact head bfde7be:
No production or test code changed after the reviewed finding repair. |
|
🦞👀 Re-review progress:
|
bfde7be to
01270f2
Compare
roboclaw-bot
left a comment
There was a problem hiding this comment.
[P2] Cancellation after exposure preparation can overwrite valid recovery for the untouched original Git installation. With a verified npm-linked dirty Git install and an existing empty selected destination, let exposure preparation succeed and a later preflight check fail (for example dependency-link validation). The staged-root branch correctly obtains readOriginalUpdateRecovery, but prepareGitPackageExposure().cancel() uses package-only verifyPackageUpdateRecovery, which rejects the source checkout. Because both owners resolve and the service uses the original npm installation, this branch replaces the valid Git recovery with that false unsafe verdict.
Please retain or recheck predecessor recovery through its actual Git owner after cancellation, and cover failure after exposure is prepared with an owned service and an existing empty destination. The snapshot-refusal regression runs before this path. This finding concerns incorrect recovery classification; the final service backstop may still recover a stopped Gateway, so it is not a claim of a permanently stranded service.
Sources at this reviewed head: original Git recovery, cancellation verifier, later overwrite. Source review only; installed-service qualification remains separate.
Installer support: #147677. Windows launcher support: #147653.
Depends on #147621. Part of #144836's smaller follow-ups.
What Problem This Solves
Explicit
openclaw update --channel devcurrently refuses a dirty Git checkout. For verified npm-linked installs on macOS and Linux, stage a fresh checkout and move the invoking npm exposure through the existing update transaction. Preserve the original checkout and local edits; retain rollback and report the settled runtime for recovery and triage.Why This Change Was Made
Bind admission to the actual npm launcher and prefix. Recheck launcher ownership before activation, reject custom/replaced launchers, and avoid selecting an unrelated globally installed package manager. Honor an empty
OPENCLAW_GIT_DIR; otherwise choose a fresh default destination. Keep JSON output machine-readable.User Impact
Local edits stay in the original checkout while the managed dev installation updates separately. This requires the running updater to contain this change; selecting a newer target cannot retrofit an older updater that already refuses the dirty checkout. Install a version containing this fix through an existing supported installation path first.
Evidence
Current repair integrates main
1f01f4944d45and reuses its package activation, source staging, recovery, and schema-admission owners. Relocation admission lives in one target-preparation helper; the original checkout stays untouched and launcher ownership is checked again before activation. No new persistence format or configuration is introduced.Current local proof: four targeted suites passed, 111 tests total (Git service, update execution, shared command runner, Git snapshot admission). Core production typechecking and targeted lint passed. The candidate diff passes
git diff --check. Fresh independent P0–P2 review found no actionable issues in the supplied code diff; surrounding transaction/integrity implementations were not included in its isolated bundle. Historical counts below are not current-head CI evidence. Exact-head CI must complete after publication.Earlier production-path CLI fixtures covered dirty-checkout preservation, npm launcher movement, package state, and custom-launcher refusal. Those unchanged-input results are retained; no new full managed-service end-to-end run was performed in this repair.
The service transition reuses the existing package-to-Git owner. Existing CLI/service tests cover refreshing the owned service to the settled root, preserving foreign services, and restarting the original root after rollback. The new filesystem relocation cases run with restart disabled, so a full managed-service relocation/rollback run remains unqualified.
This slice covers npm-linked POSIX installs. Canonical installer wrappers and Windows launcher support follow separately; no native Windows or full-service rollback proof is claimed here.
CI follow-up: type-import cycle
The architecture job on
06bbc302d05cexposed a type-only cycle through the Git update implementation, recovery, and execution contracts. Moved the unchangedGitInstallRelocationcontract into a leaf type module and migrated all three consumers; runtime behavior is unchanged. The Madge cycle check now reports zero cycles, and core typechecking passes. Prior behavioral proof remains applicable; new exact-head CI is pending.