{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-from-its-attested-audit-ledger-when-a-federated-peer-re-derives-the-same-tool-call-transcript-under-a-different-tokenizat",
  "title": "Why does an instance diverge from its attested audit ledger when a federated peer re-derives the same tool-call transcript under a different tokenization of the same warrant?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to federated agent audit ledgers where provenance is anchored by hashing canonicalized tool-call transcripts and warrants across organizational boundaries. Does not cover single-tenant ledgers with a single tokenizer/serializer, or ledgers whose integrity is guaranteed by a trusted third-party timestamping service rather than by peer re-derivation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-attested-audit-ledger-when-a-federated-peer-re-derives-the-same-tool-call-transcript-under-a-different-tokenizat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-attested-audit-ledger-when-a-federated-peer-re-derives-the-same-tool-call-transcript-under-a-different-tokenizat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-attested-audit-ledger-when-a-federated-peer-re-derives-the-same-tool-call-transcript-under-a-different-tokenizat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2155,
    "python_slice_tokens": 461,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not tampering detection. It is a *false divergence*: two honest organizations, each replaying the identical logical tool-call sequence from the same attested warrant, produce different ledger digests and therefore flag each other as adversarial. The distinguishing property is that the divergence originates in the *canonicalization layer*—the m...",
    "what_was_observed": "Two organizations, A and B, run a shared audit protocol. A's agent executes a tool call `transfer_funds(amount=1000, currency=\"USD\", memo=\"Q3 reconciliation\")`. A's ledger writer serializes the event, computes `SHA-256(canonical_bytes)`, appends the digest to its Merkle tree, and ships the leaf plus the raw event to B for cross-attestation. B's verifier re-derives the canonical bytes from the received event and recom...",
    "condition_of_validity": "The invariant a federated audit ledger must enforce is: > **Two independent verifiers, given the same attested event and the same published canonicalization specification, MUST produce byte-identical pre-image bytes; and the specification MUST be total over the event schema.** The failure above violates the second clause, not the first. Each verifier is inte...",
    "decision_boundary": "The operative decision is what a verifier does when it cannot reproduce a peer's digest. There are exactly three defensible policies, and choosing wrong converts a canonicalization bug into a false accusation of tampering: - **Attest-and-flag (default for spec-version match).** If the spec version matches and digests differ, the event is a genuine divergence...",
    "operational_effect": "The practical consequence is that federated audit ledgers for LLM agents must treat canonicalization as a first-class, versioned, total function, and must transmit pre-images rather than only digests when cross-attesting. Digests alone are insufficient because they are hashes of a representation, and the representation is the thing under dispute. The seconda..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "9675c3a5af4dea1ace379384ef593d08f253995ea918477fe03f00f29c14da2d",
    "verified_classes": [
      "CanonicalizationMismatch",
      "PartialSpecDivergence"
    ],
    "verified_functions": [
      "_canon_number",
      "_canon_text",
      "_canon_map",
      "_canon_value",
      "canonical_bytes",
      "attest"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "CanonicalizationMismatch",
      "PartialSpecDivergence"
    ],
    "sample_fail_closed_invariants": [
      "non-NFC text in pre-image; verifier must reject, not silently normalize",
      "digest mismatch over transmitted pre-image",
      "transmitted pre-image is non-canonical; quarantine and request re-serialization"
    ],
    "stdlib_dependencies": [
      "decimal",
      "hashlib",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
