Skip to content

fix: close alternate Windows path policy spellings - #216

Merged
mikhalchankasm merged 1 commit into
mainfrom
codex/tech-w11-path-separators-20261004
Oct 4, 2026
Merged

mikhalchankasm merged 1 commit into
mainfrom
codex/tech-w11-path-separators-20261004

Conversation

@mikhalchankasm

@mikhalchankasm mikhalchankasm commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Exact-replay path checks compared raw backslash-only prefixes, although Windows accepts forward/mixed separators. This allowed device and credential-bearing UNC spellings through validation. Compare a normalized separator spelling only for device/UNC checks; keep the reviewed path string and fingerprint input unchanged. Reject NT-namespace device prefixes and empty UNC authorities as well. Closes #212; child of #210.

The patch preserves ordinary drive/UNC paths, including @ in a filename, and does not access output destinations. Invalid drafts fail before planned writes/store creation. Existing stored files are revalidated by both Get and Resolve; old unsafe paths are now rejected there too. The scenario contract also corrects the already-supported schema versions (1 and 2).

Validation: 10 initial regression cases failed before implementation, then five review cases reproduced the NT/empty-authority gaps. All 71 focused scenario tests pass after correction (27 new cases), with zero skips/warnings. Tests verify path spelling round trips, distinct fingerprints for distinct spellings, no persistence on refusal, and revalidation of edited stored paths. Tool-less Claude review completed; Codex confirmed/corrected relevant findings. Release2024/2025/2026/2027 x64 L2 passed on final SHA fc037b4; Both CI runs 37191243341 / 37191210041 passed. Pre-existing malformed fixed-value type handling is tracked separately in #217. No Navisworks execution or L3 claim.

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.

TECH-W11.2 — Normalize separators for fixed-path policy checks

1 participant