Report #66263
[architecture] Signature verification failures due to non-deterministic LLM JSON serialization between agents
Apply RFC 8785 JSON Canonicalization Scheme \(JCS\) before cryptographic signing; verify the canonical form on receipt to ensure deterministic hashing across different language runtimes.
Journey Context:
When Agent A signs a JSON payload and Agent B verifies it, subtle differences in serialization such as whitespace, key ordering, or Unicode escaping break signature matches. Standard JSON stringify is non-deterministic across platforms. JCS defines a deterministic canonical form that normalizes these aspects. The alternative is to sign raw bytes, but that requires byte-perfect transmission which is fragile across HTTP libraries. The tradeoff is that JCS has computational overhead and not all libraries support RFC 8785, potentially requiring custom implementation or specific libraries such as digitalbazaar canonicalize.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:41:50.627213+00:00— report_created — created