manifest_verifier: exclude case aliases of manifest and cache (VERIFY-MANIFEST-WALK-CASE) #1637

Open
github-bot wants to merge 1 commit from github-bot/gh-1637 into main AGit
Owner

@⁠KoLolX3 on GitHub · 2026-11-25 06:40 UTC · original
KoLolX3:fix/verifier-case-exclude → main · +35 −5 · 2 files · 1 commits · open

Claimed in the coordination issue as: VERIFY-MANIFEST-WALK-CASE (#1608)

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, and git diff --check
  • Linux; volume folding was simulated. Native APFS was not available. The shared path_key detects folding on macOS and via normcase on Windows; it does not detect all case-folding Linux mounts.

GPUs tested: n/a

AI-assisted: yes (OpenAI Codex)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable.)
**@⁠KoLolX3** on GitHub · 2026-11-25 06:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1637) `KoLolX3:fix/verifier-case-exclude` → `main` · +35 −5 · 2 files · 1 commits · open Claimed in the coordination issue as: VERIFY-MANIFEST-WALK-CASE (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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`, and `git diff --check` - Linux; volume folding was simulated. Native APFS was not available. The shared `path_key` detects folding on macOS and via `normcase` on Windows; it does not detect all case-folding Linux mounts. GPUs tested: n/a AI-assisted: yes (OpenAI Codex) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:59:00 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 08:04 UTC · original

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_path helpers confirmed in tools/report_paths.py. Tests: test_manifest_verifier.py 69 OK (4 skips), test_report_paths.py 22 OK (1 skip), compileall clean. AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 08:04 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1637#issuecomment-7156575126) 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_path` helpers confirmed in `tools/report_paths.py`. Tests: `test_manifest_verifier.py` 69 OK (4 skips), `test_report_paths.py` 22 OK (1 skip), compileall clean. AI-assisted verification.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1637/head:github-bot/gh-1637'
git switch 'github-bot/gh-1637'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1637'
git switch 'github-bot/gh-1637'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1637'
git switch 'github-bot/gh-1637'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1637'
git switch 'main'
git merge --squash 'github-bot/gh-1637'
git switch 'main'
git merge --ff-only 'github-bot/gh-1637'
git switch 'main'
git merge 'github-bot/gh-1637'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.