check_no_game_data: reject invalid explicit paths (CHECK-NO-GAME-DATA-EXPLICIT-PATHS) #1024
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1024
Loading…
Reference in a new issue
No description provided.
Delete branch "djrolfes/check-game-data-explicit-paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed: CHECK-NO-GAME-DATA-EXPLICIT-PATHS (coordination).
Depends on: #922 (Git-enumeration error handling, now retained from main).
What and why
An explicitly named missing file or directory must not report a successful safety scan that checked nothing:
lstatexplicit inputs; reject missing, inaccessible and non-regular entries.git_errordiagnostics.Only the scanner and its synthetic tests change.
Tested rebase
Head
4895588a9, based on main490f5b9ec. Original reviewed headc26b99baeis preserved.git diff --check: passed.Linux / Python standard library; no GPU or game files. Native Windows not tested. FIFO/newline cases are platform-guarded; symlink tests skip if creation is unavailable.
The existing approval applies to the original head; reviewers may reassess this rebase. Hosted label checks are not full CI evidence.
AI-assisted: yes. No game content, keys or decryption.
Verified on exact head c26b99bae63ecc9416103bb90b50b4167c8290c8 (base fce586c6d6f74160eccff015d9806e179188d862). The scanner suite passes 15/15 and workflow tests 3/3 on this host. Changed-file no-game-data and
git diff --checkpass. Explicit missing paths, directories, symlinks and FIFOs now fail closed without following/opening non-regular targets; the tests also preserve match-over-error precedence and default Git-scan skips. The direct PR builder scope is distinct from #922’sgit ls-filesfailure behavior, although both touch the scanner and test module. Synthetic paths only; no game data or GPU.Rebased the same branch with an explicit old-head lease: c26b99bae -> 4895588a9, base 490f5b9ec; merge-tree also clean against e18b59a5b. The conflict resolution retains main’s git_error helper and Git-enumeration exception handling, then applies explicit-input validation at check(..., explicit=...). No detection magic, archive budget, or default Git skip policy was removed.
Retested on Linux: scanner 17/17, extension-workflow 3/3, Python compileall, changed-file scanner and diff checks pass. The original approved head is preserved locally; @KernelSmoker, the existing approval was for that older head, so please reassess this rebase as needed. No claim of full hosted CI from a label check. AI-assisted; synthetic paths only.
Red/green: tests/test_check_no_game_data.py fails 7 assertions on main (explicit directories, missing paths and symlinks are skipped silently) and passes with the PR (cloud run on main 7daa4a4).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)