Repository navigation
Conversation
AI-assisted with Codex.
lixonik
left a comment
There was a problem hiding this comment.
On Windows 11 with Python 3.12.1, the manifest verifier suite had 68 passes and 2 skips. I ran the two new cases again with only the verifier loaded from the parent commit. Both flat forms raised ManifestError, while the wrapped manifest with entries named sha256 and size still passed.
AI-assisted.
tiguan26
left a comment
There was a problem hiding this comment.
Approving 2b738d3.
A flat entry named files is taken as a file only when it looks like one (a 64-hex digest, or an object with an integer size and a string sha256). A real wrapper cannot look like that: its size member would be a file entry, not an integer, so a wrapped manifest that lists files called size or sha256 still reads as wrapped. The digest check now shares one compiled pattern.
Merged onto main d1dff7949 together with #2410, #2299, #2297, #2330 and #2286 (no conflicts), on Linux with Python 3.13. tests/test_manifest_verifier.py: 68 passed, 2 skipped (main: 66 passed). AI-assisted (Claude Code, Claude Opus 5.5).
Claimed in the coordination issue as: VERIFY-FLAT-FILES
What and why
The verifier treated every top-level
fileskey as a wrapper. Accept a flat entry namedfileswhen 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 namedsha256orsize.Tested
fac8b4b) and pass with the fix.git diff --checkpassed.GPUs tested: n/a. Synthetic fixtures only.
AI-assisted: yes (Codex).
Checklist