Repository navigation
fix: refuse redirected checkout paths in release inventory - #410
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
Reviewed exact HEAD d5673152ce4be66fb0ea970384a00f89213097be against the four-file diff and current AGENTS.md/CONTRIBUTING.md.
The new ordinary_checkout_directory() checks each lexical path component from root to selected checkout using lstat() before the initial Git read, then rechecks the Git-reported top level; it rejects symlinks and Windows reparse points while retaining an ordinary .. path. The standalone skill helper has the same Git blob SHA as the canonical script (f3924a3ec6aa4e48debd96ccae4a19b076ed07a9). The three new subprocess regressions cover selected and parent symlink rejection and an ordinary .. success path. Changelog scope and limitations are explicit.
Exact-head GitHub Actions: Quality checks 6/6 jobs passed (Python 3.11, Python 3.14, Windows Python 3.14, two Action self-tests, Lint); standalone skills CLI copy trial passed. Reviewer-local execution: NOT_RUN. This is a point-in-time checkout-path preflight, not a race-proof filesystem sandbox, .git metadata audit, or hostile-Git-config isolation. No merge-blocking defect established within the scoped change.
drevendev
left a comment
There was a problem hiding this comment.
Later-run acceptance of exact HEAD d5673152ce4be66fb0ea970384a00f89213097be: re-read the four-file patch and the actual canonical/standalone helper source (matching blob f3924a3ec6aa4e48debd96ccae4a19b076ed07a9), checked the three path regressions and explicit limitations. The path guard runs before the first Git invocation and is re-applied to Git's returned repository root; no material blocking issue found in this scoped change. Fresh provider CI for this head: Quality checks 6/6 SUCCESS (including Windows, both Python versions and Action self-tests), standalone skills copy trial 1/1 SUCCESS. One independent APPROVED review and zero open review threads confirmed. Reviewer-local full test suite NOT_RUN; provider CI serves as runtime evidence. COMMENT is same-account evidence, not independent approval.
Outcome
Reject checkout paths that contain symlinks or Windows reparse points before the offline release-history inventory invokes Git. Git's
-Cfollows a directory alias: a selected apparent checkout can therefore silently disclose another repository's commit subjects.Changes
..route, remain valid...path.draft-release-notesskill helper with canonicalscripts/release_inventory.py(byte-identical blob at current head).Evidence and limits
git -C selected-alias logreturned the synthetic outside repository's subject...).bcd60d1failed 2 Python jobs because the required copied skill helper was stale (test_standalone_skill_preflight); repaired ond567315by syncing the standalone copy. Current-head CI is newly running; do not inherit earlier PASS.python tools/docs_links.pynot run locally: GitHub DNS is unavailable to this sandbox; await fresh provider CI on the exact PR head.No release/tag, settings, license, public internal controls, external repo writes or spending. Separate later-run acceptance required.