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: needs maintainer review before merge. Reviewed October 1, 2026, 10:37 AM ET / 14:37 UTC. ClawSweeper reviewWhat this changesConsolidates Windows security tests and shared filesystem test fixtures, tables equivalent sync/async and mode cases, and removes a redundant Root-open smoke test. Merge readiness✅ Ready for maintainer review Keep open: the consolidation remains distinct from current main, preserves the inspected security assertions, and introduces no actionable correctness defect. The repository policy and MEMBER association also preclude automatic cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherfs-safe guards filesystem operations on untrusted paths. These tests exercise file admission, permissions, identity checks, and cleanup through its public APIs and Windows security bridge. flowchart TD
A[Test paths and files] --> B[Root and workspace APIs]
A --> C[Windows security bridge]
B --> D[Permission and identity checks]
C --> D
D --> E[Allowed operation or rejection]
E --> F[Content, handle, and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Retain the smaller shared test structure while preserving the platform gates, injected race scenarios, and security assertions. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing tests rather than reporting a runtime defect; no tests were executed during this read-only review. Is this the best way to solve the issue? Yes: sharing equivalent fixtures and table cases reduces duplication while retaining the inspected assertions and platform-specific scenarios. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fb5d9fe77b7b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Merge the Windows locality-failure suite into the portable Windows security suite with shared setup and read spies, run workspace read contracts per sync/async variant from one body, share fallback-write cleanup and the FIFO-swap interceptor, table Root-open mode options, and drop one subsumed smoke test. Tests only; net -175 lines.
Merge the Windows locality-failure suite into the portable Windows security suite with shared setup and read spies, run workspace read contracts per sync/async variant from one body, share fallback-write cleanup and the FIFO-swap interceptor, table Root-open mode options, and drop one subsumed smoke test. Tests only; net -175 lines.
What Problem This Solves
The portable Windows security suite and its locality-failure sibling shared identical native-off setup, read spies, and replacement helpers across two files; workspace read contracts were written separately for sync and async variants; fallback-write cleanup and the FIFO-swap open interceptor were duplicated per entry point; and one Root-open smoke test was covered by the retained disposal test.
User Impact
No user-visible change; tests only (
src/andnative/byte-identical).Why This Change Was Made
windows-security-locality-failure.test.tsmerges intowindows-security-portable.test.ts(Windows-gated), reusing the same setup,watchNextFileReads(), and onereplaceOnce()helper that keeps its exact-one-match assertion.Net -175 lines, one fewer file.
Evidence
Expanded counts: the 4 locality cases moved, sync/async contract variants separated into rows (19 → 23), and only the subsumed
fs-safe.test.tssmoke test removed (34 → 33); no reference to the deleted file remains.Focused run: 71 passed, 28 Windows-only skips (baseline 68 passed).
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