Skip to content

fix(update): keep repair turns under updater ownership - #147645

Closed
RomneyDa wants to merge 1 commit into
refactor/update-local-repair-driverfrom
fix/update-parent-repair
Closed

RomneyDa wants to merge 1 commit into
refactor/update-local-repair-driverfrom
fix/update-parent-repair

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Repair workers could outlive the updater without reserving either installation, and a revoked executor could still run a repair tool. Keep the repair loop and validation in the updater; delegate each inference turn through the existing executor owner and resume only after its process settles. Unsupported workers stop before receiving work.

This final integration follows #147584 and #147608. Its 721 changed lines comprise 207 production, 505 tests/support, and 9 docs. The actual parent-death and final-tool regressions stay with the custody change; existing environment, cancellation, migration, and service fixtures exercise the same owner.

Validation:

  • Red/green: updater death keeps both installations busy until its child exits; live executor revocation blocks an actual final tool effect while the run ledger remains running; a timed-out child drains before validation and retains its completed attempt.
  • 32 focused repair tests, 22 service/oracle tests, 4 isolated managed-helper cases, and 15 built worker/isolation cases passed.
  • Full build, changed checks, and fresh P2 review passed.

The final-tool baseline used the old controller with the updated worker’s retained legacy input. Existing Windows process-job behavior is unchanged; native Windows parent-death/effect proof was not run locally.

@clawsweeper

clawsweeper Bot commented Sep 14, 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 size: L maintainer Maintainer-authored PR labels Sep 14, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review September 14, 2026 01:10
@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. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 23, 2026, 9:55 PM ET / September 24, 2026, 01:55 UTC (Revision 2).

ClawSweeper review

What this changes

The branch keeps automatic repair validation in the updater, delegates each inference turn to a child held by the update executor, and documents the handoff when a target runtime cannot accept delegation.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open for maintainer judgment. OpenClaw v2026.9.6 shipped a different repair flow that retired the in-update worker this protected PR hardens, so its landing direction needs an explicit decision.

Priority: P2
Reviewed head: 0f3573e6ef92e22c376b5d31f4feafaa37918c28
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The branch has focused process coverage, but its upgrade behavior and fit with the shipped repair flow remain unresolved.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored PR is exempt from the external contributor proof gate. Its submitted process scenarios exercise updater death and revocation before a final tool effect; no unresolved authority violation is established, and no stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the external contributor proof gate. Its submitted process scenarios exercise updater death and revocation before a final tool effect; no unresolved authority violation is established, and no stored-data contract changes.
Evidence reviewed 7 items Introduced repair ownership: The introduced change requires a live executor fence and runs each repair turn through the executor's child owner.
Unsupported runtime behavior: The proposed worker rejects a target runtime that lacks the delegated-turn handshake and directs the operator to triage.
Authority scenarios: The submitted process tests cover custody after updater death and executor revocation before a final repair tool effect; the PR body reports red/green runs of those scenarios.
Findings None None.
Security None None.

How this fits together

The update CLI checks a staged installation and records failures while executor custody controls processes that can change it. In the current release, inference repair runs through triage after the failed update settles.

flowchart LR
A[Update command] --> B[Staged installation]
B --> C[Updater checks]
C --> D{Check fails}
D -->|PR branch| E[Delegated repair turn]
E --> F[Executor custody and tool effect]
D -->|Current release| G[Post failure triage]
Loading

Decision needed

Question Recommendation
Should this stacked in-update repair design be retired after the shipped post-failure triage change, or deliberately rebuilt for current main? Retire this stack: Keep the shipped triage flow and close the protected stacked PRs after an owner confirms that direction.

Why: The release changed when inference repair is allowed, and this review cannot authorize restoring the retired flow.

Before merge

  • Resolve merge risk (P1) - On the pinned stack, older target runtimes lose automatic in-update repair and receive a triage handoff; the prior review's published-driver-to-candidate upgrade proof remains absent.
  • Resolve merge risk (P1) - The branch targets a pre-refactor stack. Adapting it to current main would require deciding whether to restore in-update inference, which v2026.9.6 intentionally retired.
  • Complete next step (P2) - An update owner should decide whether to retire this stacked branch or sponsor a current-main redesign; if retained, qualify the published-updater compatibility path.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -37, Tests +307, Docs +7. Total +277 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 4 85 122 -37
Tests 8 406 99 +307
Docs 1 8 1 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 499 222 +277

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/cli/update-cli/update-command-repair.ts, migration/backfill/repair: src/infra/update-repair-agent.ts, migration/backfill/repair: src/infra/update-repair-worker.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Retire the stacked path (recommended)
    Keep the released post-failure flow and close this branch if the owner confirms it supersedes in-update repair.
  2. Qualify a revised path
    If in-update repair is still required, rebuild against current main and prove the published-driver and unsupported-runtime upgrade cases.

Technical review

Best possible solution:

Keep the shipped post-failure triage flow as the repair owner; port a custody safeguard only if that surviving flow demonstrates the same defect.

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

No current-main reproduction path remains for the original in-update worker: v2026.9.6 defers that inference work until after failure. The pinned branch and its submitted process tests describe the earlier custody failure.

Is this the best way to solve the issue?

No for the current release. Hardening the retired worker is only appropriate if maintainers first decide to restore in-update inference; the supported repair path now runs through post-failure triage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against c83239c5d95d.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded update-recovery improvement whose current landing direction needs review.
  • merge-risk: 🚨 compatibility: The proposed handshake makes automatic repair unavailable on older target runtimes, and the release now uses a different repair flow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR is exempt from the external contributor proof gate. Its submitted process scenarios exercise updater death and revocation before a final tool effect; no unresolved authority violation is established, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Lehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • If the owner retains in-update repair, adapt the stack to current main and demonstrate a published-updater-to-candidate upgrade with the older-runtime handoff.

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-14T01:18:18.960Z sha 0f3573e :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 24, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Closing as obsolete after rechecking exact head 0f3573e. OpenClaw v2026.9.6 shipped a different post-failure triage flow and retired the in-update worker this stacked PR hardens. Landing it now would restore obsolete updater architecture; any remaining need should be rebuilt against the current repair owner instead.

@RomneyDa RomneyDa closed this Sep 30, 2026
@RomneyDa
RomneyDa deleted the fix/update-parent-repair branch October 22, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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