loopx icon indicating copy to clipboard operation
loopx copied to clipboard

[Bug]: the boundary scan blocks POSIX private paths but not the native Windows spelling

Open JasonBuildAI opened this issue 1 month ago • 0 comments

Preflight

  • [x] I searched existing issues and discussions for this behavior.
  • [x] This report is not an unpatched security vulnerability.
  • [x] The report and attachments contain no credentials or private/internal material.

Issue origin

Observed or reproduced in a real environment

LoopX version or commit

5c62c5c03 (latest main at report time), Local 1.3.1

Host or runtime surface

Not host-specific (reproduced on Windows 11; the missing spelling is Windows-native)

LoopX area

Control plane (goals, todos, quota, scheduler, registry, runtime)

Problem

loopx check --scan-path <file> is the public/private boundary scan that CONTRIBUTING.md, docs/development/testing-and-quality.md and the contributor workflow tell everyone to run before publishing docs, fixtures, examples, or PR evidence. It is also the scan loopx canary premerge --from-git-diff runs over changed files.

Its local_private_path rule only recognizes the POSIX spelling of the private roots it names. A Windows host spells the same private path with backslashes, and that spelling passes the scan clean, so a Windows contributor can publish a local machine path that CONTRIBUTING.md forbids ("do not publish private benchmark traces, verifier output, raw agent sessions, credentials, internal document links, or local machine paths") with the gate reporting no hit.

Minimal reproduction

Synthetic fixtures only; alice is a placeholder, not a real machine path.

  1. Create two files:
    • win.md containing See C:\Users\alice\Documents\notes.md for details.
    • posix.md containing See /Users/alice/Documents/notes.md for details.
  2. Run loopx check --scan-path win.md --scan-path posix.md

Expected behavior

Both spellings of the same private root are reported as local_private_path, the way /Users/alice/Documents/... already is.

Actual behavior

Only the POSIX file is reported. win.md produces no hit, so loopx check exits as if the boundary were clean for that file.

The forward-slash Windows spelling C:/Users/alice/Documents/notes.md is reported, so the gap is specifically the backslash form that Explorer, cd in cmd/PowerShell, and pasted paths produce by default.

Sanitized diagnostics

$ loopx check --scan-path win.md --scan-path posix.md
- summary: errors=1, warnings=0, checks=4
## Errors
- posix.md:1: local_private_path

Additional context

  • Rule: loopx/contract.py, LEAK_RULES["local_private_path"] (prefilter literals plus the compiled pattern).
  • The same private roots are covered in loopx/public_safe_text.py: find_public_safe_local_path already treats drive-letter, UNC and backslash paths as local paths (Refs #5136 direction 3), so a POSIX-only spelling in the boundary scan is an inconsistency rather than an intentional limit.

JasonBuildAI avatar Oct 10 '26 18:10 JasonBuildAI