SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

Preserve literal local paths and classify directories before file suffixes

Open chrisknvidia opened this issue 2 weeks ago • 0 comments

A literal local pathname should select the existing file or directory with that exact name.

At main 3c2c5d7a1ee148d228398070b91d3beaf0d73b11, local input resolution strips surrounding whitespace before looking up the path. If both selected and selected exist, scanning the quoted trailing-space pathname selects selected. Adding a trailing separator selects the intended directory. Distinct benign files in the two directories make the selected content observable in the JSON report.

Existing directories ending in .md or .zip are also dispatched as files/archives before the directory check. The same directory works when its path ends with a separator.

Expected behavior

Preserve literal local path identity across CLI preflight, graph resolution and report provenance. Classify validated existing directories before extension-based file routing.

Acceptance

  • Cover trailing-space paths with and without a trimmed sibling, distinct sibling content, leading/Unicode whitespace, and directory names ending in .md/.zip.
  • Retain regular Markdown/file and real ZIP behavior, missing-input errors, URL handling, no-follow validation, resource limits and cleanup.
  • Check interactions with recursive scans, output/baseline protection and shared graph/MCP consumers.
  • Verify actual source and installed-wheel CLI behavior with report/source-identity checks; retain failing reproductions.

Source: InputHandler.resolve, resolve_input.

No implementation is included in this issue.

chrisknvidia avatar Nov 12 '26 09:11 chrisknvidia