Repository navigation
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 16, 2026, 7:48 AM ET / 11:48 UTC (Revision 5). ClawSweeper reviewWhat this changesDoctor keeps ready plugins’ configuration-repair callbacks available during update validation while preserving previously deferred migration work. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, focused repair with no actionable code findings. The retained published-updater evidence satisfies the previous review’s upgrade-proof concern. Priority: P2 Review scores
Verification
How this fits togetherDoctor validates and repairs configuration during updates and Gateway startup. Plugin metadata, installed payloads, and pending migration records determine which callbacks run and which obligations remain deferred. flowchart TD
A[Update or Gateway startup] --> B[Doctor preflight]
C[Plugin metadata and payloads] --> D[Availability inspection]
E[Retained migration obligations] --> D
B --> D
D -->|Ready configuration repair| F[Existing Doctor callbacks]
D -->|Unavailable or migration pending| G[Deferred work and repair guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +20, Tests +201, Docs +6. Total +227 across 8 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep callback eligibility in the existing availability owner, with package installation and retained migration completion governed by their existing owners. Do we have a high-confidence way to reproduce the issue? Yes: current main’s deferral condition excludes an available external configuration-only contract, and the existing custom-plugin-siblings updater scenario checks the missing callback. This review established the path from source without executing it. Is this the best way to solve the issue? Yes: the patch narrows the existing availability decision and carries retained obligations through its existing callers, avoiding a parallel loader or installation policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 809c4dfc1519. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Superseded by #150978's current Doctor policy, verified on Copied config plugins beneath the recognized rehearsal root are eligible for Doctor inspection; ordinary config paths remain deferred during installation deferral. Initial preparation already supplies retained IDs, and state/inspection obligations are learned monotonically and preserved through completion. The additional convergence forwarding in this PR served its broader All 17 selected existing preflight boundary cases passed, covering rehearsal availability, ordinary/stale deferral, retained obligations, and successful retry, without retries or deadline/assertion changes. Source inspection of the published 2026.9.4 driver ( This is current owner-boundary proof plus a shipped-driver source-contract check, not a new installed-updater run or fresh sibling-callback-event proof. Historical |
Prepare cold outbound channel metadata asynchronously through the existing state worker. Preserve the shared plugin cache and selection owner, captured workspace/state context, and currentness checks before loading or queue admission. Cancellation and preparation failures retain one queue-owned terminal audit and message hook. Keep synchronous bootstrap for callers outside this cut. Extract unchanged retry policy and the Matrix test adapter into internal siblings; preserve canonical catalog custody and complementary regression coverage. No new configuration, stored format, or migration. Validation: exact-head CI run 35343214882 passed; focused metadata/worker controls, relevant types, line-cap checks, and fresh P2 review passed. Historical updater proof remains bound to source 7dd / package f66; no new installed-update or live-provider proof is claimed. Related: #144592. Doctor #149381 was superseded by canonical #150978. Co-authored-by: Vincent Koc <[email protected]>
…#149304) Prepare cold outbound channel metadata asynchronously through the existing state worker. Preserve the shared plugin cache and selection owner, captured workspace/state context, and currentness checks before loading or queue admission. Cancellation and preparation failures retain one queue-owned terminal audit and message hook. Keep synchronous bootstrap for callers outside this cut. Extract unchanged retry policy and the Matrix test adapter into internal siblings; preserve canonical catalog custody and complementary regression coverage. No new configuration, stored format, or migration. Validation: exact-head CI run 35343214882 passed; focused metadata/worker controls, relevant types, line-cap checks, and fresh P2 review passed. Historical updater proof remains bound to source 7dd / package f66; no new installed-update or live-provider proof is claimed. Related: openclaw#144592. Doctor openclaw#149381 was superseded by canonical openclaw#150978. Co-authored-by: Vincent Koc <[email protected]>
Related: #147711, #146636
What Problem This Solves
Private update canaries could skip an available custom plugin's config-only Doctor contract while package installation was deferred. The installed updater already sets the supported deferral marker; candidate Doctor must still inspect ready contracts.
User Impact
Ready, activated config-only contracts remain visible during update validation. Missing or stale payloads, migration-bearing or unknown contracts, disabled plugins, and retained migration obligations keep their existing deferral rules. Downloads remain with the update finalization owner.
Why This Change Was Made
The existing availability owner already knows the selected artifact's availability and migration declaration. It now distinguishes a ready config-only contract from unavailable code. Preflight carries retained obligations through its second convergence inspection, so a ready artifact cannot erase earlier debt.
No new schema, configuration option, dependency, updater marker, or installation policy is introduced. The current-main refresh preserves bundled runtime-alias resolution from #149653 and schema repair before pending migration persistence from #149753.
Evidence
[email protected]custom-plugin-siblings scenario passed against exact composition7ddc85668baf3444b57270b04164be14bce70ba7, combining this Doctor repair ate31bdb77with metadata fix(outbound): prepare cold channel metadata asynchronously #149304 atea5af63c. Package SHA-256:f66f97d0711845c58bd4db6eb56e86005da3be4ebef210539624ea2ebce7c2da. All 13 phases and 12 updater steps passed; inspected canary records contain two Doctor-module, two Doctor-contract, and two runtime callbacks. Source/config preservation checks passed. This is isolated Linux ARM64 Docker proof with manual restart mode and no live provider; emitted hash fields are observations, not additional seeded-equality assertions.58b02b48and package19e968911f6009d0e078ec51608388a77e0f0a54ea8c1c1c1fd76feeb6ee03abremain separate historical proof. The0034cc96composition never reached remote package or updater execution.The retained package proofs keep their exact source identities; this refresh does not claim a newly executed package or a managed-service restart. Refresh
abef83efbc2686092a2413e7fabb2efd5758ab07preserves the production repair while adapting two existing fixtures to the new empty runtime-alias field. All 110 selected cases passed (57 final adapted-suite cases and 53 unchanged sibling cases); scoped types, lint, formatting, dead-export scans and guards passed, and fresh independent P2 review is clean. Lint reports one nonblocking line-count warning in the existing preflight owner (703 versus 700), with no suppression. Exact-head hosted CI is blocked by three contended-maintenance elapsed-time assertions in existing memory-core coverage. Their source boundary is under review; native preparation and merge are not complete.