Repository navigation
fix(update): name the failing check in update failure reports - #145390
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 12, 2026, 6:32 AM ET / 10:32 UTC (Revision 16). ClawSweeper reviewWhat this changesPreserve bounded failing-check details through update history, subprocess handoffs, local summaries, and privacy-filtered GitHub reports. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful reporting repair absent from current main. No actionable correctness or security defect was found; prior findings are addressed, and the recorded maintainer acceptance resolves the earlier compatibility hold. Priority: P2 Review scores
Verification
How this fits togetherThe updater collects results from Doctor, package installation, plugins, and Gateway verification. Its reporting layer carries those observations through durable history and restart handoffs into operator summaries and consent-gated GitHub reports. flowchart TD
A[Update checks] --> B[Bound and redact failure facts]
B --> C[Run history and restart handoff]
C --> D[Select original and recent failures]
D --> E[Local summary]
D --> F[Public privacy projection]
F --> G[Reviewed GitHub report]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +977, Tests +1107, Docs +12. Total +2096 across 68 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one producer-owned diagnostic contract and one public privacy projection, preserving the accepted separation between reporting improvements and broader updater recovery qualification. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main drops Doctor requirement/path metadata before bounded failure reporting, and the supplied regression evidence exercises that loss. No current-main runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. Extending existing producer results and sharing report preparation avoids a parallel error pipeline; the privacy and Doctor-cause corrections address the earlier findings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e625b673e7da. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (15 earlier review cycles; latest 8 shown)
|
Record bounded check, reason, and redacted diagnostic facts before command tails are trimmed. Preserve Doctor findings through candidate validation and carry failure facts through update history, CLI output, support artifacts, and reviewed GitHub reports. Keep candidate failures visible after successful rollback verification. Fixes #144945. Refs #145252. Existing SQLite and protocol versions, diagnostic size limits, and recovery decisions remain unchanged.
94da261 to
b947d9f
Compare
Keep shared report formatting independent of server redaction, preserve Git canary findings through refusal, and consolidate managed-service diagnostic facts.
Move the npm first-error regression unchanged into the existing report suite so integration with the latest Doctor tests stays within the core test-root limit.
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]>
Merge main while retaining Doctor receipt facts, failure classification, and complete local diagnostics. Restrict public identifiers to source-owned checks, known error codes, and shipped static plugin catalogs; preserve bounded causes while removing private command text.
Retain the canonical facts-aware ledger projection while merging upstream phase history, plugin advisories, and Doctor admission changes. Share command completion and refusal contracts to remove repeated field forwarding.
…sing private data (#178301) Refs #178094, #178244, #145390. Generated update-failure reports collapsed candidate-startup failures to [redacted-diagnostic] and config paths to agents.*, leaving them untriageable. The candidate canary now emits fixed producer-owned cause templates and invalid-config reports keep schema-owned path segments with <id> for dynamic map keys; existing allowlisted facts are preserved. The #145390 public allowlist is unchanged: no free-text diagnostics, paths, hosts or user values reach the public report.
…sing private data (openclaw#178301) Refs openclaw#178094, openclaw#178244, openclaw#145390. Generated update-failure reports collapsed candidate-startup failures to [redacted-diagnostic] and config paths to agents.*, leaving them untriageable. The candidate canary now emits fixed producer-owned cause templates and invalid-config reports keep schema-owned path segments with <id> for dynamic map keys; existing allowlisted facts are preserved. The openclaw#145390 public allowlist is unchanged: no free-text diagnostics, paths, hosts or user values reach the public report.
… reports (openclaw#178689) Fixes openclaw#178550. Shared-state schema repair failures now carry a fixed public diagnosis that survives report redaction; private exception details stay local (openclaw#145390 allowlist unchanged).
…sing private data (#178301) Refs #178094, #178244, #145390. Generated update-failure reports collapsed candidate-startup failures to [redacted-diagnostic] and config paths to agents.*, leaving them untriageable. The candidate canary now emits fixed producer-owned cause templates and invalid-config reports keep schema-owned path segments with <id> for dynamic map keys; existing allowlisted facts are preserved. The #145390 public allowlist is unchanged: no free-text diagnostics, paths, hosts or user values reach the public report. (cherry picked from commit f642756) Release adaptation: preserve named canary imports, rehearsal cleanup, current release fixture isolation and TypeScript API. Carry the schema-path callback through the release report context type and adapt the startup fixture to the release rehearsal preparation contract. The bundled build Git-root guard and relocated-package isolation are already covered. Adapt compatibility discovery to exclude the two existing sealed helper entrypoints; do not import the later standalone-graph registry. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> (cherry picked from commit 1898acb4d7017f51e7e765500c563edabd44ce23)
Fixes #144945
Refs #145252 #144923 #144281 #145321
What Problem This Solves
Fixes an issue where users submitting generated update-failure reports would provide only a phase and exit status, even though the updater knew the failed check. Candidate Doctor findings could disappear into a log tail before reporting, and compact handoff results could omit earlier failed ledger phases.
Why This Change Was Made
Record one bounded
failureFactsarray at the Doctor, runtime verification, package install/swap, managed-service, canary, and plugin owners. Carry it through existing step, ledger, Doctor IPC, and restart handoff contracts. The canonical report preparation enriches direct results from the same attempt's ledger, preserving lifecycle order, measured exits, and direct-success precedence. Both summaries share a three-step selector that retains the first structured failure alongside the two latest recovery failures, so repair/rollback errors cannot crowd out the original check.Public disclosure is a separate projection: exact source-owned check/code identities, shipped static plugin catalog IDs, bounded recognized causes, and fixed diagnostic templates. Private identifiers, arbitrary prose/command arguments, paths, hosts, tokens, and opaque version labels redact before preview and submission. Public IDs never come from scanning mutable extension directories. Local reports retain complete normalized bounded facts. Limits remain five facts per step, 200 characters per message, and the existing 16 KB report body.
User Impact
openclaw update status --json, human summaries, and reviewed GitHub reports name the failing check. Doctor facts preserve the underlyingrequirement, message, and affected key before truncation. Unknown private identifiers remain local and become explicit redaction markers publicly; deeper config keys project to safe anchors. This makes a report actionable without adding public logs.Evidence
Attribution-only revision
98d127190210229995580f54744ea2aa87a647e5: the Git tree is identical to reviewed head06a8e475e0b8ce8610c8a18f9ca01318a05935ff. The lead's scoped-clean autoreview is adopted for this unchanged tree. Source-commit trailers were corrected while preserving all trees and merge topology; no code, tests, or artifacts changed.Before the fix, the runtime fixture reported:
After the fix, local and public renderings also contain:
Regression evidence includes failing-before/passing-after tests for all six fact families and the Doctor canary. Poisoned stderr travels through the command owner, ledger, local renderer, actual Gateway preview handler, and captured submission transport: the check and recognized cause remain; synthetic tokens, private paths/hosts, command arguments, and private codes do not. A valid synthetic private extension inserted into the metadata inventory leaked before the catalog fix (
1 failed, 2 passed); after it, the same preview/submission contract passes and publicdiscordremains visible.Validation:
node scripts/check-changed.mjs --timed -- <68 changed paths>passed. The integrated report/canary/Doctor/ledger/update-CLI/repair-isolation run passed 1,051 tests; final main reconciliation and cleanup passed 831 tests across nine files, including 496 CLI tests. Focused mutable-catalog/privacy/handoff proof passed 103 tests. Fresh P1 autoreview of the complete final candidate is scoped-clean. The subsequent live-capture selection regression failed in all six families before the fix; all 126 focused tests pass afterward. Renderer proof head:530e248fe9ca699e9d1121e5c3c57893bceaff0b.Live recovery compatibility remains unqualified. The maintainer explicitly accepted landing this bounded reporting repair with the recovery qualification limits below retained for follow-up. Remote runtime/UI build and artifact checks passed for live-capture head
6458e0ac859b78e9dc98ab217a6b96ee7e851f41; both tarballs passed canonical integrity checks and no local dist was reused. The build steps and export succeeded; the held Testbox workflow ultimately finished cancelled, and the lease is completed.The earlier timeout shape is now reproduced on the final live artifact. In published
1391f7cd,package-update-integrity.ts:14caps the scan at 30 seconds.package-update-swap.ts:396assigns the baseline only after the scan; after timeout,:736calls recovery and:256treats the absent baseline as a changed retained tree. That secondary message does not prove changed bytes. The independent comparison does not cover every descendant timestamp, and the primary scan-timeout cause remains unresolved. No timeout cell was retried and no budget, assertion, or recovery policy was changed.Report repair replay: On final renderer
530e248fe9ca699e9d1121e5c3c57893bceaff0b, the source owners render the unchanged captured6458e0acresult/ledger into human, public ledger-only, and public enriched output. All three retain:Each selects three failed steps. Public bodies are 1,083/1,091 bytes and exclude the captured synthetic token/private paths. This is a renderer replay, not a new live update or successful rollback. The final main integration additionally passed 191 tests across seven files and the full changed-file gate. Main's new Doctor lint parser is now the sole parser owner, retaining warning/advisory semantics and bounded failure findings; its unmodified version failed the structured-Doctor regression before this integration.
Candidate SHA-256:
96e24d13f5b3666f6740978b7bc240d2ab38b4491b22e766235d97ae97fbfc3f. All owned containers and the Testbox lease are stopped.ClawSweeper review
Approved landing head:
266f505e72cf9c5d83d327df44a7f0381281d364. The latest main integration preserves snapshot-capacity fields, typed refusals, and canary plumbing alongsidefailureFacts. Conflicts in the canary and run schema were resolved by the authoring lane; identical healthy-Gateway test fixtures were consolidated to satisfy the existing line limit. The maintainer re-reviewed the complete merged branch with a fresh scoped-clean P1 autoreview. No separate production change was added outside the merge. The two authorized #144923 co-author trailers remain; the new merge commit adds none.ClawSweeper's completed review covers prior head
98d127190210229995580f54744ea2aa87a647e5and identifies no actionable code or security findings. The earlier P1 public-disclosure finding is fixed by the allowlisted privacy projection, and the P2 Doctor-cause finding is fixed in the shared lint parser. Existing end-to-end regressions cover both repairs; no additional fixups were needed during landing.The maintainer explicitly accepted the bounded diagnostic change for landing. The compatibility hold is dispositioned as accepted risk: the patch adds optional bounded diagnostics while preserving schema versions, retention, recovery policy, configuration, and protocol versions; the supplied exact-head P1 autoreview found no actionable defect in refusal, recovery, or IPC outcomes. The failed restoration and same-schema rollback qualification cells remain unproved and require separate updater-owner investigation. The previous generic "Add data-model compatibility proof" checklist item is deferred under this same explicit maintainer acceptance. This acceptance does not turn those failed cells into passing recovery evidence. No code fixups were made during resumed landing; the new merge commit has the fresh maintainer-approved full-branch review above.
Sibling reconciliation and credit
#144923 is superseded by this canonical implementation; its issue/PR lifecycle is left to the lead. Its target package, minimum Node engine, and running Node facts are absorbed at the runtime owner and its three callers, with terminal-to-triage-to-preview proof. The separate
errorDetailspipeline is unnecessary; #145390 is the canonical facts implementation. Thanks to @vincentkoc and @zhangguiping-xydt for the adopted runtime-preflight metadata code from #144923; both remain credited with Co-authored-by trailers.#144281 has since merged as
e5dd80a5def8dcdcc694e095c27491d4837fdf29. Its same-attempt ledger phase ordering is retained and extended with facts, exact run identity, measured exits, and direct-success precedence. Thanks to @jason-allen-oneal for the already-landed #144281.#145321 has merged as
21091a2aa9cfb154aa7287dc138b31422f80393e. Its settlement correction is orthogonal and retained.Size and remaining limits
git diff 347fce25598215278fb84d5c549f58b8628c36d7 --numstat:This remains an XL change. Avoidable growth was removed by sharing the Doctor parser and fact formatter, removing duplicate Gateway phase projection, building plugin results and command completion once, and sharing the refusal callback contract. The live-discovered selection repair adds one nine-line policy shared by both summaries and extends the existing six-family fixture. Remaining production growth covers six independent producers, the existing IPC/ledger/sentinel/protocol boundaries, and the public privacy projection; the added tests protect those boundaries and review-discovered leakage. This revision does not claim overall shrink versus the first PR revision.
Post-migration rollback from current main to 2026.9.3 is ineligible: the published driver has state/agent schemas 16/19 and main has 17/20. Compatibility proof must distinguish pre-Doctor package restoration from same-schema post-activation rollback. The earlier timeout and retained-tree-change diagnostic remain recorded; a passing published-version control alone does not exonerate that failure. Unknown third-party check/plugin identifiers intentionally remain local unless present in source-shipped public catalogs.
Prior-head CI:
530e248fe9ca699e9d1121e5c3c57893bceaff0bpassed CI run 34682207795, attempt 2. The exact-head watcher reportedrollup=green,github_rollup=SUCCESS,pending=0, thenGREEN. Attempt 1 had 134 passed, 43 skipped, and three jobs cancelled before acquiring a runner or executing steps. The lead reran failed jobs; attempt 2 acquired runners and completed successfully. No additional rerun or code fixup was needed.Reviewed-tree CI: head
06a8e475e0b8ce8610c8a18f9ca01318a05935ffpassed run 34684874759, attempt 1. The exact-head watcher reportedrollup=green,github_rollup=SUCCESS,pending=0, thenGREEN. No CI rerun or landing code fixup was needed.Earlier-head CI: run 34686114467 targeted
98d127190210229995580f54744ea2aa87a647e5. Attempt 1 failed the 20-second native-child readiness barrier inupdate-command-executor-native.test.ts:298(healthy-upgrade, 20,071 ms); the four sibling cases passed in 1.1–1.2 seconds and the shard passed 8,435 other tests. One authorized timing rerun was requested. That landing stopped on new main conflicts, now resolved in the approved integration above. No test assertions or timeouts were weakened.Current-head CI: approved head
266f505e72cf9c5d83d327df44a7f0381281d364passed run 34687654108, attempt 1. The exact-head watcher reportedrollup=green,github_rollup=SUCCESS,pending=0, thenGREEN. No rerun or watcher-budget extension was needed on this head.