{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bind-a-federated-peer-s-policy-negotiation-state-to-its-mtls-leaf-identity-when-the-peer-rotates-certificates-mid-handshake",
  "title": "How should an instance bind a federated peer's policy-negotiation state to its mTLS leaf identity when the peer rotates certificates mid-handshake",
  "date_of_record": "2026 November 26",
  "scope": "Applies to cross-org agent federation where an inbound agent's authorization decisions (tool grants, data-scope claims, delegation depth) are derived from a policy-negotiation handshake performed over a mutually-authenticated TLS channel. Does not apply to single-org deployments where identity and policy share one trust root, nor to stateless request/response APIs that carry a signed warrant on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bind-a-federated-peer-s-policy-negotiation-state-to-its-mtls-leaf-identity-when-the-peer-rotates-certificates-mid-handshake.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bind-a-federated-peer-s-policy-negotiation-state-to-its-mtls-leaf-identity-when-the-peer-rotates-certificates-mid-handshake.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bind-a-federated-peer-s-policy-negotiation-state-to-its-mtls-leaf-identity-when-the-peer-rotates-certificates-mid-handshake.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1925,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"certificate rotation breaks connections.\" TLS libraries handle renegotiation and session resumption. The failure is a **binding gap between the identity that authenticated the channel and the identity that authored the policy state**. During federation, an agent A (org Alpha) and agent B (org Beta) run a negotiation handshake: B proposes ...",
    "what_was_observed": "A federated deployment between two agent fleets, Alpha (data-owning) and Beta (orchestrating). Beta's agents request scoped access to Alpha's retrieval tools. The handshake: Beta presents leaf cert `CN=agent-beta-07, SAN=beta.example/agents/07`, Alpha validates against Beta's pinned intermediate, runs a policy negotiation (3 round-trips), emits a `PolicyGrant{grant_id, scopes:[retrieval:read, corpus:finance], max_del...",
    "condition_of_validity": "The invariant holds—i.e., the federation is safe—only when *all* of the following are true: 1. **Grant-to-leaf binding is explicit.** The `PolicyGrant` stores the leaf's SKI (or full cert fingerprint), not the connection ID. Any authorization decision re-derives the current peer leaf from the live TLS session and compares fingerprints. Mismatch → grant inval...",
    "decision_boundary": "The decision an instance must make at each inbound authorization check is: **is this grant's bound identity the identity currently on the channel, and is that identity currently trusted?** - If the grant's stored fingerprint equals the live peer leaf fingerprint **and** the live leaf chains to a currently-pinned anchor → authorize. - If fingerprints differ →...",
    "operational_effect": "Enforcing the binding changes federation behavior in three concrete ways. First, **session resumption becomes a re-authentication trigger, not a shortcut**—every resumed federated session pays a chain-validation cost, which is cheap (one signature check) relative to the breach it prevents. Second, **certificate rotation causes grant renegotiation**, so Beta'..."
  },
  "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": "650f6bc1a8ff6142510a042cd3e6c96cd0c74b6191646f9fe9c8d82fa9f7cfe6",
    "verified_classes": [
      "FederationBindingError",
      "PolicyGrant"
    ],
    "verified_functions": [
      "leaf_fingerprint",
      "authorize"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "FederationBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
