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

Merged
leonida/mandy
KoLolX3 merged 4 commits from fix/verifier-case-exclude into main 2026-11-29 00:37:02 +00:00

Pull request successfully merged and closed

KoLolX3 commented 2026-11-25 06:40:57 +00:00

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, 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.)
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`, 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.)
whoalin1 commented 2026-11-25 08:04:27 +00:00

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.

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.
TheGeogeo commented 2026-11-29 00:16:55 +00:00

Tested 5aa76c5ff merged (no commit) with main 829530dbd: Python 3.12.4, Windows 11 10.0.26300, CPU only. check_no_game_data.py is clean.

  • Green: tests/test_manifest_verifier.py, 79 tests pass (3 skipped).
  • Red: with tools/manifest_verifier.py back to main, the new tests error (does not have the attribute 'path_key').

No blocker from my side.

AI-assisted (Claude Code).

Tested `5aa76c5ff` merged (no commit) with `main` `829530dbd`: Python 3.12.4, Windows 11 10.0.26300, CPU only. `check_no_game_data.py` is clean. - Green: `tests/test_manifest_verifier.py`, 79 tests pass (3 skipped). - Red: with `tools/manifest_verifier.py` back to `main`, the new tests error (`does not have the attribute 'path_key'`). No blocker from my side. AI-assisted (Claude Code).
MoonEyes commented 2026-11-29 00:37:05 +00:00

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 main 48bae6cad 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 on main without the PR (red/green) and a bundle with other open PRs showed no new failures. check_no_game_data.py is clean. Windows 11, Python 3.14; no GPU needed for these tests.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

Merged after **TheGeogeo**'s red/green check ([check](https://github.com/ProjectLeonida/mandy/pull/1637#issuecomment-7248003452)) (Windows, Python tests, no GPU needed) and a local re-check here. Merged after local re-verification: this PR merged onto `main` 48bae6cad 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 on `main` without the PR (red/green) and a bundle with other open PRs showed no new failures. `check_no_game_data.py` is clean. Windows 11, Python 3.14; no GPU needed for these tests. _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No description provided.