pub fn verify(args: &PackVerifyArgs) -> Result<PackVerifyJsonData, PackError>Expand description
Verify the bundle at args.bundle:
- Read the archive (
tar.zst) and decode the manifest. - Recompute the canonical bundle hash from manifest + contents.
- If the manifest carries an Ed25519 signature, run the existing
verify_workflow_bundle_signaturecheck; refuse unsigned bundles unless--allow-unsignedwas passed. - Walk each
ModuleEntryand verify itssource_hash_blake3/harnbc_hash_blake3match the in-archive payload.
Any mismatch yields a PackError with a stable structured code
suitable for JSON consumers.