Skip to content

fix(triage): report an update failure as repaired only with resolution evidence - #148968

Merged
steipete merged 9 commits into
mainfrom
upd/triage-false-repair-148896
Sep 15, 2026
Merged

steipete merged 9 commits into
mainfrom
upd/triage-false-repair-148896

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: openclaw triage --run --update-result <file> could report an unresolved update as repaired solely because Doctor lint passed, without attempting a repair. This affected triage after 2026.9.3/2026.9.4 update failures.

Fixes #148896

User Impact

Package, runtime, schema, and service update failures require the updater's recorded target and completion evidence, plus current owner verification. A correlated Doctor/config failure can instead be resolved only when its recorded target version or Git SHA matches the installed identity and fresh Doctor checks are clean, while its historical failed row remains unchanged. Missing evidence produces unrepaired with a next step. Verified zero-attempt resolution prints already resolved; successful post-attempt validation prints repaired.

Explicit artifacts without a usable run ID or recorded target identity remain unresolved, including Doctor/config failures. Plain triage --run treats an uncorrelated implicit update notification as informational, prints its timestamp and a status command, and preserves ordinary Doctor success/exit. Correlated package/service failures still require their owner verification; unknown or mixed failures and writer/authority refusals are not certified by clean lint.

Reported by @PollyBot13 (#148896).

Compatibility review by @PollyBot13 (review of both controls) identified the historical-sentinel and post-update-failed Doctor-repair cases. The command regressions now cover both, including a real correlated ledger row, one repair turn, unchanged historical state, and the conservative run-id-less artifact control.

Why This Change Was Made

Git target inspection now carries the selected commit and available manifest version into the existing ledger row before candidate checks. Each inspected candidate replaces the prior optional identity fields, so fallback selection cannot retain a stale version or SHA. The predicate accepts a recorded Git version or SHA independently and verifies every identity that is present. Doctor-only resolution requires the same recorded-target safeguard as every other family, plus concrete attributed failed steps in the correlated ledger and compatible artifact evidence; the generic post-update-failed wrapper alone is insufficient. For package/Git update completion, selector-only legacy records such as dev/latest remain unresolved.

The surviving after.version in a failed result is not its requested target. Triage preserves a valid run ID, reads target facts from the existing ledger, and composes the updater's package/Git runtime and service verification owners. A later completed update or verified package rollback can supply resolution evidence; historical failed rows remain unchanged. Original plugin failures additionally require current plugin health.

Compatibility: the closed 2026.9.3/2026.9.4 worker status protocol is unchanged. Evidence-backed zero-attempt results still use repaired on the wire, which existing parents and the Mac app's update repair route understand. Only the human triage wording distinguishes already resolved. No SQLite, configuration, dependency, or service-lifecycle changes are introduced.

ClawSweeper review

The completed review at exact head 3dc008d9e84a2657afa91e88d0bd5d9909551459 found no actionable code defect and confirms the selected-SHA callback assertion is corrected. The earlier Git target-recording finding is also addressed. Missing-identity and missing-owner-evidence verdicts remain intentionally conservative; the maintainer accepts this documented limitation and the unexecuted full published-updater handoff with successful resolution. The data-model flag does not apply: the existing SQLite schema, historical terminal rows, and worker status enum are unchanged. This landing pass made only a patch-identical rebase, so no additional re-review request was posted.

Evidence

Landing refresh: rebased the approved 4f2e9de7047cf5d76120a3b56433838008483938 stack onto main 1f8e15282c747723beef9939d0f3b7a8a07ea799, producing 3dc008d9e84a2657afa91e88d0bd5d9909551459. All nine commits are range-diff identical, including the callback assertion fix and existing empty CI refresh. Exact-head CI is green in run 34978355269, with 145 passing checks and no pending or failed checks. The bounded watcher reached its deadline during runner queueing; the fourth authorized fallback poll confirmed green. Local validation on this rebased head passed all 153 tests with node scripts/run-vitest.mjs src/infra/update-runner.test.ts src/infra/update-runner-git-admission.test.ts src/cli/update-cli/update-command-admission.test.ts. git diff --check also passed. The unrelated Labeler workflow was canceled by the PR-body-edit concurrency group after all executed steps passed; one rerun cleared it. The prior callback mismatch is fixed, retaining a precise assertion for the selected SHA and unreadable metadata. The prior rebased-head focused validation passed 258 tests across triage commands, update-resolution/repair/protocol suites, and CLI admission controls.

At r4 head a8302234e78abe4e50e32d0200415bf823f53ea8, the fix moves the existing missing-target guard ahead of the Doctor/config branch. A correlated run with target: {} now reports unrepaired with the missing-target reason and the next steps to inspect openclaw update status --json and retry openclaw update. Clean Doctor findings alone cannot certify any saved update failure. The recorded-target control still repairs after exactly one turn, and the implicit historical-sentinel behavior is unchanged.

  • Before the fix, the targetless predicate regression received ok: true / Doctor/config blocker resolved.; the CLI regression resolved successfully instead of exiting 1. Both now pass, alongside the existing missing-run and matching-target controls.
  • All 255 tests passed across the complete src/commands/triage*.test.ts set and focused update-resolution/repair/protocol suites.
  • node scripts/check-changed.mjs: passed, including both typecheck lanes, lint, formatting, unused-export scans, import cycles, and repository guards.
  • Fresh autoreview --mode branch --base origin/main --max-priority P1: scoped-clean at P1 on the r4 head.
node scripts/run-vitest.mjs src/commands/triage-run.test.ts \
  -t 'repairs an attributed post-update Doctor failure'
node scripts/run-vitest.mjs src/commands/triage*.test.ts \
  src/infra/update-triage-resolution.test.ts \
  src/infra/update-repair-agent.test.ts \
  src/infra/update-repair-protocol.test.ts

The preceding r3 controls also remain covered: historical sentinels preserve ordinary Doctor success; wrapped plugin errors require current plugin health; mixed failures, writer refusals, unknown facts, identity mismatches, and ownership changes cannot be certified by clean lint. Three duplicate Copilot expectation keys from the paused rebase were removed in r3; the assertion matches green main and its focused control passed.

The original command/real-repair-loop regression failed before the fix: exit 0 and Embedded repair repaired: Doctor lint reports no errors. with the saved failure unchanged. It now exits 1 with unrepaired and a next step. Earlier producer and Git admission/candidate suites also passed; their target-recording regressions are described below.

Testbox command proof passed at 964e788582d, using the published 2026.9.3 package tree and an isolated SQLite ledger with a recorded 2026.9.4 target. It exited 1 with unrepaired: Expected installed version 2026.9.4; found 2026.9.3 and the next step. The saved failure and terminal failed row stayed unchanged. The proof wrapper exited 0 and cleaned up its lease; the backing Actions run can show cancellation from that cleanup.

Known proof gap: the full published-updater-to-candidate handoff with a successful resolution control has not been executed. Published-tree negative command proof, focused positive/negative controls, and exact parent-schema parsing are available; parser compatibility is not full updater execution. All fixtures are synthetic; this does not reproduce the original Ubuntu package-swap failure or restart an operator Gateway. The explicit maintainer landing decision accepts this bounded reporting proof; it does not claim full updater handoff qualification.

Historical CI evidence from earlier heads

These results describe earlier heads, not r4:

  • At d3bf207b05f2a4f1f5e207bf8d6979be7af50949, run 34958237285 failed small-2 with eight image-tool policy/size assertions and large-10 with 28 missing loadAuthProfileStoreForRuntime mock-export failures. Those trees matched that head's main base 2b8c9f1ad64afea117518b008b23ae5fcc20d9be. The lander subsequently rebased to the green main and paused at bc9cb5ef683 for this follow-up.
  • At 964e788582d, additional boundaries failed before checks on an unchanged dependency's HTTP 500/postinstall error. The plugin shard had a stale Copilot metadata expectation; the current assertion matches main and passes its focused control. security-fast and OpenGrep reported zero-step failures on that older run.
Git producer audit and published-parent parsing proof

The producer audit covered both shipped drivers and main at 140ae96507aed5c58ae6c51e13cfc623c85d157a:

Producer npm target Git target before this fix
2026.9.3 staging Resolved registry version Channel/tag/kind only
2026.9.4 staging Resolved registry version Channel/tag/kind only
Audited main staging Resolved registry version Channel/tag/kind only

Finalization copied Git observations into before/after, not target. The fix preserves identity through the existing Git metadata path and records it through the CLI Git admission owner. No schema changes or inference from a failed result's after fields are involved.

The producer regression failed before the fix because the row lacked the selected SHA/version. It now verifies their persistence before a native-admission failure, and verifies that another inspected candidate clears a now-unknown version. Git version-only and SHA-only predicate regressions also failed before and now pass.

For compatibility, the exact tagged worker-message schemas were evaluated with registry SHA-512-verified Zod 4.4.3, the version used by both releases. These four concrete messages round-trip byte-for-byte through each released parser and the current schema. The summaries/evidence change; the serialized status fields remain exactly "status":"repaired" and "status":"unrepaired".

before-repaired:

{"type":"result","result":{"status":"repaired","attempts":[],"finalValidation":{"ok":true,"score":0,"summary":"Doctor lint reports no errors."}}}

after-repaired:

{"type":"result","result":{"status":"repaired","attempts":[],"finalValidation":{"ok":true,"score":0,"summary":"Update to 2026.9.4 recorded by the updater; installed runtime and managed Gateway readiness verified."}}}

before-unrepaired:

{"type":"result","result":{"status":"unrepaired","attempts":[],"finalValidation":{"ok":false,"score":-1,"summary":"Doctor lint found an error"},"reason":"turn-budget"}}

after-unrepaired:

{"type":"result","result":{"status":"unrepaired","attempts":[],"finalValidation":{"ok":false,"score":-1,"summary":"Cannot establish the update target. Next step: run `openclaw update status --json`, then retry `openclaw update`.","stopReason":"Cannot establish the update target. Next step: run `openclaw update status --json`, then retry `openclaw update`."},"reason":"Cannot establish the update target. Next step: run `openclaw update status --json`, then retry `openclaw update`."}}

The parent invokes this parser at 2026.9.3 update-repair-worker.ts:165 and 2026.9.4 line 165. Both permit zero attempts. The downstream success check remains 2026.9.3 update-command-execution.ts:427, followed by fresh candidate validation; the 2026.9.4 equivalent is line 401.

PASS status bytes repaired: {"status":"repaired"}
PASS status bytes unrepaired: {"status":"unrepaired"}
PASS compatibility: 12 exact-message parses; 6 invented-status rejections; 2 byte-identical status pairs.

All three schemas reject already-resolved and not-repaired; those are not new wire statuses. This is exact parent-schema parsing proof, not a live worker-process or updater execution.

@clawsweeper

clawsweeper Bot commented Sep 15, 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 cli CLI command changes commands Command implementations size: L maintainer Maintainer-authored PR labels Sep 15, 2026
@steipete
steipete marked this pull request as ready for review September 15, 2026 09:21
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 11:18 AM ET / 15:18 UTC (Revision 12).

ClawSweeper review

What this changes

Triage verifies recorded update targets and current installation health before reporting recovery, while Git updates record their selected commit and available version.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open as the maintainer-selected fix for the false repair verdict. Fetched main still has the defect; the earlier callback finding is fixed, and no additional blocking defect was identified. The documented compatibility limitations have an explicit maintainer disposition.

Priority: P2
Reviewed head: 3dc008d9e84a2657afa91e88d0bd5d9909551459

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent owner-based fix with useful command proof, meaningful regression controls, and explicitly accepted compatibility limits.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The matching PR body records the changed triage command rejecting a 2026.9.4 target against a real published 2026.9.3 installation, with unchanged failure/history artifacts. This proves the negative reporting boundary; the maintainer expressly accepts the remaining successful-handoff coverage gap.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The matching PR body records the changed triage command rejecting a 2026.9.4 target against a real published 2026.9.3 installation, with unchanged failure/history artifacts. This proves the negative reporting boundary; the maintainer expressly accepts the remaining successful-handoff coverage gap.
Evidence reviewed 9 items Pinned source and complete discussion identity: The live PR remains open at the pinned head. Reading the complete body recovered the omitted proof and acceptance sections; its SHA-256 exactly matches the supplied snapshot, c8b43ebfef7ac4d8446e9060764cc9a7565bc45d63fbbb1b88b7ccf93c761af7.
Current main still needs the repair: Fetched main’s triage validator still derives success solely from Doctor errors and prints the repair-loop status directly. The new resolution module is absent there. No merged replacement was established. Direct latest-release source inspection was unsuccessful, so release inclusion is not claimed.
Resolution owner and command integration: The command invokes the new validator for captured update failures. It rejects missing target identity, requires attributed Doctor failures for the narrow Doctor path, and otherwise combines updater completion with current runtime and service checks, followed by an update-owner recheck.
Findings None None.
Security None None.

How this fits together

Triage turns installation diagnostics into a bounded repair attempt and a recovery verdict. This change connects that verdict to the updater’s existing history, runtime verification, Doctor checks, and managed Gateway readiness.

flowchart TD
  A[Saved update failure] --> B[Correlate recorded target]
  B --> C{Doctor-only blocker?}
  C -->|Yes| D[Check identity and Doctor]
  C -->|No| E[Check updater completion]
  E --> F[Verify runtime and Gateway]
  D --> G[Report resolution or missing evidence]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - Explicit historical artifacts without target identity, and stopped or unmanaged Gateways without required service evidence, can remain unrepaired despite otherwise healthy installations; this operator-visible limitation is documented and accepted.
  • Resolve merge risk (P1) - The complete published-updater-to-candidate handoff with successful resolution has not been executed; the maintainer explicitly accepts the bounded reporting proof.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +440, Tests +993, Docs +11. Total +1444 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 10 630 190 +440
Tests 7 1073 80 +993
Docs 2 16 5 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 19 1719 275 +1444

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +440 lines; tests net +993 lines Production growth implements updater-backed resolution and target recording; regression coverage exercises identity, failure attribution, historical-state preservation, and command behavior.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/triage-doctor.ts, migration/backfill/repair: src/infra/update-triage-resolution.ts, unknown-data-model-change: src/commands/triage-doctor.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #148896
Summary: This PR is the preferred implementation candidate for false repair reporting; the package-swap failure itself remains separate.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Retain the accepted evidence boundary (recommended)
    Accept the documented conservative verdicts for legacy artifacts and unavailable managed-service proof while preserving ordinary standalone Doctor triage.

Technical review

Best possible solution:

Keep recovery certification with the existing updater and verification owners, preserving historical failures and the shipped worker protocol under the accepted legacy-evidence limits.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: fetched main accepts clean Doctor validation before any repair even when a saved update failure remains unresolved. The linked report supplies a command/real-loop reproduction; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. The patch composes existing updater evidence and verification owners, preserves ordinary Doctor triage, and addresses the related review’s compatibility controls without introducing another recovery mechanism.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against dcd90156c055.

Labels

Label justifications:

  • P2: This repairs a concrete false recovery verdict without changing the underlying package-swap algorithm.
  • merge-risk: 🚨 compatibility: Existing explicit historical artifacts can now return unrepaired when the required identity or service evidence is unavailable, an accepted change in CLI behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The matching PR body records the changed triage command rejecting a 2026.9.4 target against a real published 2026.9.3 installation, with unchanged failure/history artifacts. This proves the negative reporting boundary; the maintainer expressly accepts the remaining successful-handoff coverage gap.
  • proof: sufficient: Contributor real behavior proof is sufficient. The matching PR body records the changed triage command rejecting a 2026.9.4 target against a real published 2026.9.3 installation, with unchanged failure/history artifacts. This proves the negative reporting boundary; the maintainer expressly accepts the remaining successful-handoff coverage gap.

Evidence

What I checked:

  • Pinned source and complete discussion identity: The live PR remains open at the pinned head. Reading the complete body recovered the omitted proof and acceptance sections; its SHA-256 exactly matches the supplied snapshot, c8b43ebfef7ac4d8446e9060764cc9a7565bc45d63fbbb1b88b7ccf93c761af7. (3dc008d9e84a)
  • Current main still needs the repair: Fetched main’s triage validator still derives success solely from Doctor errors and prints the repair-loop status directly. The new resolution module is absent there. No merged replacement was established. Direct latest-release source inspection was unsuccessful, so release inclusion is not claimed. (src/commands/triage.ts:683, dcd90156c055)
  • Resolution owner and command integration: The command invokes the new validator for captured update failures. It rejects missing target identity, requires attributed Doctor failures for the narrow Doctor path, and otherwise combines updater completion with current runtime and service checks, followed by an update-owner recheck. (src/infra/update-triage-resolution.ts:169, 3dc008d9e84a)
  • Existing persistence and execution boundaries preserved: Git admission checks current execution ownership before recording selected SHA/version through the existing phase writer. Existing target fields already support both values; the writer ignores terminal rows. The diff adds no database migration, worker status, plugin API, dependency, or authorization grant. (src/cli/update-cli/update-command-git-admission.ts:13, 3dc008d9e84a)
  • Prior compatibility feedback addressed: PollyBot13’s source review identified implicit historical notifications and Doctor-only repair as distinct controls: fix: keep saved update failures unverified in triage #148943 (comment). Current command regressions cover ordinary Doctor success with uncorrelated history, correlated failures, missing identities, one-turn Doctor repair, and preserved historical records. (src/commands/triage-run.test.ts:100, 3dc008d9e84a)
  • Earlier finding resolved: The unreadable-target callback assertion now includes the actual selected upstream SHA and its precise metadata-read failure. This matches the introduced callback payload rather than retaining the obsolete expected shape. (src/infra/update-runner.test.ts:1169, 3dc008d9e84a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • PollyBot13: 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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-15T11:03:26.282Z sha d3bf207b05f2a4f1f5e207bf8d6979be7af50949 :: blocked before merge. :: none
  • reviewed 2026-09-15T11:12:44.745Z sha bc9cb5e :: blocked before merge. :: none
  • reviewed 2026-09-15T11:50:39.068Z sha e14273b :: blocked before merge. :: none
  • reviewed 2026-09-15T12:44:15.160Z sha 82d510757dbbef8e6570b9252cb512307b54c990 :: blocked before merge. :: none
  • reviewed 2026-09-15T13:24:04.485Z sha 82d510757dbbef8e6570b9252cb512307b54c990 :: blocked before merge. :: none
  • reviewed 2026-09-15T13:35:51.444Z sha 82d510757dbbef8e6570b9252cb512307b54c990 :: blocked before merge. :: [P2] [P2] Update the unreadable-target assertion for the selected SHA
  • reviewed 2026-09-15T14:04:58.873Z sha 3dc008d :: blocked before merge. :: none
  • reviewed 2026-09-15T14:37:53.175Z sha 3dc008d :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 15, 2026
@steipete
steipete force-pushed the upd/triage-false-repair-148896 branch from c7bc893 to d3bf207 Compare September 15, 2026 10:29
@steipete
steipete force-pushed the upd/triage-false-repair-148896 branch from d3bf207 to bc9cb5e Compare September 15, 2026 11:06
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui agents Agent runtime and tooling extensions: github-copilot labels Sep 15, 2026
@openclaw-barnacle openclaw-barnacle Bot removed agents Agent runtime and tooling extensions: github-copilot labels Sep 15, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 15, 2026
Use recorded target and updater completion facts with current runtime and Gateway verification. Preserve published worker statuses and label verified zero-attempt results as already resolved. Fixes false repair reports following 2026.9.3 and 2026.9.4 update failures.
Preserve only valid UUID run IDs verbatim so diagnostic redaction cannot sever the ledger reference. Move the existing Doctor subprocess validator into its owner module to satisfy the source line limit without changing its behavior.
Carry the selected commit and available manifest version from Git target inspection into the existing update run before candidate checks. Replace stale candidate identity fields, accept a recorded Git version or SHA independently, and verify every available identity against updater completion and the installed runtime. Preserve the shipped worker status protocol and executor verification ordering.
Keep inspected target recording and pre-mutation admission together, remove their old definitions, and move the native admission matrix into its own test file. Preserve the existing line limits and all behavioral assertions.
Keep uncorrelated implicit update notifications informational during plain triage. Resolve positively attributed Doctor/config failures through fresh Doctor checks and recorded installed identities, without rewriting historical outcomes or requiring a later update. Preserve package, plugin, writer and authority failure verification. Compatibility review by @PollyBot13 identified both controls.
Require current plugin-health verification when the saved failure carries concrete plugin errors, including post-update-failed wrappers. Remove three identical Copilot expectation keys duplicated by the paused rebase; the assertion now matches main without changing its values.
@steipete
steipete force-pushed the upd/triage-false-repair-148896 branch from 4f2e9de to 3dc008d Compare September 15, 2026 13:57
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 15, 2026
@steipete
steipete merged commit ca7c900 into main Sep 15, 2026
216 of 217 checks passed
@steipete
steipete deleted the upd/triage-false-repair-148896 branch September 15, 2026 15:20
@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 16, 2026
…n evidence (openclaw#148968)

* fix(triage): require update resolution evidence before reporting repair

Use recorded target and updater completion facts with current runtime and Gateway verification. Preserve published worker statuses and label verified zero-attempt results as already resolved. Fixes false repair reports following 2026.9.3 and 2026.9.4 update failures.

* fix(triage): preserve run identity and isolate Doctor validation

Preserve only valid UUID run IDs verbatim so diagnostic redaction cannot sever the ledger reference. Move the existing Doctor subprocess validator into its owner module to satisfy the source line limit without changing its behavior.

* fix(triage): record and verify resolved Git update identities

Carry the selected commit and available manifest version from Git target inspection into the existing update run before candidate checks. Replace stale candidate identity fields, accept a recorded Git version or SHA independently, and verify every available identity against updater completion and the installed runtime. Preserve the shipped worker status protocol and executor verification ordering.

* refactor(update): group Git admission and its boundary tests

Keep inspected target recording and pre-mutation admission together, remove their old definitions, and move the native admission matrix into its own test file. Preserve the existing line limits and all behavioral assertions.

* fix(triage): preserve plain Doctor and attributed repair flows

Keep uncorrelated implicit update notifications informational during plain triage. Resolve positively attributed Doctor/config failures through fresh Doctor checks and recorded installed identities, without rewriting historical outcomes or requiring a later update. Preserve package, plugin, writer and authority failure verification. Compatibility review by @PollyBot13 identified both controls.

* fix(triage): verify plugin health for wrapped update failures

Require current plugin-health verification when the saved failure carries concrete plugin errors, including post-update-failed wrappers. Remove three identical Copilot expectation keys duplicated by the paused rebase; the assertion now matches main without changing its values.

* fix(triage): require recorded target identity for Doctor repair

* chore(ci): refresh PR head after push lag

* test(update): expect selected Git SHA in mutation callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

triage --run reports repaired for saved global-install-failed solely because Doctor lint passes

1 participant