Repository navigation
fix(update): distinguish unavailable identity and qualify saved advice - #147553
Conversation
Keep failed update history while distinguishing missing identity evidence from observed version/build disagreement. Qualify saved recovery guidance with a current health observation without dropping migration constraints. Refs #145087. Reported by @freshxiaoyao (#145087).
|
🦞👀 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 maintainer review before merge. Reviewed September 13, 2026, 8:13 PM ET / September 14, 2026, 00:13 UTC (Revision 3). ClawSweeper reviewWhat this changesUpdate reports distinguish unreadable Gateway identity from observed mismatches and qualify saved recovery advice using a current health observation. Merge readiness✅ Ready for maintainer review This remains a useful reporting repair, with no actionable correctness or security findings. The documented maintainer acceptance resolves the previous qualification request; the linked Windows runtime issue remains separate. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw records update outcomes for CLI status, completion notices, and reviewed support reports. This reporting layer combines saved verification facts with an optional local Gateway health read without changing the historical outcome. flowchart TD
A[Saved update record] --> C[Shared update report]
B[Local Gateway health probe] --> C
C --> D[Identity and historical advice]
D --> E[CLI status]
D --> F[Completion notice]
D --> G[Redacted support report]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +152, Tests +269, Docs +12. Total +433 across 14 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one report owner that separates historical outcomes from current observations while preserving recovery constraints and unchanged JSON history. Do we have a high-confidence way to reproduce the issue? Yes, for the reporting defect: current main renders a record containing versionMatch:false but no observed identity as a mismatch. The underlying Windows handshake failure has no established deterministic reproduction. Is this the best way to solve the issue? Yes. Reusing the report owner and local probe fixes the misleading presentation without turning a later response into update success or permission to recover. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3ae3e4dc88ed. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
openclaw#147553) * fix(update): distinguish unavailable identity and qualify saved advice Keep failed update history while distinguishing missing identity evidence from observed version/build disagreement. Qualify saved recovery guidance with a current health observation without dropping migration constraints. Refs openclaw#145087. Reported by @freshxiaoyao (openclaw#145087). * test(update): include current health in boot notice expectations * ci: refresh update report checks on current main
Release CLI progress resources even when the final run-history read fails. Use the report owner's identity classification for version badges, so missing evidence is unverified while observed version/build mismatches still fail. Keep updater execution and recorded outcomes unchanged. Remove copied test translations, redundant coverage and guards, unnecessary type assertions, and comment repetition. Preserve real localization, connection ownership, recovery, and receipt contracts. Validation: both regressions fail before and pass after; 202 selected tests pass with current pinned dependencies; independent P2 review is clean. Synthetic before/after UI proof makes no update requests. Related: #147993, #147553.
* fix(update): stop stuck spinners and show unverified identity Release CLI progress resources even when the final run-history read fails. Use the report owner's identity classification for version badges, so missing evidence is unverified while observed version/build mismatches still fail. Keep updater execution and recorded outcomes unchanged. Remove copied test translations, redundant coverage and guards, unnecessary type assertions, and comment repetition. Preserve real localization, connection ownership, recovery, and receipt contracts. Validation: both regressions fail before and pass after; 202 selected tests pass with current pinned dependencies; independent P2 review is clean. Synthetic before/after UI proof makes no update requests. Related: #147993, #147553. * test(update): record installed version in coalesced restart fixture * fix(models): await saved API key configuration Wait for the existing Gateway configuration application receipt before refreshing saved credentials. Preserve reload policy, concurrent credential guards, and saved-but-unconfirmed warnings in the CLI and Models RPC. * ci: keep combined test partitions within capacity Return heartbeat test roots to infrastructure after independent main-branch rebalances jointly overfilled services. Preserve all 10,601 canonical roots, graph limits and runtime routing. * test(qa): align automation management ownership proof Adopt the configured-owner fixture repair from #148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
* fix(update): stop stuck spinners and show unverified identity Release CLI progress resources even when the final run-history read fails. Use the report owner's identity classification for version badges, so missing evidence is unverified while observed version/build mismatches still fail. Keep updater execution and recorded outcomes unchanged. Remove copied test translations, redundant coverage and guards, unnecessary type assertions, and comment repetition. Preserve real localization, connection ownership, recovery, and receipt contracts. Validation: both regressions fail before and pass after; 202 selected tests pass with current pinned dependencies; independent P2 review is clean. Synthetic before/after UI proof makes no update requests. Related: openclaw#147993, openclaw#147553. * test(update): record installed version in coalesced restart fixture * fix(models): await saved API key configuration Wait for the existing Gateway configuration application receipt before refreshing saved credentials. Preserve reload policy, concurrent credential guards, and saved-but-unconfirmed warnings in the CLI and Models RPC. * ci: keep combined test partitions within capacity Return heartbeat test roots to infrastructure after independent main-branch rebalances jointly overfilled services. Preserve all 10,601 canonical roots, graph limits and runtime routing. * test(qa): align automation management ownership proof Adopt the configured-owner fixture repair from openclaw#148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
Refs #145087.
What Problem This Solves
A failed update could call an unreadable Gateway identity a version mismatch, then replay saved “keep the gateway stopped” advice after the Gateway had started responding.
User Impact
Update reports distinguish missing identity evidence from an observed version or build mismatch. Human
update status, Gateway completion notices, and reviewed failure reports check the recorded Gateway endpoint and distinguish that observation from the historical update result.Saved recovery advice is marked historical; a current response supersedes its stopped-Gateway claims while preserving other config and migration constraints. The recorded failure and JSON history remain unchanged. This is release-note context for the reporting repair, not a claim that the original Windows verification failure is fixed.
Reported by @freshxiaoyao (#145087).
Why This Change Was Made
The report owner now uses a closed identity result derived from the existing recorded facts. Missing version/build values replace older observations at the recorder, so a failed read cannot reuse a previous runtime identity. The existing schema and legacy Boolean fields remain unchanged.
Fresh health reads reuse the local restart probe and never authorize restart, rollback, or history mutation. A missing port, failed probe, or unreadable identity stays explicitly unavailable. Callers without a fresh observation still label saved advice historical. Public current-version text reuses the existing allowlisted version redactor, including protection against private SemVer labels.
No configuration, database schema, protocol version, dependency, retention, recovery-policy, or changelog changes.
Evidence
The regressions failed against the original production code before the fix. The real recorder retained
2026.9.2after the next identity read failed; local reports/notices printedVerification: service running; version mismatch; public reports omitted identity evidence; status and delivered notices replayed unqualified saved advice. All now pass. A follow-up regression also demonstrated and fixed disclosure of a synthetic private SemVer label.The integrated ledger, report, status, Gateway notice, public preview, and readiness run passed 160 tests. The subsequent report, redaction, and recovery-guidance run passed 108 tests. Fresh independent P1 autoreview is scoped-clean. Test evidence uses synthetic records and mocked service/health boundaries; Gateway notices are verified in the actual session transcript, and historical ledger rows are asserted unchanged.
The published-driver compatibility evidence is replay of its existing record shape, including
versionMatch: falsewithout identity. No new Windows-native update or published-driver end-to-end upgrade was performed. The original Windows handshake failure still needs independent runtime evidence, so #145087 should remain open.Validation completed:
pnpm check:changed,pnpm build, and the final 29-case report test all passed. The build covers the new lazy probe import; the subsequent source change only simplified the identity label return for lint. The first changed-file run identified redundant object spreads and an exhaustive-switch lint issue; both were fixed without suppressions, and the full changed-file gate passed afterward.Final validation
The boot-notice expectation was updated in
e462ea6bac1fcd2fbef715c169004fe8a3285c80to include the new unavailable-health observation. Its focused cases reproduced the failure first (1 failed, 1 passed), then the complete sentinel file passed all 104 tests.pnpm check:changedpassed and the lead's independent P1 review of that exact head was scoped-clean.The empty refresh
0bc13451c3e50448cb24a55add87827ac8f76c0dpreserves that reviewed tree. CI run 34791577059 completed successfully for the refreshed merge against current main; the exact-head watcher returnedGREENwith no retry required.ClawSweeper review
The completed review found no actionable code or security findings. Its qualification request is dispositioned by the maintainer landing decision: accept the documented published-record replay, recorder/status/report boundary tests, actual transcript-write assertions, build, and exact-head CI for this reporting-only repair. Full published-driver × candidate upgrade execution and Windows-native verification remain unperformed; this does not establish a fix for the original Windows handshake failure, and #145087 remains open. No ClawSweeper code fixups were required. The only subsequent code delta is the reviewed boot-notice test expectation; this landing refresh changes no files.