Repository navigation
Conversation
This reverts commit 9bd8ffc.
justi
added a commit
that referenced
this pull request
May 14, 2026
This reverts commit 9bd8ffc — the sec 115 fix protected against a non-existing bypass. F10 empirical verification (PR #35, run 25831235040) demonstrated all 3 junction expect_blocked assertions PASS on stock GHA windows-latest WITHOUT the helper: PASS: Edit through NTFS junction (project/junk -> C:\Windows) PASS: tee through NTFS junction PASS: rm through NTFS junction Results: 15 passed, 0 failed (pre-fix, revert branch 77fa6d1) Root cause of the protection (already in code pre-9bd8ffc): `cd -P` in resolve_path (lib/paths.sh:63) is implemented by MSYS2 via Win32 SetCurrentDirectory, which traverses NTFS reparse points (junctions and symlinks) automatically. pwd -P then returns the physical target path, so an in-project junction pointing to C:\Windows resolves to /c/Windows before is_write_permitted runs. The dedicated symlink-chase loop in guard.sh:358-366 is irrelevant for junctions — RESOLVED is already outside-project by the time that loop executes. Issue #31's premise ("readlink returns nothing for junctions, so the symlink check is bypassed") was correct about readlink but missed that cd -P canonicalizes ancestors before the readlink loop runs. Keeping the 3 junction reproducer tests in test_windows_smoke.sh as regression-anchor for this cd -P behavior — they would catch a future MSYS2 / Windows runner change that breaks junction traversal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
Author
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.
Reverts sec 115 fix (9bd8ffc) to empirically demonstrate that the junction reproducer in 584045f/84fefd4 actually fails without the assert_no_unsafe_reparse helper. Per anti-facade skill v2.1.0 F10 requirement: smoking-gun must be empirically executed, not declared.
Expected: Windows smoke job FAILS on the 3 junction expect_blocked assertions.
This PR will be closed without merging once the failure is recorded.