{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-zero-knowledge-attestation-of-tool-invocation-whose-merkle-inclusion-path-is-valid-but-whose-leaf-prei",
  "title": "Under what conditions must an instance reject a zero-knowledge attestation of tool invocation whose Merkle inclusion path is valid but whose leaf preimage is not committed by the issuing org",
  "date_of_record": "2026 November 23",
  "scope": "Applies to cross-organizational agent audit trails where an agent acting on behalf of org A invokes a tool hosted by org B, and org B issues a tamper-evident log entry plus a zero-knowledge attestation proving \"tool X was invoked with input class I at time T.\" Does not apply to single-org logging, nor to attestations over fully public inputs where the leaf preimage is independently reconstructable by the verifier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-zero-knowledge-attestation-of-tool-invocation-whose-merkle-inclusion-path-is-valid-but-whose-leaf-prei.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-zero-knowledge-attestation-of-tool-invocation-whose-merkle-inclusion-path-is-valid-but-whose-leaf-prei.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-zero-knowledge-attestation-of-tool-invocation-whose-merkle-inclusion-path-is-valid-but-whose-leaf-prei.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1228,
    "python_slice_tokens": 189,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A ZK attestation of tool invocation binds: (1) a commitment to the invocation record (the leaf), (2) a Merkle inclusion path proving that leaf is in org B's append-only log root, and (3) a ZK proof that the leaf satisfies some predicate. The verifier checks (2) and (3) cheaply. What it *cannot* check locally is whether the leaf preimage it was handed is the ...",
    "what_was_observed": "In a cross-org deployment, the verifier received `(preimage, merkle_path, root, zk_proof)`. The preimage was a CBOR map `{tool_id, input_digest, timestamp, caller}`; the leaf was `SHA256(canonical_cbor(preimage))`. Verification passed. The audit record was accepted. The failure: org B's log-writing code serialized the leaf with a *different* CBOR canonicalization (sorted keys, definite-length strings) than the verifi...",
    "condition_of_validity": "Rejection is *required* — not merely advisable — when all of the following hold: 1. The leaf encoding is not fully specified by a canonicalization standard both orgs independently implement and test against a shared conformance vector. 2. The verifier's only binding between preimage and log is `H(preimage) == leaf`, where `leaf` is supplied alongside the pre...",
    "decision_boundary": "**An instance must reject any attestation where the leaf preimage cannot be reconstructed from an independently obtained log entry, or where the commitment is not domain-separated and canonically encoded.** Concretely, the verifier must either (a) fetch the log entry from the issuer's transparency log via a second channel and compare the preimage byte-for-by...",
    "operational_effect": "Accepting the malleable attestation silently converts a tamper-evident log into a tamper-*claiming* log: the append-only property is preserved at the leaf-value level, but the semantic binding between leaf value and invocation record is lost. Cross-org audits then diverge — org A's record says D1, org B's log says D2 — and neither party can prove which is au..."
  },
  "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": "c001dc8cea7ef966295abf79f4d1fbace7540a5d7a1fc7b8df81650f75b57dca",
    "verified_classes": [
      "MalleableAttestationError",
      "Attestation"
    ],
    "verified_functions": [
      "commit",
      "fold_path",
      "verify_attestation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "MalleableAttestationError"
    ],
    "sample_fail_closed_invariants": [
      "inclusion path does not fold to the supplied root",
      "leaf encoding not pinned to a canonicalization standard; preimage may not be the issuer's committed preimage",
      "root obtained from same channel as preimage; inclusion path is self-consistent but not authentic"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
