Repository navigation
fix(update): guide inspection of unresolved captures - #161292
Conversation
Tell operators to preserve current state, inspect the retained manifest, and consult the manual recovery guide instead of repeating update status. Extend the existing status regression without changing classification or recovery behavior. Follow-up to #161044.
|
🦞👀 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 29, 2026, 2:10 PM ET / 18:10 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch changes update status guidance for one unresolved recovery capture to name its manifest, advise preserving current state, and link the manual recovery guide; it also extends an existing regression assertion. Merge readiness⛔ Blocked before merge - 1 item remains Current main still gives an unresolved capture a circular next action. This focused follow-up addresses that gap, and the prior migration-proof blocker does not apply because the patch changes guidance text, not stored data. No introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe update recovery inspector reads retained capture manifests and recorded update outcomes after an update. The CLI presents its classification and next action in JSON and terminal status. flowchart LR
A[Failed update] --> B[Retained capture]
B --> C[Recovery inspector]
C --> D{Capture classification}
D --> E[JSON status]
D --> F[Terminal status]
E --> G[Recovery guidance]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +6. Total +9 across 2 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. Technical reviewBest possible solution: Keep actionable recovery guidance in the existing inspector so JSON and terminal status agree, while leaving capture classification and restoration with their current owners. Do we have a high-confidence way to reproduce the issue? Yes, from source: one failed sealed capture reaches the current-main branch that returns the same status command as its next action. This read-only review did not execute the CLI. Is this the best way to solve the issue? Yes. Changing the shared inspector's guidance reaches both output formats without changing capture classification or restoration behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c3bcba68ef32. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Keep failure JSON, original cause, completed ledger and mutation guards while asserting the outer CLI exit after prepared triage. Verify downgrade refusal before capture or history admission, and the structured JSON result for an inferred invalid dev target. Preserve explicit argument refusal behavior. Scope the wizard capability-help response to its target argv so macOS capture ACL probes cannot consume the one-shot fixture response. Keep the original handoff and consent assertions. Repairs the three inherited failures in CI run 36601793360 for #161292, plus a causally reproduced macOS fixture failure. No production behavior changes. Original 18-file group: 372 passed, 2 platform skips; 163.863s wall (144.20s Vitest). Complete two-file owner proof at maxWorkers=1: 49 passed, no skips; 199.244s wall. Existing test execution: update-cli 106.548s, admission-ledger 25.949s. These existing integration fixtures exercise CLI, history, filesystem and process boundaries; the change adds no cases or process boots. The failed CI group took 113.11s. Scoped checks and fresh independent P2 review passed.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Keep failure JSON, original cause, completed ledger and mutation guards while asserting the outer CLI exit after prepared triage. Verify downgrade refusal before capture or history admission, and the structured JSON result for an inferred invalid dev target. Preserve explicit argument refusal behavior. Scope the wizard capability-help response to its target argv so macOS capture ACL probes cannot consume the one-shot fixture response. Keep the original handoff and consent assertions. Repairs the three inherited failures in CI run 36601793360 for openclaw#161292, plus a causally reproduced macOS fixture failure. No production behavior changes. Original 18-file group: 372 passed, 2 platform skips; 163.863s wall (144.20s Vitest). Complete two-file owner proof at maxWorkers=1: 49 passed, no skips; 199.244s wall. Existing test execution: update-cli 106.548s, admission-ledger 25.949s. These existing integration fixtures exercise CLI, history, filesystem and process boundaries; the change adds no cases or process boots. The failed CI group took 113.11s. Scoped checks and fresh independent P2 review passed.
Tell operators to preserve current state, inspect the retained manifest, and consult the manual recovery guide instead of repeating update status. Extend the existing status regression without changing classification or recovery behavior. Follow-up to openclaw#161044.
Follow-up to #161044 and its remaining status-guidance review finding.
What Problem This Solves
When a failed update leaves one unresolved original-state capture, the status command points users back to the same status command as their next action.
User Impact
Unresolved captures now identify the retained manifest, tell operators to preserve current state, and link to the existing manual recovery guide. Recovery remains manual through the existing recovery owners.
Why This Change Was Made
The existing status inspector now supplies useful inspection guidance to both JSON and text status. The change is limited to the unresolved message and next action; classification, capture, restoration, and authority behavior are unchanged.
Evidence
The existing regression first failed because the old guidance omitted the manifest path (52.424 s). The complete
node scripts/run-vitest.mjs src/cli/update-cli/status.recovery.test.ts --maxWorkers=1run then passed 29/29 cases in 47.483 s wall, with 0.292 s in test execution and no skipped cases. No test cases or status invocations were added.Core and CLI test types, scoped lint, formatting, line limits, assertion safety, and whitespace checks passed in 134.570 s, with unchanged source hashes. Independent scoped P2 review found no actionable issues; the maintainer inspected the owner, caller, documentation, and complete diff.
The regression asserts the shared guidance through JSON status; the unchanged text renderer prints the same result. This guidance-only follow-up reuses the installed capture evidence in the parent PR. No new installed execution is claimed.
CI run 36601793360 at the unchanged head ended cancelled: 14 successful, 22 cancelled, 24 skipped, and 2 failed jobs. The originating job failed three inherited CLI fixture expectations; the other failure was the downstream aggregate. All 15 relevant failure inputs match the tested main baseline. The same 18-file group membership reproduced those three failures on macOS, plus a platform-specific help-mock failure. Canonical main fix 74cbf1a updates only those fixtures. The repaired group passed 372 cases with 2 platform skips; both complete owner files passed 49/49, and the composed-source replay after the shared fixture changed also passed 49/49. This was a membership replay, not an exact Linux scheduling replay. Cancelled and skipped jobs remain unrun coverage; four cancelled rows have no recorded steps. The native operator-authorized pre-existing-failure path retains that distinction and independently enforces current security, review, and authority gates.
The exact-head ClawSweeper review found no introduced correctness or security defect. Its request for data-model compatibility proof is a path-classifier false positive: this diff changes only output guidance and an existing assertion. It changes no schema, manifest layout, persistence, migration, retention, or restoration contract.