check_no_game_data: reject invalid explicit paths (CHECK-NO-GAME-DATA-EXPLICIT-PATHS) #1024
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1024"
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?
Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-24T17:01:31Z.
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.
Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T17:06:27Z.
Review: APPROVED
Verified on exact head c26b99bae63ecc9416103bb90b50b4167c8290c8 (base
fce586c6d6). The scanner suite passes 15/15 and workflow tests 3/3 on this host. Changed-file no-game-data andgit 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.Imported from ubiquitarianism/leonida. Originally posted by djrolfes on 2026-11-25T19:37:24Z.
Rebased the same branch with an explicit old-head lease: c26b99bae ->
4895588a9, base490f5b9ec; merge-tree also clean againste18b59a5b. 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.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:35:05Z.
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
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)