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. Reviewed September 20, 2026, 2:37 PM ET / 18:37 UTC (Revision 5). ClawSweeper reviewWhat this changesUpdate repair now explains when an already stopped Gateway remains offline and includes maintenance warnings in its terminal JSON result. Merge readiness⛔ Blocked before merge - 1 item remains Keep open as a useful, focused fix absent from current main. No blocking defect found; the previous migration-compatibility blocker is resolved by the actual diff and supplied recovery evidence. Priority: P2 Review scores
Verification
How this fits togetherUpdate repair runs Doctor and plugin reconciliation after an interrupted update. Doctor maintenance preserves service custody, and finalization converts its outcomes into terminal output and update history. flowchart TD
A[Update repair command] --> B[Doctor maintenance]
B --> C{Service condition}
C --> D[Preserve stopped service]
C --> E[Restore service stopped by repair]
D --> F[Maintenance warnings]
E --> F
F --> G[Finalization warning collector]
G --> H[Terminal result and update history]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +36. Total +49 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep service activation with its existing owner while consistently exposing maintenance warnings and the appropriate profile-specific recovery command. Do we have a high-confidence way to reproduce the issue? Yes, from source: an owned, already offline service produces no ordinary maintenance warning on current main, and finalization omits maintenance warnings. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. Reporting through the existing maintenance owner and warning collector fixes the misleading result while preserving operator intent and installation-drift guidance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7a255e31e8ac. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Added published-driver-to-candidate recovery evidence to the PR body. Published 2026.9.4 Terminal JSON excerpt: {
"status": "warning",
"mode": "finalize",
"restart": false,
"postUpdate": {
"doctor": {
"status": "warning",
"warnings": [
"Gateway was already stopped before repair; repair did not start it. Run openclaw --profile <isolated> gateway start to bring it online."
]
}
}
}The excerpt omits two expected synthetic-profile node-onboarding warnings. This verifies actual terminal warning delivery and preserved offline service behavior across the old ledger/candidate repair boundary. It does not claim a full historical updater installation run. The task-owned profile and plist were removed after verifying the native service remained unloaded; the default Gateway was never modified. No stored schema or migration policy changes are introduced. Full changed-path validation and all 43 focused tests pass. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
The latest review accepts the published-driver recovery proof and states that no persisted formats change, but the remaining generic data-model checkbox still classifies the file by Please reassess that remaining compatibility checkbox against the actual delta and this evidence. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6495307 to
6ec91f9
Compare
|
Landed on |
Related: #153401
What Problem This Solves
Fixes
update repairreporting successful finalization without explaining that an already stopped managed Gateway was not started. It also dropped maintenance-restoration warnings from the terminal JSON outcome.User Impact
Standalone repair now reports that it did not start the previously stopped Gateway and names
openclaw gateway start. The terminal result carries this warning, including readiness warnings from restoration. A Gateway explicitly stopped outside update custody is not started by guessing earlier operator intent.This applies to standalone repair across dev, beta, stable, and package/Git installs; it does not change the installed old updater's preflight. Existing custody still restores services stopped by this repair, and parent-owned activation remains with the update parent.
Why This Change Was Made
Maintenance already knows whether it stopped the service and owns restoration. Its warning list now records the intentional non-start outcome and reaches finalization's existing Doctor warnings, so the final message agrees with the service action.
Evidence
doctor-maintenance.settlement.test.tsandupdate-command-lifecycle.test.ts, covering no unexpected restart, warning propagation, parent-owned activation, and cleanup/restoration boundaries.pnpm buildpass. The pre-rebase CI completed successfully; CI is rerunning for the rebased head.2026.9.4drivere46e3746bb5created an isolated failed activation ledger and an unloaded, uniquely named profile LaunchAgent. The built candidate CLI ranopenclaw --profile <isolated> update repair --json --yes --timeout 120: exit 0, terminal statuswarning,restart: false, and the profile-specific start guidance inpostUpdate.doctor.warnings. The native service remained unloaded before/after; task profile and plist were removed. This is a recovery-boundary compatibility run using real old-driver state, not a claim of running a complete old-driver installation. No persistent schema changes are introduced.Data-model compatibility
There is no persistent data-model, schema, migration, receipt, key, or serialized-format change in this PR.
doctor-maintenance.tschanges only an in-memory warning list and log output; finalization passes that string into the existing warning collector. Existing update-run warning storage is used without changing its shape.Upgrade compatibility is verified at the actual recovery boundary: the published 2026.9.4
e46e3746bb5ledger implementation wrote an isolated failed activation record, then the built candidate6495307d493read and repaired it successfully (exit 0, warning result). The supplied terminal trace verifies the current candidate can consume that old-driver recovery state, keep the native service unloaded, and deliver the new warning through the existing JSON warning array. No new backfill or downgrade conversion is required.Rebase validation (September 20)
Rebased onto main
8b8d1c5597d, resolving the stopped-service conflict. Main's specific installation-drift remediation takes precedence when drift exists; the ordinary owned/offline case keeps this PR's start guidance. Head:6ec91f99c87.update-triage-resolution.ts:92formatter/Array.map type error.