Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 12:15 PM ET / 16:15 UTC. ClawSweeper reviewWhat this changesThe branch completes the trusted temporary PR-wrapper helper closure, links it to the canonical checkout’s installed dependencies, and launches selected TypeScript helpers without caller-controlled loader aliases. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessThe patch is a coherent repair for an open trusted-wrapper failure and introduces no concrete correctness finding. It must remain open because it is stacked on #134038 and its exact-head CI is still incomplete. Priority: P2 Review scores
Verification
How this fits together
flowchart LR
A[PR worktree command] --> B[Trusted wrapper selection]
B --> C[Materialized helper closure]
C --> D[Canonical dependency link]
D --> E[CI and review helpers]
E --> F[Gate and artifact results]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +137, Other +20. Total +157 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retarget the repair onto main after its prerequisite lands, retain the manifest-derived fixture coverage, and land only after the exact head completes the platform and gate checks. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the prior anchor manifest omitted helpers now required by the materialized command paths, and the added real-Git fixtures model the parked-canonical path and caller alias interference. Is this the best way to solve the issue? Yes: keeping the verified closure in the wrapper’s authoritative component list and deriving fixtures from that list avoids a second drifting manifest while preserving the existing launcher lifecycle behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9cc05cca83e2. 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 (1 earlier review cycle)
|
8cc1e0f to
d088cbd
Compare
0639860 to
a603b3f
Compare
767c47e to
acbf9f0
Compare
|
Superseded by #134366, authored by @steipete and landed as 0959561. The landed PR carries the trusted helper closure repair, physical wrapper-path fix, real extracted-wrapper regression coverage, and the contributor credit. This older branch remains stacked, conflicting, and duplicates the shipped main fix, so I am closing it rather than copying or relanding the work. |
|
Implemented through #134038, merged as 4ee565c6d2a, including the complete trusted PR helper dependency closure. The integration preserves the connected main changes and removes the superseded duplicate paths. Exact-head CI33434384581 completed successfully with all applicable Testboxes green. Both Windows jobs, all 16 UI jobs and the macOS Node job passed. The integration PR records the focused source-owner and regression proof, including the Windows readiness repair and trusted-wrapper merge checks. This source PR is superseded by that verified landing. |
Related: #134038
What Problem This Solves
Maintainer review and prepare commands can fail with missing modules when both the PR worktree and canonical checkout differ from the trusted main wrapper. The temporary trusted copy omits dependencies needed by artifact initialization, hosted verification and changelog checks. Loading the missing packages alone also leaves TypeScript aliases able to redirect helper imports into the caller checkout.
Why This Change Was Made
The existing materialization owner now includes the complete tracked helper closure and connects its fresh temporary directory to the canonical checkout’s installed toolchain. Three Node-resolvable CLI entrypoints use native erasable TypeScript through the existing supervised child launcher. The verifier imports the same verified normalization leaf directly; other TypeScript-loader consumers retain their current loader.
Trust-anchor selection, blob verification, command classification, operation locks, exact-head checks and merge authorization retain their existing owners. The shared child launcher preserves cwd, argv identity, signal forwarding, close joins and exit propagation. Missing toolchains produce an actionable package-load failure without installing dependencies.
Real-wrapper fixtures now copy the canonical component declaration from
scripts/prinstead of maintaining two incomplete lists. Their private Git templates also track the verified normalization package. Deliberately stubbed integrity fixtures remain independent; production trust checks are unchanged.User Impact
Native review, prepare and merge tooling can run from the verified main wrapper while the canonical checkout is parked on another branch. This PR is stacked on #134038 for CI and will target main after that prerequisite lands. No product configuration, dependency, permission, authentication or merge-bypass setting is added.
Evidence
Real Git fixtures reproduce the missing helper failures before repair. Separate benign alias probes demonstrate the caller normalization and third-party package paths being executed by the old loader; both final regression cases pass with native entrypoints. Parent integration passes all 359 tests across the seven wrapper, artifact, verifier, watcher, launcher, attribution and local-runtime owner suites.
Independent materialization proof passes all six cases on Node 22.22.3 and 24.19.0. The real CLI matrix also passes 88 cases on each runtime, covering argv identity, cwd, errors, absent dependencies and caller aliases with no GitHub call. The complete changed-file gate passes, including scripts and root-test typechecks and canonical scripts lint. Scoped Codex review reports no actionable finding at the configured blocking threshold. Exact-head CI is required before landing.
The previous exact-head CI failed four linked-wrapper cleanup cases because the fixture's private main omitted six required components. That failure reproduces on the old fixture. The shared copier removes the duplication, and parent integration passes all 139 wrapper/operation-lock cases with one existing Linux-only skip on macOS. Full root-test types, script lint, changed-file checks and a fresh Codex review pass. The original commit is byte-identical after restacking onto the parent's Gateway validation fixes. Fresh exact-head CI remains required.
Production tooling is net +20 lines: the verified dependency closure and installed-toolchain link supply missing ownership, while the common native launcher adds three net lines. Tests/support are net +137 after deleting the duplicate component lists. No test-only production seam is introduced.