Repository navigation
fix(root): confine documented guarantees in require mode - #752
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 28, 2026, 10:52 AM ET / 14:52 UTC (Revision 5). ClawSweeper reviewWhat this changesUpdates the README and Root guides with a required-mode operation matrix, default-mode limitations, and compatibility guidance for filesystem mutations. Merge readiness⛔ Blocked before merge - 4 items remain The three companion implementations are now merged, resolving the prior sequencing blocker. This PR still provides needed guidance, but one statement overstates when required-mode recursive removal fails on unsupported platforms. Priority: P2 Review scores
Verification
How this fits togetherRoot accepts caller-supplied paths and mutation options, then selects native or guarded JavaScript filesystem operations. These guides tell applications which operations can be confined and which errors to expect. flowchart LR
A[Caller path and mode] --> B[Root mutation]
B --> C{Required native mode?}
C -->|Yes| D[Native operation or error]
C -->|No| E[Guarded JavaScript operation]
D --> F[Filesystem result]
E --> F
F --> G[Documented guarantee]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The diff adds no execution or supply-chain path, but one fail-closed capability statement misdescribes when deletion can occur. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the coordinated capability matrix, with unsupported recursive removal scoped precisely to directory-tree traversal and the existing namespace limitations stated plainly. Do we have a high-confidence way to reproduce the issue? Yes for the documentation mismatch: current source gates unsupported recursive directory traversal on a directory target, while the new prose says recursive removal rejects without that qualification. This read-only review did not execute the operation. Is this the best way to solve the issue? Yes overall: documenting the merged native capabilities is the right approach. The unsupported-platform statement needs a narrow correction to match the leaf-removal 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 296203353cff. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
3842b73 to
25e3533
Compare
The blanket recommendation to use require for hostile concurrent mutation obscured which operations retained pathname mutations. README, security-model, and writing docs now describe the coordinated removal, creation, and overwrite-move paths with an operation/platform matrix and explicit compatibility notes.
The hardened paths apply only to require. Default auto retains its previous best-effort paths and does not confine these operations under hostile concurrency. The docs explain each operation's extra admission/identity cost, fail-closed recursive-removal gaps, ACL-preserving FileHandle handoff, and the limits of directory pinning versus atomic namespace authorization. Finite race campaigns do not establish every possible schedule.
This PR accompanies #744, #751, and #750 and should land with their implementation. Documentation examples, full checks, diff checks, and independent Codex documentation review passed. No CHANGELOG changes are included.
Current-head CI is green: 35 passing checks, seven skips. The coordinated implementations have completed final supported-operation campaigns and A/A-controlled method measurements. Linux proof; macOS/Windows proof.