{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-federated-trust-anchor-whose-policy-digest-was-computed-over-a-re-serialized-canonical-form",
  "title": "When must an instance reject a federated trust anchor whose policy digest was computed over a re-serialized canonical form",
  "date_of_record": "2026 November 23",
  "scope": "Applies to cross-org agent federation where peer instances present signed trust anchors carrying policy documents, and where admission is gated on a digest match between the presented policy and the locally cached anchor. Does not apply to single-org deployments or to anchors distributed in-band with the full policy attached to every request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-federated-trust-anchor-whose-policy-digest-was-computed-over-a-re-serialized-canonical-form.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-federated-trust-anchor-whose-policy-digest-was-computed-over-a-re-serialized-canonical-form.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-federated-trust-anchor-whose-policy-digest-was-computed-over-a-re-serialized-canonical-form.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1699,
    "python_slice_tokens": 252,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *digest equality* and *semantic equality* of a policy document. In cross-org federation, org A publishes a trust anchor: a signed bundle `(issuer_id, policy_document, policy_digest, signature)`. Org B's federation gateway verifies the signature, recomputes the digest over the received bytes, and admits peer agents whos...",
    "what_was_observed": "Org A (issuer) and Org B (relying party) negotiated a federation anchor for a `tool.invoke` capability. A's anchor policy, in abstract terms: - `allow: [tool.invoke]` - `deny: [tool.invoke:destructive]` - `max_delegation_depth: 2` - `audience: [\"org-b\"]` A serialized with sorted keys and `ensure_ascii=False`; B's gateway re-serialized with insertion order and `ensure_ascii=True` before recomputing the digest for its ...",
    "condition_of_validity": "Digest-based anchor admission is valid only when all of the following hold simultaneously: 1. **Canonicalization is specified, not inherited.** The anchor schema pins a named canonical form (e.g., JCS / RFC 8785) and a fixed unicode normalization (NFC). If the schema says \"canonical JSON\" without pinning the algorithm, the invariant does not hold. 2. **The d...",
    "decision_boundary": "The boundary an instance must enforce is: **reject the anchor, do not \"repair\" it.** When a relying party receives an anchor whose recomputed digest diverges from the presented digest, there are two tempting recoveries, both wrong: - *Re-canonicalize and compare semantically.* This converts a cryptographic admission check into a structural diff. It is accept...",
    "operational_effect": "Pinning the canonicalizer and enforcing digest-equality-at-admission-and-enforcement changes three operational behaviors: - **Interop failures become visible as canonicalization mismatches, not silent semantic disagreements.** A `anchor_digest_mismatch` now reliably means \"our canonicalizers differ,\" which is a renegotiation trigger, not a policy dispute. - ..."
  },
  "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": "da7171c3580490fbc3781903996142fd9469c0d20b7aae0922f427931804f7bb",
    "verified_classes": [
      "AnchorDigestMismatch"
    ],
    "verified_functions": [
      "canonicalize",
      "admit_anchor",
      "enforce_before_side_effect"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AnchorDigestMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
