# Black-Box Offline Verification Specification

Zero network access or source code is required to verify every cryptographic claim in this proof pack.

## 1. Offline CLI Commands

```sh
asl-d verify-checkpoint --bundle sample-bundle-2.json --roots trust-roots.json
asl-d verify-consistency --prev sample-bundle-1.json --curr sample-bundle-2.json --proof consistency-proof.json --roots trust-roots.json
asl-d readiness-report --episodes sample-episodes.jsonl --out sample-readiness-report.html
```

## 2. Independent Verification Recipe (RFC 8785 / DSSE / RFC 9162 / C2SP)

1. **Canonical Leaf Digest**: Normalize any bundled JSON statement with RFC 8785 (JCS) and compute `d = SHA-256(jcs_bytes)` (32 bytes). Confirm `d == proof.leaf_digest`.
2. **RFC 9162 Inclusion**: Hash leaf as `SHA-256(0x00 || d)`; combine internal nodes as `SHA-256(0x01 || left || right)` along `proof.audit_path` to reconstruct `checkpoint.root_hash_hex`.
3. **Strict AND-Logic Hybrid DSSE**: Reconstruct `body = JCS({log_id, origin_domain, root_hash_hex, timestamp_unix, tree_size})`, encode DSSEv1 PAE (`"DSSEv1 " + len(pt) + " " + pt + " " + len(body) + " " + body`), prepend `verigate-composite-mldsa65-ed25519-v1 || 0x00 || uint32be(len(purpose)) || purpose || 0x00` (`purpose = verigate.checkpoint.v1`), and verify BOTH non-zero `ed25519` AND hedged `ml-dsa-65` signatures against pinned `trust-roots.json`.
4. **C2SP Witness & RFC 9162 Consistency**: Verify pinned Ed25519 witness cosignature (`purpose = verigate.witness.v1`), parse `checkpoint.c2sp.txt` (4 LF-terminated lines ending in `verigate-hybrid-v1 <hex>`), and verify RFC 9162 §2.1.4.2 consistency from tree size 5 to 12.
