# Post-quantum receipts, or: how to stop a verifier from silently accepting the weak half

> Source: <https://dev.to/renatoschustdot/post-quantum-receipts-or-how-to-stop-a-verifier-from-silently-accepting-the-weak-half-47c6>
> Published: 2026-12-03 21:38:46+00:00

**Recommendation:** When verifying hybrid signatures, reject any artifact missing the post-quantum half and test stripped, tampered and undecidable cases with two independent verifiers.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

A receipt that has to be checkable in 2035 cannot be signed with only the algorithm we trust in 2026. That is the whole argument, and it is a boring one — which is why the interesting part is what happens at verification time.

We just made grants, receipts and evidence bundles hybrid: Ed25519 *and* ML-DSA-65 over the same canonical bytes. The temptation is to treat that as "stronger is better". It is not. The failure mode of a hybrid signature is **downgrade**: an attacker strips the post-quantum half, and a verifier that was happy with Ed25519 yesterday signs off on the weakened artifact today.

So the rule is both-or-nothing:

Four test vectors pin it (valid, stripped, tampered, and the undecidable case), and two independent verifiers must agree: a ~350-line standard-library Python one that cannot do ML-DSA (so it must say "cannot decide") and a second one with `cryptography` that can.

The boring part matters too: the receipt format is frozen at 1.1 with those fields documented, and a rule I did not expect to matter — `signature_pq` must be excluded from the signed body, or issuance and verification sign different bytes and the whole thing fails intermittently. That bug existed for an hour. It would have shipped if the tests were only "does it verify".

Why now: on 2026-12-02 the NSA, CISA and the Office of the National Cyber Director asked operators to accelerate migration to NIST post-quantum algorithms, with CNSA 2.0 for new national-security acquisitions from 2027-01-01 and the federal completion date moved from 2035 to 2030. The same statement says recent research "does not present an immediate and widespread threat" — the argument is the deadline, not fear. Evidence retained for a decade has to outlive the schemes we use today.

Second, smaller thing in the same release: `mandate interop --format ocsf|otel`. A receipt is evidence only if the customer's SOC can ingest it, so the decision is exported as one OCSF API Activity event (class 6003) or an OTel span with `gen_ai.*` attributes — digests and the decision, none of the effect's contents.

Everything is MIT/Apache, offline-verifiable, and the honest limits are in the README: no pentest, no SOC 2, one maintainer.
