Skip to content

fix(update): guide inspection of unresolved captures - #161292

Merged
steipete merged 1 commit into
mainfrom
codex/update-capture-next-action
Sep 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/update-capture-next-action

Conversation

@steipete

@steipete steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

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=1 run 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.

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.
@steipete steipete self-assigned this Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 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: XS labels Sep 29, 2026
@steipete
steipete marked this pull request as ready for review September 29, 2026 17:00
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 2:10 PM ET / 18:10 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 2223a35b32dc871c5dccc6584e99c565f130be18

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level change and regression assertion support the guidance fix, with no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored guidance change is covered by a reported filesystem-backed CLI status test, and the unchanged terminal renderer consumes the same inspector output; no installed after-fix status run is claimed. The patch changes no stored-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored guidance change is covered by a reported filesystem-backed CLI status test, and the unchanged terminal renderer consumes the same inspector output; no installed after-fix status run is claimed. The patch changes no stored-data contract.
Evidence reviewed 7 items Introduced guidance: The introduced hunk changes only the unresolved capture's next action and message; other classifications retain their prior action.
Current-main gap: Current main still sets an unresolved capture's next action to the same status command that produced the row.
CLI output path: Update status passes the inspector's recovery guidance into JSON and prints the same message and next action in terminal output.
Findings None None.
Security None None.

How this fits together

The 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
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +3, Tests +6. Total +9 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 2 +3
Tests 1 12 6 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 17 8 +9

Review metrics

Metric Value Why it matters
Focused regression cost 29 existing cases; 47.483 s wall reported The changed assertion adds no test case or status invocation to the existing suite.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/infra/update-recovery-backup-status.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #161292
Summary: The merged capture PR explicitly left this narrow status-guidance issue for the present follow-up.

Members:

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

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Circular guidance hinders inspection after a failed update, but the affected state is a bounded unresolved-capture case.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored guidance change is covered by a reported filesystem-backed CLI status test, and the unchanged terminal renderer consumes the same inspector output; no installed after-fix status run is claimed. The patch changes no stored-data contract.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: 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 (1 earlier review cycle)
  • reviewed 2026-09-29T17:08:08.040Z sha 2223a35 :: blocked before merge. :: none

steipete added a commit that referenced this pull request Sep 29, 2026
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.
@steipete
steipete merged commit f70c61d into main Sep 29, 2026
173 of 198 checks passed
@steipete
steipete deleted the codex/update-capture-next-action branch September 29, 2026 18:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
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.
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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant