Repository navigation
fix: restore initialization in fresh PR wrappers - #150453
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 16, 2026, 9:36 PM ET / September 17, 2026, 01:36 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds three existing modules to the PR tooling snapshot inventory so fresh review initialization can load plugin discovery and configuration validation. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair: current main still lacks the required snapshot entries. No introduced correctness or security defect was found, and the linked issue remains open. Priority: P2 Review scores
Verification
How this fits togetherThe PR tooling wrapper extracts trusted source files into an isolated snapshot before initializing review worktrees. Its inventory must include the modules imported by the worktree provisioner. flowchart TD
A[Review initialization request] --> B[Trusted source selection]
C[Wrapper file inventory] --> B
B --> D[Verified source snapshot]
D --> E[Load provisioner dependencies]
E --> F[Initialize review worktree]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. 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 the canonical snapshot inventory complete while preserving the existing extraction, dependency-pinning, and operation-lock owners. Do we have a high-confidence way to reproduce the issue? Yes, from source: extracting main's inventory omits modules required by the provisioner's imports, matching the supplied baseline failure trace. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Completing the existing producer inventory fixes the missing-import boundary without duplicating behavior, weakening trust checks, or changing application configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 388584f9d9f2. LabelsLabel 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)
|
|
Fixed: fresh PR wrapper snapshots load the modules needed for review initialization. |
Refresh onto main carrying #150453 to clear inherited cold-wrapper CI failures. Preserve the six-file lazy-preview and cold-worktree fixture patch unchanged; its qualified source, review, build, and screenshot evidence remains valid.
Consume the reviewed file-preview lazy-English extraction from openclaw#150424, the cold worktree input closure, and the Qwen initial-deadline fixture from openclaw#150026. Native manifest closure is now also present on main via openclaw#150453. Keep the original channel alias implementation and accepted built-runtime proof unchanged. Co-authored-by: Peter Steinberger <[email protected]>
* fix(plugin-runtime): restore channel turn alias * test(plugin-sdk): type channel turn alias override * fix(plugin-sdk): preserve legacy turn mock overrides * test(plugin-sdk): refresh channel turn alias gates * Align legacy channel compatibility paths for current-main repair Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence. * fix: preserve complete legacy channel runtime alias Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned. Closes #91122 Co-authored-by: Yzx <[email protected]> * fix(ci): integrate canonical channel alias prerequisites Consume the reviewed file-preview lazy-English extraction from #150424, the cold worktree input closure, and the Qwen initial-deadline fixture from #150026. Native manifest closure is now also present on main via #150453. Keep the original channel alias implementation and accepted built-runtime proof unchanged. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical UI startup repair Replace the temporary file-preview extraction with the current-main implementation from #150491 before merging main. Preserve the channel alias repair and existing contributor ancestry. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical Qwen fixture Use the current-main Qwen fixture from #150523 and #82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Yzx <[email protected]>
Restore the required plugin discovery and configuration validation modules in fresh PR wrapper snapshots so review initialization completes. Fixes openclaw#150449.
* fix(plugin-runtime): restore channel turn alias * test(plugin-sdk): type channel turn alias override * fix(plugin-sdk): preserve legacy turn mock overrides * test(plugin-sdk): refresh channel turn alias gates * Align legacy channel compatibility paths for current-main repair Preserve the original contributor ancestry while resolving stale paths before the current-source alias repair. Intermediate branch preparation; not acceptance evidence. * fix: preserve complete legacy channel runtime alias Restore the complete five-member alias, including exact runtime-bound dispatch and scoped context construction. Preserve lazy loading, generic signatures and canonical override precedence. Keep deprecated compatibility metadata and current documentation aligned. Closes openclaw#91122 Co-authored-by: Yzx <[email protected]> * fix(ci): integrate canonical channel alias prerequisites Consume the reviewed file-preview lazy-English extraction from openclaw#150424, the cold worktree input closure, and the Qwen initial-deadline fixture from openclaw#150026. Native manifest closure is now also present on main via openclaw#150453. Keep the original channel alias implementation and accepted built-runtime proof unchanged. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical UI startup repair Replace the temporary file-preview extraction with the current-main implementation from openclaw#150491 before merging main. Preserve the channel alias repair and existing contributor ancestry. Co-authored-by: Peter Steinberger <[email protected]> * fix(ci): consume landed canonical Qwen fixture Use the current-main Qwen fixture from openclaw#150523 and openclaw#82290 unchanged. Remove the final temporary prerequisite delta while preserving the eleven-file alias repair and original contributor history. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Yzx <[email protected]>
Fixes #150449.
What Problem This Solves
Fresh PR wrapper snapshots fail when
review-initreaches plugin discovery. The command exits on a missing runtime import, preventing normal worktree provisioning and causing the existing operation-lock and provisioning tests to fail.User Impact
Maintainers can use the existing PR initialization path with a complete wrapper snapshot. This is a tooling repair: it preserves the current wrapper trust checks, operation-lock behavior, dependency selection, and application runtime behavior.
Why This Change Was Made
The canonical wrapper inventory omits existing modules required by plugin discovery and plugin configuration validation. The missing discovery availability helper needs the runtime degraded-state module, and the validation rules need the plugin registry validator. Adding all three modules to the same inventory repairs the snapshot producer and the fixtures that deliberately consume it.
The change is limited to those three inventory entries. Existing tests already exercise the missing-module boundary, so the repair needs neither another source list nor additional tests.
Evidence
On baseline 387f698, the two selected
review-initcases inpr-operation-lock.test.tsandpr-worktree-provision.test.tsfailed withERR_MODULE_NOT_FOUNDfordiscovery-availability.js(2 failed, 157 skipped, 15.23 seconds). The extracted-anchor case also exposed the omitted registry validator.On final head 8d11eb2, all 29 affected cases and controls passed remotely on Linux with Node 24.19.0. This rerun covers all 27 failures from the complete four-file run plus two existing passing controls. It exercises cold provisioning, checkout hooks, main-checkpoint preservation, failure recovery, operation locks, and the actual extracted provisioner. The earlier full run's 305 unaffected passes and one platform skip were retained; no test or runtime implementation changed during the inventory correction.
The isolated command smoke reaches the real provisioner's normal argument validation. Source inspection confirms that the corrected inventory covers all 923 source files in its static import graph. Inventory integrity and diff hygiene passed, and the complete selected tooling gate passed remotely. The final correction changes only one further inventory entry, preserving that tooling evidence; the configured formatter does not process this plain-text file.
The final CI run passed the wrapper tests and other applicable jobs, with two underlying failures in its main-branch baseline: the Slack ingress/thread-resolution import cycle and the approval-callback unbound-method lint diagnostic. Both were reproduced on unmodified baseline f7fe156. The inventory is outside those checkers' source inputs. Main has since incorporated both fixes in a13ecd2: the ingress lifecycle type now lives in a leaf module, and the approval callback preserves its receiver. The failed run remains historical evidence; the proposed result includes those main-branch repairs.