Repository navigation
feat(verify): check frozen manifest-split deliveries against receipts - #769
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
[Medium impact] The PR appears safe to merge; no actionable issues were found.
|
kstonekuan
left a comment
There was a problem hiding this comment.
Thanks for the fix. Ruff, ty, the full local suite (2,592 passed), changed-page links, and both Python CI jobs pass. Merging.
Summary
Add
hflow verify manifest-split DIRECTORYandhflow.verify_manifest_splitso recipients can check a frozen training split after transfer, without its original input manifest. The split writer already records the file hashes.The verifier reads existing v1 receipts, supports custom partitions, ignores unlisted files, and refuses symlinks and nonregular files. It uses the existing verification report and exit codes: 0 clean, 1 damaged, 2 unreadable input.
Evidence
Before: an untouched archive of main
e921dfehas no public verifier: importing it raisesImportError, and the CLI exits 2 withNo such command 'manifest-split'.After: all 37 manifest tests pass on Python 3.11 and 3.14, covering moved output, custom partitions, missing and changed files, multiple findings, invalid receipts, and unsafe file types.
A 12-sample split moved after deleting its input verifies with exit 0 on both Python versions. A same-length edit to
train.parquetproduces exit 1 naming that file. File inventories confirm that verification leaves the delivery unchanged.Validated on current main
e921dfe; the existing PR branch merges to exactly the tested tree. Commands:Full suite on each of Python 3.11 and 3.14: 2,661 passed, eight opt-in skips. Ruff, formatting, ty, and whitespace checks pass. Changed-guide links pass 2/2. The contribution guide's complete lychee check reports 439 OK, four configured exclusions, and one timeout at an unchanged FFmpeg homepage reference.
Merge Danger
Door: two-way
Read-only addition. No writer, receipt-format, dependency, or canonical-byte change.
Blast Radius: verification
Hashes compare delivered bytes with an unsigned receipt. They do not authenticate the publisher or prove leakage independence. Only files claimed by the receipt are checked; the original input and media are not needed.
Need help on this PR? Tag
@codesmith-botwith what you need.