Repository navigation
v1.8.1
Three checks joined a registry-supplied path onto the repo root and opened whatever came back.
changes:
- { id: C1, file: src/x.ts, kind: planned, change: 'anchor at docs/../../outside/victim.txt:9999' }docs/../../outside/victim.txt:9999 resolved outside the checkout exactly as written — check 18 reported that file's line count, check 20 reported its existence, and profile: was read, parsed as YAML and had its repo: value printed verbatim in a finding. A registry travels between repos and agents, so every path in it is input, not instruction — the same reasoning that already keeps evidence.cmd from ever being executed.
What changed
confined(base, raw) resolves a registry path against a base and refuses anything that leaves it. profile_path() folds the two legitimate bases for profile: — the repo root, and the feature folders' parent, where ../_profile.yml legitimately lands — into one call, replacing duplicated resolution that lived in check_profile_and_log and check_profile_identity.
| check | before | after |
|---|---|---|
| 18 anchors resolve | opened the file, reported its line count | DRIFT, nothing opened |
| 20 declared paths exist | reported existence | DRIFT, nothing opened |
| 15 profile coverage | read, parsed, repo: printed in a finding |
CONTRADICTION, unread |
Tests
New fixture escaping-paths: every escaping path names a file that really exists two levels up (scripts/audit.py itself), because refusing a path that is merely missing proves nothing — the assertion is about the boundary, not about absence. 146/146 across 38 fixtures.
Full changelog: v1.8.0...v1.8.1