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

Open
opened 2026-11-26 20:21:59 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1637
Author: @KoLolX3
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/verifier-case-exclude


📝 Commits (1)

  • e7e2858 Exclude case aliases in manifest verifier scans

📊 Changes

2 files changed (+35 additions, -5 deletions)

View changed files

📝 tests/test_manifest_verifier.py (+23 -0)
📝 tools/manifest_verifier.py (+12 -5)

📄 Description

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.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1637 **Author:** [@KoLolX3](https://github.com/KoLolX3) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/verifier-case-exclude` --- ### 📝 Commits (1) - [`e7e2858`](https://github.com/ubiquitarianism/leonida/commit/e7e28587433e9a60e53c23457894b3b09f2a2ced) Exclude case aliases in manifest verifier scans ### 📊 Changes **2 files changed** (+35 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_manifest_verifier.py` (+23 -0) 📝 `tools/manifest_verifier.py` (+12 -5) </details> ### 📄 Description 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.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1651
No description provided.