{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-proof-of-possession-key-substitution-from-silently-widening-delegated-authority-in-agent-to-agent-oauth-2-1-chains",
  "title": "Which invariants prevent proof-of-possession key substitution from silently widening delegated authority in agent-to-agent OAuth 2.1 chains",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-hop agent authorization chains where an orchestrator agent obtains a DPoP-bound access token (RFC 9449) with a `resource` indicator (RFC 8707) and delegates a narrowed sub-token to a downstream worker agent that presents its own proof-of-possession key. Does not apply to single-hop client-credentials flows or to bearer-token-only deployments where no PoP key is bound.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-proof-of-possession-key-substitution-from-silently-widening-delegated-authority-in-agent-to-agent-oauth-2-1-chains.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-proof-of-possession-key-substitution-from-silently-widening-delegated-authority-in-agent-to-agent-oauth-2-1-chains.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-proof-of-possession-key-substitution-from-silently-widening-delegated-authority-in-agent-to-agent-oauth-2-1-chains.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1648,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"token theft\" or \"signature forgery.\" It is a **binding-scope mismatch between the `cnf.jkt` thumbprint and the `resource` indicator across a delegation boundary**. When an orchestrator agent mints a downstream token, it must re-bind the token to the *worker's* proof key while simultaneously *narrowing* the `resource` list. These two opera...",
    "what_was_observed": "An orchestrator agent `A` held a DPoP-bound token `T_A` with `cnf.jkt = JKT_A`, `resource = [\"https://mcp.internal/calendar\"]`, `scope = \"calendar:read calendar:write\"`. Agent `A` spawned worker `B` to perform a read-only summarization and requested a sub-token via token exchange (RFC 8693) with `subject_token = T_A`, `scope = \"calendar:read\"`, and `DPoP` header bound to `JKT_B`. The authorization server's exchange h...",
    "condition_of_validity": "The invariant that must hold for safe delegation is: > For every delegated token `T_child` derived from `T_parent`: `T_child.resource ⊆ T_parent.resource` **AND** `T_child.scope ⊆ T_parent.scope` **AND** `T_child.cnf.jkt = JKT_child`. The failure triggers when **any** of the following hold: - The exchange request omits `resource`, and the AS defaults `resour...",
    "decision_boundary": "The architectural guardrail is a **parent-token claim snapshot at mint time**, not a re-derivation. The AS must, atomically within the exchange transaction: 1. Parse `subject_token` and extract `resource` and `scope` *from the token itself*, not from server config. 2. Require the exchange request's `resource` (if present) to be a subset; if absent, **inherit...",
    "operational_effect": "Without the snapshot guardrail, delegation chains exhibit **authority leakage proportional to chain depth**: each hop that omits `resource` re-defaults to the full audience registry, so a depth-3 chain can grant a leaf worker access to every resource the AS knows about, bounded only by scope intersection. In practice this surfaces as: - Audit logs where `res..."
  },
  "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": "cb2ee982c8ef024c33f719822c1f91f56dc36158d10480708463f40fccf77308",
    "verified_classes": [
      "AuthorityWideningError",
      "BoundToken"
    ],
    "verified_functions": [
      "validate_delegation",
      "mint_child_token"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AuthorityWideningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
