Skip to content

[verify only — DO NOT MERGE] F10 empirical pre-fix demonstration for #31 - #35

Closed
justi wants to merge 1 commit into
mainfrom
verify-31-prefix
Closed

justi wants to merge 1 commit into
mainfrom
verify-31-prefix

Conversation

@justi

@justi justi commented May 13, 2026

Copy link
Copy Markdown
Owner

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.

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>
@justi

justi commented May 14, 2026

Copy link
Copy Markdown
Owner Author

Closing without merge — purpose was F10 empirical verification only. Result: pre-fix CI passed, proving sec 115 was defending a non-existing bypass. Outcome documented in issue #31 close comment. Main branch reverted in 8c2cecc.

@justi justi closed this May 14, 2026
@justi
justi deleted the verify-31-prefix branch May 14, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant