Repository navigation
fix(pr): give materialized wrappers their dependency context - #150504
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. |
4a137f1 to
cc36bea
Compare
|
Codex review: blocked before merge. Reviewed September 17, 2026, 2:43 AM ET / 06:43 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR lets extracted maintainer-command wrappers complete and version-check their dependencies, preserves older-wrapper handoffs, and extends the shared import checker. Merge readiness⛔ Blocked before merge - 4 items remain This remains a useful fix absent from current main. The earlier duplicate-scanner concern is resolved, and no blocking code defect was found; the reported deadline failures remain an unresolved validation gap. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s PR tooling extracts verified main-branch wrapper code when a working checkout cannot supply it. That wrapper needs installed third-party packages before it can load helpers and supervise review or merge commands. flowchart TD
A[Working checkout command] --> B[Verify and extract main wrapper]
B --> C[Read extracted package manifest]
D[Canonical installed packages] --> E[Complete and validate package pins]
C --> E
E -->|Compatible| F[Load helpers and supervise command]
E -->|Missing or mismatched| G[Stop with recovery instructions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +229, Docs 0, Other +49. Total +278 across 6 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one anchor-owned dependency setup path with preserved package pins, explicit version-mismatch recovery, and validated historical handoffs. Do we have a high-confidence way to reproduce the issue? Yes, from source: an older parent supplies only four packages, while current main’s extracted child does not complete the larger dependency set required by provisioning. This review did not execute the failing path. Is this the best way to solve the issue? Yes. Child-owned completion addresses parents that cannot be updated, and the fallback preserves historical anchors while reusing the existing import checker. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b54d624830a6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
584a751 to
4d414d9
Compare
a12766e to
c711b35
Compare
Let the verified anchor child complete and validate its package pins when an older parent hands it an incomplete dependency context. Preserve pinned real package directories and bootstrap older anchors against their own manifest. Extend the extracted-source guard to cover pinned bare imports, package export subpaths, and copied workspace aliases. Keep the inventory repair with #150399. Refs: #149585, #133913, #150312, #150399.
c711b35 to
a1b7c4f
Compare
|
Merged via squash.
|
Protect deferred file-preview English fallback registration through a direct modal import. Assert that preview-only copy stays out of startup, becomes available when the modal loads, and preserves the selected German translation and shared Support files label. The canonical runtime owner already landed in #150420; the wrapper manifest-discovery and dependency-context fixes are on main through #150399 and #150504. This change adds only regression coverage: production/tooling 0 lines, tests +32/-0. No runtime or visible UI change. Validation: r3 Codex review scoped-clean; exact-head ClawSweeper review without findings; native CI watcher GREEN for run 35196349026 on 243bc15. The existing PR evidence records the successful changed checks and the separate, unchanged local wrapper timeout cases; the test-only hosted run does not claim to rerun those cases.
…w#150504) * fix(pr): give materialized wrappers their dependency context Let the verified anchor child complete and validate its package pins when an older parent hands it an incomplete dependency context. Preserve pinned real package directories and bootstrap older anchors against their own manifest. Extend the extracted-source guard to cover pinned bare imports, package export subpaths, and copied workspace aliases. Keep the inventory repair with openclaw#150399. Refs: openclaw#149585, openclaw#133913, openclaw#150312, openclaw#150399. * test(pr): resolve workspace aliases within the extracted root Bind the TypeScript resolution host to the selected closure root so alias lookups cannot fall back to the calling checkout during anchor validation. Refs: openclaw#150399, openclaw#150504.
…50465) Protect deferred file-preview English fallback registration through a direct modal import. Assert that preview-only copy stays out of startup, becomes available when the modal loads, and preserves the selected German translation and shared Support files label. The canonical runtime owner already landed in openclaw#150420; the wrapper manifest-discovery and dependency-context fixes are on main through openclaw#150399 and openclaw#150504. This change adds only regression coverage: production/tooling 0 lines, tests +32/-0. No runtime or visible UI change. Validation: r3 Codex review scoped-clean; exact-head ClawSweeper review without findings; native CI watcher GREEN for run 35196349026 on 243bc15. The existing PR evidence records the successful changed checks and the separate, unchanged local wrapper timeout cases; the test-only hosted run does not claim to rerun those cases.
What Problem This Solves
Fixes
scripts/prfailing when an older worktree materializes a newer trust-anchor wrapper with a larger dependency graph:User Impact
The verified anchor child completes its own selective dependency context before loaders, supervision, or operation locking. Missing or outdated canonical packages fail with instructions to restore the frozen installation. Materialization preserves existing real package-directory pins, installs nothing, and does not link the whole workspace dependency tree.
Why This Change Was Made
#149585 expanded runtime imports while leaving dependency setup in the launching parent. Older parents only pin their original four tooling packages. This change lets the anchored child complete and version-check its dependencies against the extracted manifest.
The #133913 handoff remains compatible in both directions: newer parents prepare older anchors using the extracted manifest, and pre-#149585 anchors without a manifest retain their original four-package contract.
#150399 is merged into main as
68663e6c648a958067343b5a68ea410c8c736bc0. Its final implementation owns the shared eager-import collector, plain-Node type-erasure checks, and rewritten worktree fixture checks. This PR keeps those owners and adds package export validation plus resolution of workspace aliases within the extracted root.The separate wrapper guard and regression files from the earlier stack were removed. All handoff regressions now live in the existing
eager-import-closure.test.ts; there are no new test files or inventory edits, and main's provisioning/setup tests remain unchanged.Related: #149585, #133913, #150312, #150399.
Evidence
57beb816a81323d59967890f8199446af46c4f36successfully materializesc711b353aed704ddbf5555c512de96e2f671d10f; the provisioning entrypoint reaches argument validation without module-resolution errors or operation locks. Temporary fixtures were removed.node scripts/check-changed.mjs,oxfmt --check,git diff --check, and the line-cap ratchet pass. Pre-commit and committed-branch reviews are clean at P1, with no accepted/actionable findings.No timeouts, assertions, shard baselines, or expected-failure settings were weakened.