Repository navigation
fix(update): report configuration failures during repair - #144819
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: needs maintainer review before merge. Reviewed September 14, 2026, 11:08 PM ET / September 15, 2026, 03:08 UTC (Revision 17). ClawSweeper reviewWhat this changesUpdate repair reports configuration and database failures through its existing error handler and adds a regression test for an unsupported database schema. Merge readiness✅ Ready for maintainer review The fix remains necessary: current main and v2026.9.4 still replace configuration failures with misleading model guidance. No actionable correctness or security findings remain in the narrowed patch; the latest qualification addresses the relevant diagnostic behavior. Priority: P2 Review scores
Verification
How this fits togetherUpdate repair loads the target installation’s configuration before selecting an inference route. Its repair loop reports failures to update orchestration and manual triage, while callers retain validation and activation decisions. flowchart TD
A[Update or manual triage] --> B[Load target configuration]
B -->|Configuration error| C[Redact and bound error]
B -->|Loaded| D[Select inference route]
D -->|Unavailable| E[Model setup guidance]
D -->|Available| F[Repair and validate]
C --> G[Report unsuccessful repair]
E --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -8, Tests +22. Total +14 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep inference classification with its existing selector and let configuration failures reach the repair loop’s bounded, redacted diagnostic handler. Do we have a high-confidence way to reproduce the issue? Yes. Current main’s blanket catch deterministically replaces a configuration exception with model guidance, and the supplied qualification reports a failing real-config baseline and corrected result; this review verified source without executing it. Is this the best way to solve the issue? Yes. Removing the redundant catch preserves the existing model-failure classifier, error redaction, environment cleanup, and unsuccessful-repair behavior without adding another owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dfaec136991a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
|
Maintainer review at head 7d31253 (source review plus hosted CI; nothing executed locally). Running the staged repair in the updated runtime is the right selection, but moving it into its own process has to carry the existing executor's child custody as well as the live run/requester checks. The new launch in |
7d31253 to
bbd5074
Compare
|
Addressed the executor-custody feedback. Each inference turn now uses The original failure was reproduced by killing the updater while its repair child remained alive. A separate built regression reproduced an actual tool effect after executor revocation while the ledger remained running. Both are fixed. Final proof passed 33 focused tests, all four managed-service repair cases, and 13 built isolation E2Es, including requester cancellation and immediate refusal of malformed delegated turns. Full build/changed checks and final runtime rebuild/types/lint passed; fresh review completed with its sole claim disproved by the explicit exit handler and built exit-1 tests. Rebased onto main and removed overlapping staged-runtime implementation already present there. The PR now describes the remaining custody repair and preserves released updater compatibility at the worker receiver. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
The completed exact-head re-review confirms the custody feedback is addressed and reports no remaining code or security findings. The published-updater proof is now available: Docker job installed The older-target behavior is intentional in both repair phases. An older worker cannot recheck the live executor before a tool effect or yield custody for parent validation, so this updater stops that automatic repair attempt with triage guidance, including after activation or partial rollback. This implements the requested executor guarantee without weakening it. Successful updates and the existing rollback decision are unchanged; the released v2026.9.4 complete-loop receiver remains supported for older updaters installing this version. No SQLite schema or persistent-store semantics changed. Native Windows descendant-cleanup proof remains unrun: general Windows CI passed but skipped the four real repair-effect cases and did not select the worker E2Es. The PR body records that limit rather than treating those general checks as repair-specific evidence. |
8814ffa to
2e4f357
Compare
2e4f357 to
dadda1b
Compare
dadda1b to
4fcaeae
Compare
4fcaeae to
d86aeec
Compare
|
Maintainer qualification at integrated head
Focused command: node scripts/run-vitest.mjs src/infra/update-repair-agent.runtime.test.ts src/infra/update-repair-agent.test.ts src/infra/update-repair-inference.test.ts --maxWorkers=1The old-head refresh exposed a 60-second timeout in the unrelated all-glyph browser test. Main already fixes that through PR147613, so I integrated main with an expected-head update instead of changing UI code or timeouts here. Current exact-head CI passed, including the required aggregate gate: https://github.com/openclaw/openclaw/actions/runs/34923431011. Attempt 1 passed every selected test shard but hit a pnpm native-parser cache ENOENT during the dependency scan. One failed-job-only rerun passed the dependency scan and aggregate gate; the 121 healthy jobs were preserved. Separate delegated-worker changes and their published-driver/Windows proof remain outside this two-file diagnostic fix. The original independent review remains applicable to the identical patch; the integrated runtime passed the same configuration, model, cancellation, and environment controls. |
|
Merged via squash.
|
* commit 'd8e50a38fd1c4df6dd69bcbc155697c464e1be45': (23 commits) fix(cron): release queued reservations when activation fails (#141008) fix(gateway): reduce CPU work in session lists and searches (#148713) feat(gateway): add admin CPU profile diagnostics (#148004) fix(gateway): cap device-required probe cache to prevent unbounded growth (#147708) fix(ci): align Gateway E2E expectations (#148653) refactor(ai): remove unused overflow wrapper (#148719) feat: stage selected chat text as editable comments (#148649) fix(ci): admit reachable release refs with large histories (#148161) fix(agents): allow authorized email CLI actions (#148521) improve(agents): trim large tool results with less CPU (#148718) refactor(docker): share image version parsing (#148243) fix(ci): retain passing hosted checks after skipped duplicates (#148722) fix(update): report configuration failures during repair (#144819) refactor(imessage): share handle classification (#148229) fix(ui): keep the selected agent across Settings pages (#148667) test(telegram): reuse deferred fixture helper (#148501) fix(media): resize images before understanding (#122431) fix: preserve unfinished work during completed PR cleanup (#148704) refactor(migrate-hermes): reuse canonical config record coercion (#148645) perf(channels): reduce history worker metadata footprint (#148711) ...
Small follow-ups: #147547 separates repair turns; #147584 adds the delegated worker receiver; #147608 isolates local route setup; #147645 keeps delegated repair turns under updater ownership.
What Problem This Solves
Update repair incorrectly tells users to check model setup when loading the copied configuration fails.
User Impact
Repair reports the actual configuration or database error. Genuine model-selection failures keep their existing guidance.
Why This Change Was Made
The blanket catch arrived with the original repair loop in #138673, which introduced structured repair outcomes; no catch-specific rationale was recorded. The inner inference selector still handles model/auth failures. Config errors now reach the existing outer handler, which redacts and bounds the reason and returns
aborted. Bothabortedandunavailableprevent activation; cancellation and environment cleanup remain intact. Manual triage still fails, but shows the config error instead of suggesting onboarding. The migrated-runtime fix is already on main via #145044.Evidence
The future-schema regression fails on main and passes with this fix. All 27 focused runtime, repair-loop, and inference tests passed again during the catch-provenance audit on
d86aeec3c572; independent P0–P2 review is clean. Changed checks pass. The updater patch is unchanged after rebasing onto main, which now includes the independently merged Reef clock-fixture fix #147551; exact-head CI passes.