Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 10:11 AM ET / 14:11 UTC. ClawSweeper reviewWhat this changesThe PR consolidates Root filesystem tests and shares fixtures for move adapters, selected-target admission checks, and writable-file identity collisions. Merge readiness✅ Ready for maintainer review Keep open: this useful consolidation is absent from pinned main, and the reviewed changes preserve the existing safety scenarios without introducing a concrete defect. Priority: P3 Review scores
Verification
How this fits togetherRoot provides filesystem operations confined to a chosen directory. These tests feed it temporary filesystem trees, policies, and injected races, then check returned errors, filesystem contents, and resource cleanup. flowchart TD
A[Temporary filesystem trees] --> C[Shared test fixtures]
B[Policies and injected races] --> C
C --> D[Root filesystem operations]
D --> E[Admission and identity checks]
E --> F[Filesystem results and errors]
F --> G[Safety and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the shared fixtures while preserving explicit race triggers, platform cases, denial ordering, and cleanup assertions in each owning suite. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reorganizes existing tests and reports no user-facing bug; tests were not executed during the read-only review. Is this the best way to solve the issue? Yes: sharing duplicated setup and consolidating related scenarios is a bounded approach, with the reviewed assertions and platform distinctions preserved. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b01e327e938e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Merge five split Root test siblings back into their owners once their fixtures are shared, add shared no-replace adapter and selected-target admission helpers, and table writable-open collisions. 168 expanded tests before and after; tests only, net -267 lines and five fewer files.
Merge five split Root test siblings back into their owners once their fixtures are shared, add shared no-replace adapter and selected-target admission helpers, and table writable-open collisions. 168 expanded tests before and after; tests only, net -267 lines and five fewer files.
What Problem This Solves
Several Root suites had been split into siblings to stay under the 500-line test-file limit instead of sharing their setup: complete-parent admission and its error cases, four walk option/filter files, and move source-authority and policy-snapshot files. The no-replace move adapter, selected-target admission machinery, and writable-open collision setup were also repeated across suites.
User Impact
No user-visible change; tests only (
src/andnative/byte-identical).Why This Change Was Made
root-shared-js-complete-parent,root-walk-options,root-move-source-authority) once their duplicated fixtures are shared; every merged file stays under 500 lines.test/helpers/no-replace-adapter.tsandtest/helpers/selected-target-admission.tshold the shared move adapter and portable/Windows selected-target machinery; writable-open collision bodies run from a table.Net -267 lines, five fewer files.
Evidence
Expanded test counts: 168 before and after across all twelve affected files; no reference to the removed filenames remains.
Focused run: 247 passed, 16 Windows-only skips.
tsc,lint:file-size,lint:fs-boundary: pass. Codex autoreview (P0-P2): clean.Tests added or updated when behavior changed
Security and compatibility impact considered
CHANGELOG.mdupdated when release-relevantNo credentials, private paths, private hosts, or sensitive contents included