{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-delegated-agent-token-whose-mtls-binding-silently-rebinds-to-the-wrong-subject-during-rfc-8693-token-exchange",
  "title": "Why does an instance accept a delegated agent token whose mTLS binding silently rebinds to the wrong subject during RFC 8693 token exchange?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to cross-organization agent-to-agent delegation where an incoming agent presents an OAuth 2.0 Token Exchange (RFC 8693) `act`/`may_act` delegation chain and the receiving resource server enforces sender-constrained tokens via mTLS certificate thumbprint (`cnf.x5t#S256`, RFC 8705). Does not cover bearer-only federation, SPIFFE-only identity, or intra-org delegation where the token issuer and resource owner share a trust domain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-agent-token-whose-mtls-binding-silently-rebinds-to-the-wrong-subject-during-rfc-8693-token-exchange.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-agent-token-whose-mtls-binding-silently-rebinds-to-the-wrong-subject-during-rfc-8693-token-exchange.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-agent-token-whose-mtls-binding-silently-rebinds-to-the-wrong-subject-during-rfc-8693-token-exchange.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2350,
    "python_slice_tokens": 504,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct identities that must both survive a token exchange, and most federation designs conflate them: 1. **The cryptographic subject binding** — the mTLS client certificate presented at the token endpoint, whose SHA-256 thumbprint is embedded in the issued token's `cnf.x5t#S256` confirmation claim. 2. **The logical delegation subject** — the ...",
    "what_was_observed": "A three-party federation: org A (issuer, `iss=https://as.a.example`), org B (broker agent `B-broker`), org C (resource server `rs.c.example` enforcing `cnf`). Agent `A1` in org A holds a client certificate `cert(A1)` and requests delegation to `B-broker` to call `rs.c.example` on its behalf. Trace of the failing exchange: 1. `A1` → `as.a.example` `/token` with `grant_type=urn:ietf:params:oauth:grant-type:token-exchan...",
    "condition_of_validity": "The rebind is only safe under a conjunction that deployments rarely satisfy: - **Issuer-scoped `act` claims.** Every `act` entry must carry (or be verifiable against) the issuer that asserted it. RFC 8693 does not mandate this; the `act` claim is an unstructured JSON object. Without an issuer binding, a bridge AS can assert any `act.sub` it likes. - **`cnf` ...",
    "decision_boundary": "The boundary is between **token validation** and **delegation validation**. Most resource servers implement only the former: they check signature, expiry, `cnf`, and `aud`, then read `act.sub` as an advisory string. The decision boundary is crossed the moment a resource server treats `act.sub` as authoritative without verifying that the issuer of the token i...",
    "operational_effect": "In production, this failure manifests as three recurring patterns: 1. **Silent over-scoping.** Bridge agents re-issue tokens with expanded scope and rebound `cnf`, and the audit trail attributes the expanded action to the original delegating principal. Incident response chases the wrong agent. 2. **Audit-chain divergence.** The resource server's log (`sub=B-..."
  },
  "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": "f60e095bd9b87897b14b6535fbfd42616e44e07279c895f2b5d8a6df794f26ef",
    "verified_classes": [
      "DelegationChainLaunderingError",
      "ActLink",
      "DelegatedToken"
    ],
    "verified_functions": [
      "thumbprint",
      "validate_delegation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "DelegationChainLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "self-asserted delegation: bridge issuer cannot be its own trust anchor"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
