Skip to content

fix(update): distinguish unavailable identity and qualify saved advice - #147553

Merged
steipete merged 3 commits into
mainfrom
steipete/upd-run-report-identity-and-advice
Sep 14, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/upd-run-report-identity-and-advice

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

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.2 after the next identity read failed; local reports/notices printed Verification: 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: false without 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 e462ea6bac1fcd2fbef715c169004fe8a3285c80 to 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:changed passed and the lead's independent P1 review of that exact head was scoped-clean.

The empty refresh 0bc13451c3e50448cb24a55add87827ac8f76c0d preserves that reviewed tree. CI run 34791577059 completed successfully for the refreshed merge against current main; the exact-head watcher returned GREEN with 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.

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).
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes size: M maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 23:37
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 8:13 PM ET / September 14, 2026, 00:13 UTC (Revision 3).

ClawSweeper review

What this changes

Update 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
Reviewed head: 0bc13451c3e50448cb24a55add87827ac8f76c0d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused reporting repair with meaningful regression coverage, no actionable findings, and explicitly accepted validation limits.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer PR records acceptance of legacy-record replay and recorder/status/report tests with actual transcript assertions and mocked health boundaries. These cover reporting, not a live upgrade or Windows handshake; the previous qualification request is explicitly dispositioned.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer PR records acceptance of legacy-record replay and recorder/status/report tests with actual transcript assertions and mocked health boundaries. These cover reporting, not a live upgrade or Windows handshake; the previous qualification request is explicitly dispositioned.
Evidence reviewed 9 items Reporting repair remains necessary on main: Fetched main still renders every false versionMatch as a version mismatch and replays saved nextAction without the new historical qualification.
Latest release retains the reporting defect: The supplied latest-release commit also maps false to version mismatch and uses the saved nextAction directly.
Identity interpretation and recording: The shared report requires observed disagreement before naming a mismatch. The recorder explicitly replaces unavailable version/build values, preventing the ledger's merge operation from retaining an earlier observation.
Findings None None.
Security None None.

How this fits together

OpenClaw 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +152, Tests +269, Docs +12. Total +433 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 8 178 26 +152
Tests 5 276 7 +269
Docs 1 12 0 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 466 33 +433

Review metrics

Metric Value Why it matters
Production and regression coverage production +152 net lines; tests +269 net lines Production growth is explained by shared identity interpretation and health-qualified reporting, with regression coverage across recorder, status, notices, and public reports.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs misleading update diagnostics and recovery advice without changing installation or restart policy.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer PR records acceptance of legacy-record replay and recorder/status/report tests with actual transcript assertions and mocked health boundaries. These cover reporting, not a live upgrade or Windows handshake; the previous qualification request is explicitly dispositioned.

Evidence

What I checked:

  • Reporting repair remains necessary on main: Fetched main still renders every false versionMatch as a version mismatch and replays saved nextAction without the new historical qualification. (src/infra/update-run-report.ts:199, 3ae3e4dc88ed)
  • Latest release retains the reporting defect: The supplied latest-release commit also maps false to version mismatch and uses the saved nextAction directly. (src/infra/update-run-report.ts:163, 3a9d69db306c)
  • Identity interpretation and recording: The shared report requires observed disagreement before naming a mismatch. The recorder explicitly replaces unavailable version/build values, preventing the ledger's merge operation from retaining an earlier observation. (src/cli/update-cli/update-command-verification.ts:121, 0bc13451c3e5)
  • Read-only probe and delivery boundary: The new adapter reuses confirmGatewayReachable, which calls local health with read scope and read-only shared state. Notification target authorization occurs after the awaited observation; the observation grants no recovery or delivery authority. (src/cli/daemon-cli/restart-health-probe.ts:265, 0bc13451c3e5)
  • Public diagnostic redaction: Public current-health versions pass through the existing strict version allowlist, extracted without changing its rules; regression cases cover private version names and private SemVer suffixes. (src/infra/update-failure-report-prepare.ts:363, 0bc13451c3e5)
  • Prior review disposition and unchanged production patch: The captured PR body explicitly accepts published-record replay, boundary tests, transcript assertions, build, and CI for this reporting repair. Comparison against the previous reviewed revision shows only the boot-notice test expectation changed; full upgrade and Windows-native execution remain unperformed. (src/gateway/server-restart-sentinel.test.ts:999, 0bc13451c3e5)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-13T23:44:29.040Z sha 40dedc2 :: blocked before merge. :: none
  • reviewed 2026-09-13T23:53:31.922Z sha 40dedc2 :: blocked before merge. :: none

@steipete
steipete merged commit 14bb3c0 into main Sep 14, 2026
196 checks passed
@steipete
steipete deleted the steipete/upd-run-report-identity-and-advice branch September 14, 2026 00:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
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
steipete added a commit that referenced this pull request Sep 15, 2026
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.
steipete added a commit that referenced this pull request Sep 15, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant