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 27, 2026, 10:58 PM ET / September 28, 2026, 02:58 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch adds a destination check before buffered Windows Root writes use the JavaScript fallback, shares that check with pinned writes, and adds error guidance and regression tests. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 9 items remain Keep this held draft open. Current main still has the Windows create-only directory error discrepancy, but the submitted broader change breaks the documented legacy final-link behavior. The PR body reports three failures in the existing Windows policy suite on this head. Priority: P2 Review scores
Verification
How this fits togetherRoot confines caller-supplied file paths to a directory. Buffered write and create calls resolve a destination, check its state, then publish through a native or guarded JavaScript writer. flowchart LR
A[Caller path and data] --> B[Root write or create]
B --> C[Resolve inside root]
C --> D[Windows destination check]
D --> E{Destination admitted?}
E -->|Yes| F[Guarded publication]
E -->|No| G[Typed error]
F --> H[Updated file]
Decision needed
Why: Current documentation and regression tests establish that compatibility behavior; replacing it with unconditional rejection changes a public filesystem contract. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve legacy final-link reauthorization, narrow the repair to create-only directory classification, clarify the Windows native and fallback error contract, and record the user-visible change under Unreleased. Do we have a high-confidence way to reproduce the issue? Yes. Public Windows Root calls, the existing legacy-policy tests, and the reported before-and-after run give concrete paths for both the original discrepancy and this PR's regression; this read-only review did not execute them. Is this the best way to solve the issue? No. The blanket final-link check contradicts the existing legacy contract; a narrower create-only error repair preserves the guarded publication path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a386202bcbaf. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
Closing this candidate because blanket final-link rejection would break the documented Windows legacy contract for omitted |
Held draft — do not land. Exact-head Windows CI establishes a legacy compatibility contract that this candidate breaks. Keep this PR for the coordinator's decision; it is not a completed fix.
The differential repro is real: native-off buffered
Root.write()follows an unchanged contained final symlink, while the pinned/native path rejects it. However,docs/security-model.mdpromises that omittingmutationSymlinkspreserves existing mutation behavior, andtest/root-windows-legacy-policy-boundaries.test.tsexplicitly verifies both successful legacy final-link publication and reauthorization of its target before staging/publication. This candidate's new preflight rejects before those established checks. It therefore cannot ship as a blanket admission change.The same investigation also found that Windows native-off
create()on an existing directory reportsalready-exists, while the pinned path reportsnot-file. That error-classification difference can be addressed independently. The recommended follow-up is to narrow the implementation change to exclusive-create classification and clarify the legacy Windows exceptions in the native/error documentation, preserving the established final-link checks.Evidence at
c941ba10da306c612512bf39a4f2ecc507c6d3cb:cbx_b05521aceb1c, Node 24.21.0 / Bun 1.4.2, identical published 0.21.0 native binding: one-call repros and before/after snapshots; new regression suite 4 failures before, all passing after. Focused Windows suites: 118 passed, 2 skips. Those focused suites did not include the legacy policy-boundary suite.pnpm check: 16,550 passed; package/docs checks passed.git diff --checkpassed, but do not override the later compatibility failures.denied-path, and unchanged final-link publication must succeed. The candidate instead returnspath-alias.No changelog edit and no merge. Stopped at the compatibility gate under the bug-hunt escape-hatch instruction; do not remove or weaken the failing boundary assertions to make this candidate pass.