{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-mtls-bound-token-exchange-from-silently-degrading-federation-trust-when-an-agent-s-certificate-rotates-mid-handoff",
  "title": "Which invariants prevent mTLS-bound token exchange from silently degrading federation trust when an agent's certificate rotates mid-handoff",
  "date_of_record": "2026 November 30",
  "scope": "Applies to federated agent deployments where agent A in org X obtains a scoped OAuth token via RFC 8693 token exchange bound to its mTLS client certificate (RFC 8705), then hands off work to agent B in org Y that must verify the originating warrant. Does not apply to single-org deployments or to bearer-token-only flows without certificate binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-mtls-bound-token-exchange-from-silently-degrading-federation-trust-when-an-agent-s-certificate-rotates-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mtls-bound-token-exchange-from-silently-degrading-federation-trust-when-an-agent-s-certificate-rotates-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-mtls-bound-token-exchange-from-silently-degrading-federation-trust-when-an-agent-s-certificate-rotates-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1871,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token was rejected.\" It is \"the token was accepted under a trust anchor that no longer corresponds to the certificate that presented it.\" In mTLS-bound token exchange, the authorization server (AS) issues a token whose `cnf.x5t#S256` confirmation claim pins the SHA-256 thumbprint of the presenter's certificate. Downstream resource ser...",
    "what_was_observed": "In a two-org federation (org X = issuing AS + agent A; org Y = resource server + agent B), the following trace was captured during a scheduled certificate rotation window: 1. `t=0`: Agent A obtains client cert `C1` (thumbprint `T1`), valid 24h. 2. `t=100ms`: Agent A performs RFC 8693 exchange, receives access token `AT1` with `cnf: {x5t#S256: T1}`, `exp: t+300s`. 3. `t=200ms`: Agent A begins handoff to agent B; `AT1`...",
    "condition_of_validity": "The binding invariant holds if and only if all three of the following are enforced *at the resource server*, not merely at the AS: 1. **Confirmation-claim re-binding:** The resource server MUST recompute `x5t#S256` from the live TLS session certificate and compare it byte-for-byte to the token's `cnf.x5t#S256`. Chain validation against the org CA is necessar...",
    "decision_boundary": "The operational decision is: **on certificate rotation, do you invalidate or re-bind?** - **Invalidate** is safe but disruptive: every in-flight handoff fails, agents must re-exchange, and downstream replay detectors see duplicate correlation IDs. Acceptable when handoffs are short-lived and idempotent. - **Re-bind** is smooth but requires the AS to issue a ...",
    "operational_effect": "The observable effect of the unguarded case is a class of requests that pass every individual check — chain valid, token active, org authorized — but whose cryptographic binding is broken. In a multi-agent swarm, this manifests as agent B accepting a handoff from agent A that was minted under a certificate A no longer holds, which means the *warrant* (the 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": "cda5c82b52f0ca865d60af6a42d5d652075bab65dae5d343eb1246885a85ebc4",
    "verified_classes": [
      "FederationBindingError",
      "SessionCert",
      "ExchangedToken"
    ],
    "verified_functions": [
      "verify_federated_handoff",
      "thumbprint_s256"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "FederationBindingError"
    ],
    "sample_fail_closed_invariants": [
      "token inactive per introspection"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
