Skip to content

fix(update): retain ledger phases in failure reports - #144281

Merged
fuller-stack-dev merged 8 commits into
openclaw:mainfrom
jason-allen-oneal:fix/update-service-preflight
Sep 12, 2026
Merged

fuller-stack-dev merged 8 commits into
openclaw:mainfrom
jason-allen-oneal:fix/update-service-preflight

Conversation

@jason-allen-oneal

@jason-allen-oneal jason-allen-oneal commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #144280

What Problem This Solves

Fixes an issue where operators reporting a failed managed update could receive an empty steps list even though the same update attempt’s durable ledger retained failed activation and rollback phases. The interactive “Report update failure” flow is the affected surface, and the missing phases make an outage harder to diagnose and recover.

Why This Change Was Made

The report builder now reads the canonical ledger for the same attempt when the compact handoff result omits phases, merges only failed durable lifecycle steps not already present, bounds and redacts them using existing report rules, and falls back safely if the ledger is unavailable or locked. No schema, configuration, database, or updater ownership behavior changes.

User Impact

Operators get failure reports that preserve actionable activation and rollback phase names rather than publishing steps: []. Existing compact-result behavior remains compatible, and sensitive command, path, and detail text stays redacted.

Evidence

Current-head proof and results are below. The prior ledger-only exit 1 preview is superseded by the corrected exit unknown trace.

Related but distinct: #139082 covers startup timing, #142744 is a Darwin/npm unsafe-handoff auto report, and #143767 covers human-readable warning retention.

Evidence: exact-head report preview

Tested HEAD: d0cac57175998799f61cccff09f3333bbc19cca8

Review correction

Addresses the ledger-only exit-code finding. Durable steps record failure status, not a process exit code, so the adapter now preserves null and the existing renderer shows exit unknown. Direct results still retain their actual code; the overlap regression verifies an observed exit 7 appears once.

Real behavior proof

Surface: the production CLI runInteractiveUpdateFailureAction() entry point, its real Clack selection/confirmation prompts, real getUpdateRun() SQLite reader, and real report preparation. A standalone harness seeds synthetic state with the production ledger APIs and invokes the same report action used by the updater. It does not mock the prompts, ledger, formatter, or transport. This is report-action proof, not a full update/install run.

Environment: Linux x64, Node 24.19.0, source checkout at the full HEAD above. SQLite is a real state/openclaw.sqlite file (schema version 17); the writer is closed before entering the report action. The compact update result has steps: []. The selected and ambient state directories contain the same attempt ID but different failed phases, demonstrating that the preview uses the admitted state scope rather than ambient state.

Before: identical harness on 577a5a820b82c0d7716c67ca4d667ae37507e9db produced exit 1 for activation and package rollback. The expected-unknown assertion failed (exit 1). The regression suite reproduced the same error (1 failed, 35 passed).

After: on d0cac57175998799f61cccff09f3333bbc19cca8, select Report update failure, then No at submission confirmation. Recorded output:

HEAD: d0cac57175998799f61cccff09f3333bbc19cca8
Platform: linux/x64; Node: 24.19.0
Durable selected attempt: 00000000-0000-4000-8000-000000014428; status: failed
Selected failed phases: activating, package rollback
Ambient ledger: same attempt ID, different failed phase (ambient-decoy)
Compact result: steps=[]; no recordedRun injected; production handler reads SQLite
Sanitized update failure report preview:
- Failed phase: package-rollback
- Failed phase activating: exit unknown
- Failed phase package-rollback: exit unknown
Submit this sanitized report to openclaw/openclaw now?
No
Update failure report cancelled.
PASS: real interactive preview reads selected SQLite ledger, unknown exits retained, details omitted, submission cancelled.

The preview contained neither the ambient decoy nor synthetic private ledger detail. No GitHub issue was submitted. Both before/after used the same unchanged harness (SHA-256 014e91e520fb5a848c35c123ae386423832dcf67b513199916358424dc52df05).

Exact executed command (from the pinned source checkout, in a PTY; input Down+Enter, then n+Enter):

script -q -e -c 'env -i PATH=/home/rev/.openclaw/tools/node-v24.19.0/bin:/usr/bin:/bin TERM=xterm-256color LANG=C.UTF-8 OPENCLAW_HOME=/tmp/openclaw-144281-readiness-20260910/green OPENCLAW_STATE_DIR=/tmp/openclaw-144281-readiness-20260910/green/ambient-state node --import ./scripts/tsx.mjs /tmp/openclaw-144281-readiness-20260910/preview.mts /tmp/openclaw-144281-readiness-20260910/green' /tmp/openclaw-144281-readiness-20260910/green-preview.ansi

Additional checks: 50 tests passed on the committed head (36 report-preparation + 14 CLI consent/report tests), targeted type-aware lint exit 0, formatter and git diff --check clean. Independent scoped autoreview (P0–P2) was clean. Test command:

OPENCLAW_VITEST_MAX_WORKERS=1 node --import ./scripts/tsx.mjs scripts/test-projects.mts src/infra/update-failure-report-prepare.test.ts src/cli/update-cli/update-command-report.test.ts

Not exercised: actual package installation, managed-service activation/rollback, packaged-binary execution, or GitHub issue submission. The report action uses real isolated SQLite data and terminal interaction; tests cover the additional direct-result precedence and consent branches.

Complete standalone proof harness

Save as preview.mts at the path used in the command above. It creates only synthetic isolated state.

import assert from "node:assert/strict";
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
import { pathToFileURL } from "node:url";

const checkout = process.cwd();
const proofRoot = process.argv[2];
if (!proofRoot || !path.isAbsolute(proofRoot)) throw new Error("Absolute proof directory required");
const load = (relative: string) => import(pathToFileURL(path.join(checkout, relative)).href);
const ledger = await load("src/infra/update-run-ledger.ts");
const { closeOpenClawStateDatabase } = await load("src/state/openclaw-state-db.ts");
const { runInteractiveUpdateFailureAction } = await load("src/cli/update-cli/update-command-report.ts");
const runId = "00000000-0000-4000-8000-000000014428";
const selectedState = path.join(proofRoot, "selected-state");
const ambientState = path.join(proofRoot, "ambient-state");
const selectedEnv = { OPENCLAW_STATE_DIR: selectedState, OPENCLAW_HOME: proofRoot };
const ambientEnv = { OPENCLAW_STATE_DIR: ambientState, OPENCLAW_HOME: proofRoot };
fs.mkdirSync(proofRoot, { recursive: true, mode: 0o700 });
function seed(env: NodeJS.ProcessEnv, phases: string[]) {
  ledger.createUpdateRun({ runId, trigger: "cli" }, { env });
  ledger.recordUpdateRunPhase(runId, "activating", {}, { env });
  for (const step of phases) ledger.recordUpdateRunStep(runId, {
    step, status: "failed", detail: "SYNTHETIC_PRIVATE_DETAIL",
  }, { env });
  ledger.finishUpdateRun(runId, { status: "failed", reason: "state-migrated-no-rollback" }, { env });
}
if (!fs.existsSync(selectedState)) seed(selectedEnv, ["activating", "package rollback"]);
if (!fs.existsSync(ambientState)) seed(ambientEnv, ["ambient-decoy"]);
closeOpenClawStateDatabase();
process.env.OPENCLAW_STATE_DIR = ambientState;
const selectedRun = ledger.getUpdateRun(runId, { env: selectedEnv });
assert(selectedRun);
console.log(`HEAD: ${execFileSync("git", ["-C", checkout, "rev-parse", "HEAD"], { encoding: "utf8" }).trim()}`);
console.log(`Platform: ${process.platform}/${process.arch}; Node: ${process.versions.node}`);
console.log(`Durable selected attempt: ${selectedRun.runId}; status: ${selectedRun.status}`);
console.log(`Selected failed phases: ${selectedRun.steps.filter((step: {status: string}) => step.status === "failed").map((step: {step: string}) => step.step).join(", ")}`);
console.log("Ambient ledger: same attempt ID, different failed phase (ambient-decoy)");
console.log("Compact result: steps=[]; no recordedRun injected; production handler reads SQLite");
const lines: string[] = [];
const errors: string[] = [];
const result = await runInteractiveUpdateFailureAction({
  attemptId: runId,
  env: selectedEnv,
  result: {
    mode: "git", status: "error", reason: "state-migrated-no-rollback", steps: [], durationMs: 1,
  },
  runtime: {
    log: (line: string) => { lines.push(line); console.log(line); },
    error: (line: string) => { errors.push(line); console.error(line); },
  },
});
closeOpenClawStateDatabase();
fs.writeFileSync(path.join(proofRoot, "preview.txt"), lines.join("\n") + "\n");
assert.equal(result, "handled");
assert.deepEqual(errors, []);
const preview = lines.join("\n");
assert.match(preview, /Update failure report cancelled\./u);
assert.doesNotMatch(preview, /ambient-decoy|SYNTHETIC_PRIVATE_DETAIL|Created GitHub issue/u);
assert.match(preview, /Failed phase activating: exit unknown/u);
assert.match(preview, /Failed phase package-rollback: exit unknown/u);
console.log("PASS: real interactive preview reads selected SQLite ledger, unknown exits retained, details omitted, submission cancelled.");

Maintainer integration evidence

Signed head 845603b266f269d45b199dcf851919573603e24e incorporates landed inherited CI repairs from main while preserving the contributor ancestry and four-file report patch. 103 focused tests and native changed-source checks pass. Real CLI/SQLite red-green and missing/corrupt-store proof remains preserved. Current evidence, timing limitations, and exact-head CI.

This is report enrichment, not update execution or live deployment. An already-installed older updater cannot gain these diagnostic improvements before installing them. Native landing remains conditional on exact-head required checks.

@clawsweeper

clawsweeper Bot commented Sep 10, 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 cli CLI command changes size: S labels Sep 10, 2026
…eflight

# Conflicts:
#	src/cli/update-cli/update-command-report.test.ts
#	src/infra/update-failure-report-prepare.ts
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 12:02 AM ET / 04:02 UTC (Revision 8).

ClawSweeper review

What this changes

The interactive update-failure report includes sanitized failed phases from the same attempt’s stored history while preserving measured exit codes and lifecycle order.

Merge readiness

✅ Ready for maintainer review

This remains a useful, well-supported repair: current main and v2026.9.4 still omit ledger-only failures from the CLI report. Earlier findings are resolved, and no new blocking defect was found.

Priority: P2
Reviewed head: 845603b266f269d45b199dcf851919573603e24e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with strong real report-path evidence, meaningful regression coverage, and resolved prior findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The inspected terminal evidence exercises the production CLI report action with real prompts and SQLite, showing retained phases, unknown exits, selected-state isolation, private-detail omission, and cancellation; independent missing/corrupt-store controls supplement it. Maintainer integration evidence preserves applicability to this head and explicitly limits the claim to reporting after the updated code is installed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The inspected terminal evidence exercises the production CLI report action with real prompts and SQLite, showing retained phases, unknown exits, selected-state isolation, private-detail omission, and cancellation; independent missing/corrupt-store controls supplement it. Maintainer integration evidence preserves applicability to this head and explicitly limits the claim to reporting after the updated code is installed.
Evidence reviewed 8 items Current main still needs the repair: The fetched main implementation filters only result.steps; an empty compact result cannot contribute the failures retained in the ledger.
Released implementation has the same gap: The v2026.9.4 source also derives failed phases exclusively from result.steps. The release source was successfully inspected through GitHub REST after local historical-blob retrieval failed.
Existing reader preserves storage and state scope: The CLI supplies its admitted environment to getUpdateRun and tolerates read failures. The existing reader uses artifact-preserving read-only access and selects the exact run ID; this patch adds no schema or persistence writer.
Findings None None.
Security None None.

How this fits together

The update CLI receives a final update result and offers operators a sanitized failure report. This change supplements compact results with existing SQLite run history before preview and explicit submission consent.

flowchart TD
  A[Final update result] --> D[Prepare failure report]
  B[Selected state directory] --> C[Read same-attempt history]
  C --> D
  D --> E[Bound and redact failed phases]
  E --> F[Operator previews report]
  F --> G{Confirm submission}
  G --> H[Submit or cancel]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +58, Tests +114. Total +172 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 69 11 +58
Tests 2 114 0 +114
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 183 11 +172

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #144280
Summary: This PR is the implementation candidate for the paired diagnostic-omission issue; broader update failures remain separate.

Members:

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

Technical review

Best possible solution:

Keep failure-report enrichment in the existing report owner, using read-only same-attempt history without changing update execution, stored data, or submission consent.

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

Yes: current main's report builder consumes only result.steps, so a compact empty result omits same-attempt ledger failures. The supplied real CLI/SQLite traces demonstrate the report-path repair; this read-only review did not execute code.

Is this the best way to solve the issue?

Yes: the patch reuses the canonical reader and existing redaction/consent flow, preserving measured exits and recorded order without introducing another storage owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs missing diagnostic evidence in failed-update reports without changing installation or service recovery behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 inspected terminal evidence exercises the production CLI report action with real prompts and SQLite, showing retained phases, unknown exits, selected-state isolation, private-detail omission, and cancellation; independent missing/corrupt-store controls supplement it. Maintainer integration evidence preserves applicability to this head and explicitly limits the claim to reporting after the updated code is installed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The inspected terminal evidence exercises the production CLI report action with real prompts and SQLite, showing retained phases, unknown exits, selected-state isolation, private-detail omission, and cancellation; independent missing/corrupt-store controls supplement it. Maintainer integration evidence preserves applicability to this head and explicitly limits the claim to reporting after the updated code is installed.

Evidence

What I checked:

Likely related people:

  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • 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 (7 earlier review cycles)
  • reviewed 2026-09-10T18:50:37.934Z sha 577a5a8 :: needs real behavior proof before merge. :: [P2] Preserve unknown exit codes for ledger-only failures
  • reviewed 2026-09-10T19:42:18.489Z sha d0cac57 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-10T19:50:40.649Z sha d0cac57 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T20:24:42.715Z sha 28b7350 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T22:07:56.719Z sha 28b7350 :: blocked before merge. :: none
  • reviewed 2026-09-11T23:33:47.900Z sha 10efb24 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T00:50:19.200Z sha 3208137 :: needs maintainer review before merge. :: none

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head d0cac57175998799f61cccff09f3333bbc19cca8 corrects the fabricated ledger-only exit code. The PR body contains the identical real CLI/Clack/SQLite preview failing before and passing on this committed head, with selected state distinct from ambient, exact command, full standalone harness, and coverage limits. Fifty committed-head tests pass; a measured direct exit code still wins. Please reassess the current code and proof; hosted CI is running for this head.

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor

Maintainer review at head d0cac57 (source review plus hosted CI; nothing executed locally). The production change is right: main's update-failure-report-prepare.ts derives failures only from result.steps, so a compact error handoff with steps: [] drops the activation and rollback phases the ledger retained, and reading the same-attempt run through the existing getUpdateRun owner while preserving redaction and measured exits is the correct repair.

One cleanup before landing: src/cli/update-cli/update-command-report.test.ts:114-116 builds an object containing only steps and asserts it to the full non-null getUpdateRun return type. That hides an invalid record shape behind a cast, which the strict typing rule does not allow. Please replace it with a complete typed ledger fixture (run identity, phases, timestamps as the type requires) so the test exercises the real shape. With that, this is ready to land; ClawSweeper's exact-head state is already ready and ci-gate is green.

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@steipete Updated as requested in 28b7350: the test now uses a complete UpdateRunRecord fixture with run identity, lifecycle state, and timestamps, checked via satisfies instead of casting a partial object. Focused tests and check:changed pass. Thanks for the precise review.

@jason-allen-oneal

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@fuller-stack-dev fuller-stack-dev self-assigned this Sep 11, 2026
@fuller-stack-dev

Copy link
Copy Markdown
Member

Maintainer review and conflict repair completed for this atomic-update remediation component.

  • Retained contributor ancestry and current main recovery/restart-failure wording.
  • Found and fixed an additional P2: a partial immediate result could reorder ledger failures and identify the wrong final phase. The regression failed before the correction and passes afterward.
  • 98 focused tests pass, covering report preparation, explicit consent, submission handling, and the Gateway report owner. Final core/test typechecks and formatting pass; P0–P2 structured autoreview is clean.
  • Independently exercised the real CLI report action against isolated SQLite. Unchanged baseline fbfa97690bc61938910da9d5f41963666e0e8443 loses the recorded phases; the repaired tree retains them with unknown exits, excludes the other state scope and private details, and honors cancellation. Missing/corrupt-ledger controls preserve preview/cancel and leave storage unchanged.

The prepared tree is cb28df5b3b590d6351378ee54ddcb9ebefa1497d. This is report-path evidence, not a claim of a live installation, rollback, restart, or public issue submission. No schema or update-execution changes are included. Required hosted CI on the published head remains the landing gate.

Release-note impact: retain same-attempt lifecycle failure phases in managed-update reports when the handoff omits them. Fixes #144280.

@fuller-stack-dev

fuller-stack-dev commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Updated landing status for signed head 845603b266f269d45b199dcf851919573603e24e.

Merged main c0f8bcf8e7f7ec540d5c11686c7444b4d71c55c8 for the landed inherited UI fixes: picker #145463, cloud-target export cleanup #145420, and cursor policy #145516. Contributor ancestry is preserved; the four-file report patch is unchanged.

  • 103 focused tests passed, including report/consent/Gateway, the original cache-retention test, all three native Bash policy cases, and cursor policy.
  • Native changed-source checks passed, including core/test typechecks, all dead-export scans, scoped lint, and owner guards.
  • Prior real CLI/SQLite baseline RED/head GREEN and missing/corrupt-store controls remain applicable. Fresh source review's advisory hypothesis was rejected after confirming the canonical producer records advisories as completed in current and published 9.4 source; a real-function control passed.

The old run's complete failures were where-chip max-lines, unused cloud-target exports, cursor policy, and a native Bash iterator-close timeout. The earlier cache-retention timeout cause remains unproven. Passing controls do not waive hosted failures; no deadline, assertion, budget, or unrelated source was changed.

Exact-head CI run 34671559894 is now pending. Native preparation and landing require its green result. This changes diagnostics only, not updater execution or a published driver's first attempt. No deployment or scheduler action.

Exact-head CI continuation

Attempt 1 completed with all earlier failures cleared. One new failure remained: large-16 hit the existing three-second no-output deadline in the verified-CLI invocation fixture. Its test and execution sources match the PR base and current main. An unchanged focused control passed both invocation cases, in 240 ms and 117 ms. This does not establish the hosted timeout cause.

Requested one targeted retry of that failed job and its dependent gate, preserving the original shard order and exact head. No blanket rerun, source change, or deadline/assertion adjustment. Attempt 2 is pending; native landing remains gated.

Final qualification

Attempt 2 passed on the same signed head. The targeted job passed 3,577 tests with four skipped, including the invocation fixture in 718 ms and 332 ms at its original deadline. All 168 checks are successful, 43 skipped, with none pending or failed. Fresh exact-head ClawSweeper found no actionable defect. Native preparation and merge verification both passed. Landing has not yet been dispatched. The earlier timeout cause remains unproven; original failure evidence is retained.

@fuller-stack-dev
fuller-stack-dev merged commit e5dd80a into openclaw:main Sep 12, 2026
376 of 379 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

steipete added a commit that referenced this pull request Sep 12, 2026
Merge main while retaining bounded owner-recorded diagnostics through the
ledger and public report. Restrict command-derived error codes and public
messages, preserve Doctor requirements, and share the report projection.

Absorb runtime-preflight metadata from #144923 and same-attempt ledger
ordering from #144281 through the existing failureFacts contract.

Co-authored-by: zhang-guiping <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
steipete added a commit that referenced this pull request Sep 12, 2026
Update failures could lose the check and underlying cause while passing through Doctor output, ledger history, restart handoffs, and public report preparation. Record bounded failure facts at the existing producers and carry them through those contracts. Human summaries, openclaw update status --json, and reviewed GitHub reports now preserve the initiating failure alongside recent recovery failures.

Public reports project source-owned identifiers and recognized causes through the shared privacy boundary, redacting private values before preview and submission. The canonical Doctor lint parser preserves the underlying requirement before log truncation. Optional diagnostic fields leave schema versions, retention, recovery policy, configuration, and protocol versions unchanged.

Fixes #144945
Refs #145252 #144923 #144281 #145321

Supersedes #144923's separate errorDetails path while preserving its runtime facts. Thanks to @zhangguiping-xydt and @vincentkoc for the adopted runtime-preflight code. Retains #144281's same-attempt ledger ordering (thanks to @jason-allen-oneal) and #145321's orthogonal settlement correction.

Regression proof covers all six fact families, Doctor cause retention, public preview/submission redaction, mutable private plugin metadata, and summary selection. The recorded readyz failure survives replay through the reviewed local/public renderer. The main integrations preserve the existing build-identity comparison, snapshot-capacity fields, typed refusals, and canary plumbing alongside failure facts. A fresh full-branch P1 autoreview of the final integration is scoped-clean. ClawSweeper's prior privacy and Doctor-cause findings are resolved; no landing fixups were needed.

The maintainer accepted this bounded reporting repair with recovery qualification still unproved. The published-driver upgrade passed, but baseline restoration and same-schema rollback timed out; those results remain updater-owner follow-ups and are not claimed as successful recovery proof.

Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/34687654108/attempts/1. No rerun was needed.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: zhang-guiping <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
* fix(update): retain ledger phases in failure reports

* style(update): format merged report module

* fix(update): preserve unknown ledger-only failure exits

* test(update): use complete ledger report fixture

---------

Co-authored-by: Jason (Json) <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…aw#145390)

Update failures could lose the check and underlying cause while passing through Doctor output, ledger history, restart handoffs, and public report preparation. Record bounded failure facts at the existing producers and carry them through those contracts. Human summaries, openclaw update status --json, and reviewed GitHub reports now preserve the initiating failure alongside recent recovery failures.

Public reports project source-owned identifiers and recognized causes through the shared privacy boundary, redacting private values before preview and submission. The canonical Doctor lint parser preserves the underlying requirement before log truncation. Optional diagnostic fields leave schema versions, retention, recovery policy, configuration, and protocol versions unchanged.

Fixes openclaw#144945
Refs openclaw#145252 openclaw#144923 openclaw#144281 openclaw#145321

Supersedes openclaw#144923's separate errorDetails path while preserving its runtime facts. Thanks to @zhangguiping-xydt and @vincentkoc for the adopted runtime-preflight code. Retains openclaw#144281's same-attempt ledger ordering (thanks to @jason-allen-oneal) and openclaw#145321's orthogonal settlement correction.

Regression proof covers all six fact families, Doctor cause retention, public preview/submission redaction, mutable private plugin metadata, and summary selection. The recorded readyz failure survives replay through the reviewed local/public renderer. The main integrations preserve the existing build-identity comparison, snapshot-capacity fields, typed refusals, and canary plumbing alongside failure facts. A fresh full-branch P1 autoreview of the final integration is scoped-clean. ClawSweeper's prior privacy and Doctor-cause findings are resolved; no landing fixups were needed.

The maintainer accepted this bounded reporting repair with recovery qualification still unproved. The published-driver upgrade passed, but baseline restoration and same-schema rollback timed out; those results remain updater-owner follow-ups and are not claimed as successful recovery proof.

Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/34687654108/attempts/1. No rerun was needed.

Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: zhang-guiping <[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 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: S 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.

[Bug]: Managed update failure reports drop phases retained in the update ledger

3 participants