Repository navigation
fix(pr): unify worktree source checks and suppress automatic repacks - #150399
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 17, 2026, 12:09 AM ET / 04:09 UTC (Revision 9). ClawSweeper reviewWhat this changesSuppresses automatic Git maintenance during supervised PR operations and shares dependency scanning between copied-source tests, including duplicate inventory checks. Merge readiness✅ Ready for maintainer review The PR remains useful: current main still permits incidental automatic maintenance. The earlier consolidation concern is resolved, and no blocking introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s PR tooling supervises maintainer commands and holds operation locks until their work completes. Its provisioning tests check that copied worktree sources contain the runtime dependencies those commands need. flowchart TD
A[Maintainer PR command] --> B[Operation supervisor]
B --> C[Inherited Git settings]
C --> D[Automatic maintenance suppressed]
B --> E[Explicit work completes before lock release]
F[Copied source entrypoints] --> G[Shared dependency scanner]
G --> H[Inventory and cold preparation checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +63, Docs 0, Other 0. Total +63 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep maintenance suppression in the existing supervisor and one shared scanner for copied-source coverage, while preserving explicit maintenance completion and caller configuration. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main permits automatic GC when Git’s thresholds are met, and the inspected fixture constructs that condition through the production supervisor. This review did not execute it. Is this the best way to solve the issue? Yes. Extending the existing inherited configuration preserves repository settings, and sharing the scanner removes competing dependency checks without changing production provisioning. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1adc86b88cf2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
a232192 to
4a137f1
Compare
4a137f1 to
cc36bea
Compare
cc36bea to
4a6bce7
Compare
4a6bce7 to
64a66f0
Compare
Retain the supervised maintenance fix from #150399 and consolidate the shared eager-import scanner, cold fixture, and duplicate-inventory guard from #150465. Keep inline type dependency proof tied to real Node execution. Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and be6baf02f277466c75e4faef543a42c698b82dc1.
64a66f0 to
584a751
Compare
584a751 to
4d414d9
Compare
|
Merged via squash.
|
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.
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.
* 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 #150399. Refs: #149585, #133913, #150312, #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: #150399, #150504.
Join the fixture owner before releasing its held handshake so loaded runners cannot fail on a 1,000 ms polling deadline. Cover failures before and after question registration and retain cleanup on test cancellation. Related: #150399
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.
…penclaw#150399) Retain the supervised maintenance fix from openclaw#150399 and consolidate the shared eager-import scanner, cold fixture, and duplicate-inventory guard from openclaw#150465. Keep inline type dependency proof tied to real Node execution. Source contributions: 3d1929b27385d8f86f09ce639395d67758c955b6 and be6baf02f277466c75e4faef543a42c698b82dc1.
…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.
Join the fixture owner before releasing its held handshake so loaded runners cannot fail on a 1,000 ms polling deadline. Cover failures before and after question registration and retain cleanup on test cancellation. Related: openclaw#150399
…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 supervised PR operations starting incidental Git repacks, and keeps copied worktree sources complete as helper imports change.
User Impact
Maintainer tooling avoids automatic repository maintenance during supervised operations. Explicit Git maintenance still runs and finishes before the operation releases its lock. Cold preparation copies the required original source files, and wrapper validation rejects duplicate inventory entries.
Why This Change Was Made
The existing supervisor appends
maintenance.auto=falseandgc.auto=0to its inherited process configuration. Both copied-source checks now use the shared eager-import scanner from #150465: the wrapper checks its extracted inventory, while cold preparation derives dependencies from its entrypoints. The superseded scanner and callers are removed. The missing source entries are already on main; this delta removes one duplicated inventory entry.This consolidates #150465's tooling changes here while leaving its separate file-preview UI change in that PR. All included source contributions are by Peter Steinberger.
Evidence
git diff --checkpass.