Is the argument *shaped* like a filesystem path (rather than an intent ID)? True when it ends in `.md` or contains a path separator. We decide path-vs-ID on shape, not existence, so a mistyped `./plan.md` is reported as a missing file (FileNotFound) instead of misleadingly falling through to "invalid ID". Intent IDs are `PREFIX-N` / `N` — no `.md` suffix, no separator.
(arg: &str)
| 184 | /// file (FileNotFound) instead of misleadingly falling through to "invalid ID". |
| 185 | /// Intent IDs are `PREFIX-N` / `N` — no `.md` suffix, no separator. |
| 186 | fn is_path_shaped(arg: &str) -> bool { |
| 187 | arg.ends_with(".md") || arg.contains('/') || arg.contains(std::path::MAIN_SEPARATOR) |
| 188 | } |
| 189 | |
| 190 | /// Keep repository and I/O failures distinct; every other evidence refusal is |
| 191 | /// a user-fixable gate error (exit 2). |