Repository navigation
fix(triage): stop reporting failed updates as resolved - #153443
Conversation
Use recorded failure and completion evidence across newer previews, retain pending migration warnings, and keep recovery guidance visible. Fixes #153378. Thanks to @johnnyjrizzo for the report.
|
🦞👀 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, 5:35 AM ET / 09:35 UTC (Revision 6). ClawSweeper reviewWhat this changesTriage checks update history and pending migrations before reporting recovery, while recognizing later successful upgrades and verified rollbacks. Merge readiness⛔ Blocked before merge - 1 item remains The fix remains necessary on current main. All three prior findings are addressed, and the recorded maintainer disposition settles the compatibility choice. No additional actionable correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherTriage diagnoses an OpenClaw installation and can run a bounded repair turn. Its resolution checker combines updater records, migration state, Doctor findings, installed runtime checks, and Gateway readiness to determine the recovery verdict. flowchart TD
A[Triage request] --> B[Resolution checker]
C[Update history and saved failure] --> B
D[Pending migrations] --> B
B --> E[Doctor and installation checks]
E --> F[Gateway readiness]
F --> G[Recovery verdict and guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -23, Tests +198, Docs 0. Total +175 across 7 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain the accepted updater-completion contract, verify the current recovered installation, and preserve historical failures without letting them pin future upgrades. Do we have a high-confidence way to reproduce the issue? Yes, from source: a failed ledger entry without a correlated restart notification reaches Doctor-only validation on current main. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. The existing resolution owner now decides recovery consistently. Doctor-only recovery may require update repair under the explicitly accepted compatibility change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 03e1d2043091. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Merged via squash.
|
Plain triage could discard failed update history and report “already resolved” from healthy Doctor results. Centralize update-history selection and completion checks in the resolution owner, preserve pending plugin migrations, and keep explicit failure artifacts tied to their original targets. Accept later successful upgrades and verified rollbacks after validating the current installation, Doctor results, and managed Gateway readiness. Abandoned-run acknowledgement still requires fresh Doctor checks. Incomplete recovery stays visible with update repair guidance; historical ledger records remain intact. Fixes openclaw#153378. Thanks to @johnnyjrizzo for the report and recovery evidence. Validation: 300 focused tests across seven files and full check:changed passed in the repair lane. Retained isolated macOS PTY proof with published 2026.9.5 ledger state confirms pending migrations and missing completion remain unrepaired; current command regressions cover the later recovery and rollback fixes. The review of record is scoped-clean and exact-head CI passed.
What Problem This Solves
Fixes: plain
openclaw triage --runcan report “already resolved” for a failed update, or keep rejecting a healthy installation after successful recovery followed by another upgrade or rollback.Fixes #153378. Thanks to @johnnyjrizzo for the report and recovery evidence.
User Impact
Triage keeps unresolved updates and pending plugin migrations visible, with
update repairguidance for post-update recovery. A later successful recovery or upgrade can clear a historical failure after the current installation is verified; a subsequent verified rollback to that recovered version preserves the resolution. Acknowledging an abandoned run still requires fresh Doctor validation, so current configuration errors remain visible. Historical ledger records are preserved.Why This Change Was Made
The resolution owner now selects and validates ledger history in one place. Plain triage accepts a later successful update or verified rollback restoring the same or a newer version, then validates the current package or Git installation, Doctor findings, and managed Gateway readiness. A rollback uses its own recorded previous/restored identity and completed package-restoration step; it does not reuse an older failure's previous version. Explicit failure artifacts retain strict checks against their original target. Previews and acknowledged abandoned runs cannot hide a failure or replace completion evidence; pending migrations are checked before and after validation.
Refs #153377 (investigated, not reproduced), #153147, and #153261. Adopted repair already uses the coordinator release handoff in published 2026.9.5 and current source. No custody or lifecycle changes are included here; the contention report remains open pending lock-holder evidence.
Evidence
update-failedhistory and Git-to-package upgrades. The newest command regression failed with exit 1 before this fix for failed A → successful A → later verified rollback to A; it now reports “Rollback to …” and verifies the restored installation. Missing restoration, inconsistent before/after identity, and an explicit artifact tied to the older failure still reject. Pending migrations and newer previews remain covered.pnpm check:changedpassed, including production/test types, all three unused-export scans, changed-file lint, storage/runtime guards, and zero runtime import cycles.git diff --checkpassed. No gate was skipped.b7b5085e5d8ebe543859554be1cbc66495eabd62: isolated state created by the integrity-verified published npm 2026.9.5 ledger was consumed throughpnpm openclaw triage --run. No Gateway was started or modified. This earlier live proof covers the unchanged pending-migration and missing-completion refusal behavior; it was not rerun on this follow-up head. The new historical-recovery behavior is covered by the current command-level regressions above.finalize:doctor, pending Codex migration, no restart sentinelEmbedded repair unrepaired, pending Codex warning, and visibleopenclaw update repairguidance. The failed row and pending migration remain intact; no inference turn starts.skipped/dry-runrow; no pending migrationupdate repair. The preview and older failure remain intact; no inference turn starts.The retained PTY cells took 621.5 s and 536.6 s including source builds, artifact-lock waits, and diagnostics; these are correctness results, not startup benchmarks. Initial harness attempts overlapped source builds and omitted the required TTY; those attempts are not counted as passing proof.
Rollback follow-up production +6/−3 (net +3); tests +35/−6 (net +29); docs +1/−1. Complete PR production +147/−170 (net −23); tests +346/−148 (net +198); docs +4/−4. No configuration/CLI options, environment variables, SQLite schemas, dependencies, or baselines changed.
Landing review disposition
All three confirmed ClawSweeper findings are fixed in cbd5f52:
Final maintainer disposition
The ClawSweeper review updated September 20, 2026 at 09:13 UTC reviewed cbd5f52, confirms all three prior findings are addressed, and reports no additional actionable correctness or security defect. It lists no further Rank-up moves.
The remaining compatibility decision is accepted under the explicit maintainer landing direction: retain the documented updater-completion requirement. Healthy Doctor results alone must not turn recorded incomplete recovery into an “already resolved” verdict. The operator receives
openclaw update repairguidance; published-state CLI evidence and current command regressions support that behavior. Historical records remain intact, and no schema or lifecycle ownership change is introduced.ClawSweeper revision 6 (09:35 UTC, same head) confirms the compatibility choice is settled and adds a request to confirm data-model compatibility proof. Confirmed using the existing published-state proof: the isolated macOS PTY cells consumed ledger state created by published npm 2026.9.5, preserved failed rows and pending migrations, and returned truthful unrepaired results through the real triage command. The PR changes read-only history selection and resolution validation; it does not change a SQLite schema, rewrite stored records, or introduce a migration/backfill. Current command regressions cover subsequent successful upgrades, verified rollback, and acknowledgement with current Doctor errors. No additional data-model migration is applicable.