manifest_verifier: exclude case aliases of manifest and cache (VERIFY-MANIFEST-WALK-CASE) #1637
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!1637
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/verifier-case-exclude"
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 in the coordination issue as: VERIFY-MANIFEST-WALK-CASE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154998081)
What and why
The verifier can include its own manifest or cache in the scanned files when the containing directory or filename uses different case on a folding macOS volume. Use the shared volume-aware directory key and fold the entry name when the volume ignores case. Keep separately named hard links in the scan: exclusions describe directory entries, not every name for the same inode. A synthetic test covers manifest and cache aliases and a hard-linked input.
Tested
python -I tests/test_manifest_verifier.py(69 tests, 2 skips)python -I tests/test_report_paths.py(22 tests)python -I scripts/run_semantic_tests.py tests/semantic(487 files, 6,279 tests, 0 files failed)python -m compileall -q make_game.py tools tests,python -I make_game.py --help,python -I scripts/check_no_game_data.py tools/manifest_verifier.py tests/test_manifest_verifier.py, andgit diff --checkpath_keydetects folding on macOS and vianormcaseon Windows; it does not detect all case-folding Linux mounts.GPUs tested: n/a
AI-assisted: yes (OpenAI Codex)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (Not applicable.)Independent verification (native Windows, Python 3.11.9): case-alias exclusion via NFD+casefold keys scoped per-directory (hard links under other names correctly stay in scan — the new regression test proves it),
path_key/case_insensitive_volume/same_report_pathhelpers confirmed intools/report_paths.py. Tests:test_manifest_verifier.py69 OK (4 skips),test_report_paths.py22 OK (1 skip), compileall clean. AI-assisted verification.Tested
5aa76c5ffmerged (no commit) withmain829530dbd: Python 3.12.4, Windows 11 10.0.26300, CPU only.check_no_game_data.pyis clean.tests/test_manifest_verifier.py, 79 tests pass (3 skipped).tools/manifest_verifier.pyback tomain, the new tests error (does not have the attribute 'path_key').No blocker from my side.
AI-assisted (Claude Code).
Merged after TheGeogeo's red/green check (check) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto
main48bae6cad without conflict, and its test file(s) (tests/test_bcpack_tool.py,tests/test_manifest_verifier.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.