Repository navigation
Use platform-aware clone path containment - #147
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The containment fix is correct, focused, and adequately covered by regression tests.
0 open findings
What changed in this PR
Updates clone-path containment to respect host path semantics.
Changes:
- Adds platform-aware containment logic.
- Covers Windows drive, case, UNC, and junction behavior.
| File | Description |
|---|---|
git/clone.ts |
Introduces reusable platform-aware path containment. |
test/agent-clone.test.ts |
Adds Windows path-boundary and junction coverage. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
path.win32fixturesTracks issue 36.
Validation
npm test -- --run test/agent-clone.test.ts— 23 passednpm run typecheck— passedtest/review.test.ts, 1,899 passed; the timed-out test passed alone in 7.1 seconds, then the full affected suite passed cleanlya6928a4260ffd1472b18540be39896bd0a487798: passed in 18m02spath.win32, while alias resolution ran on macOS. This PR does not claim full Windows support or Windows filesystem isolation.Review record
396758fff9fb18133586284ad8ef25946b6469eb, heada6928a4260ffd1472b18540be39896bd0a487798: no findingsReview lessons
No review findings required a new operating rule. The platform-aware separator requirement and the prohibition on claiming Windows isolation from lexical-only evidence are already captured in issue 36.