[PR #2403] manifest_verifier: accept a flat entry named files #2402

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2403
Author: @bimo0o
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: verify-flat-files


📝 Commits (1)

  • 2b738d3 manifest_verifier: accept a flat entry named files

📊 Changes

2 files changed (+41 additions, -3 deletions)

View changed files

📝 tests/test_manifest_verifier.py (+26 -0)
📝 tools/manifest_verifier.py (+15 -3)

📄 Description

Claimed in the coordination issue as: VERIFY-FLAT-FILES

What and why

The verifier treated every top-level files key as a wrapper. Accept a flat entry named files when its value is a SHA-256 digest string or an object with an integer size and a SHA-256 string. Preserve wrapped manifests that list files named sha256 or size.

Tested

  • Both flat forms reproduced the bug on main (fac8b4b) and pass with the fix.
  • Manifest verifier on Windows, Python 3.12.3 and 3.14.0: 68 passed and 2 skipped on each.
  • Related path, game-data guard, and line-ending tests: 37 passed and 1 skipped.
  • Compileall, CLI help, changed-file game-data check, and git diff --check passed.
  • Full translator and runtime suites were not run.

GPUs tested: n/a. Synthetic fixtures only.

AI-assisted: yes (Codex).

Checklist

  • One topic.
  • No game data, keys or decryption.

🔄 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/2403 **Author:** [@bimo0o](https://github.com/bimo0o) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `verify-flat-files` --- ### 📝 Commits (1) - [`2b738d3`](https://github.com/ubiquitarianism/leonida/commit/2b738d3ba5adbebcf2dc1f36cd5e685b356abab2) manifest_verifier: accept a flat entry named files ### 📊 Changes **2 files changed** (+41 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_manifest_verifier.py` (+26 -0) 📝 `tools/manifest_verifier.py` (+15 -3) </details> ### 📄 Description Claimed in the coordination issue as: [VERIFY-FLAT-FILES](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7202418131) ### What and why The verifier treated every top-level `files` key as a wrapper. Accept a flat entry named `files` when its value is a SHA-256 digest string or an object with an integer size and a SHA-256 string. Preserve wrapped manifests that list files named `sha256` or `size`. ### Tested - Both flat forms reproduced the bug on main (`fac8b4b`) and pass with the fix. - Manifest verifier on Windows, Python 3.12.3 and 3.14.0: 68 passed and 2 skipped on each. - Related path, game-data guard, and line-ending tests: 37 passed and 1 skipped. - Compileall, CLI help, changed-file game-data check, and `git diff --check` passed. - Full translator and runtime suites were not run. GPUs tested: n/a. Synthetic fixtures only. AI-assisted: yes (Codex). ### Checklist - [x] One topic. - [x] No game data, keys or decryption. --- <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#2402
No description provided.