{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-scope-attenuation-when-an-a2a-task-crosses-an-oauth-2-1-token-exchange-boundary",
  "title": "Why does an instance lose scope attenuation when an A2A task crosses an OAuth 2.1 token-exchange boundary?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent-to-agent (A2A) delegation where the receiving agent authenticates to downstream resources using a token obtained via OAuth 2.1 token exchange (RFC 8693) with `scope` attenuation, and where the A2A task object carries its own authorization context. Does not apply to single-org delegation where the token issuer and the A2A endpoint share a trust root, nor to pure bearer-token passthrough with no exchange step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-scope-attenuation-when-an-a2a-task-crosses-an-oauth-2-1-token-exchange-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-scope-attenuation-when-an-a2a-task-crosses-an-oauth-2-1-token-exchange-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-scope-attenuation-when-an-a2a-task-crosses-an-oauth-2-1-token-exchange-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1863,
    "python_slice_tokens": 217,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token was rejected.\" It is that the token was *accepted* while carrying a scope set that is a strict superset of what the delegating agent intended to grant. The delegating orchestrator believes it attenuated `[read:invoices, write:invoices]` down to `[read:invoices]`. The resource server downstream of the second organization sees a t...",
    "what_was_observed": "A delegating agent `A` in org-1 holds a user-delegated token `T_u` with scope `invoices:read invoices:write customers:read`. It spawns an A2A task to agent `B` in org-2 asking B to reconcile a single invoice. `A` correctly constructs the exchange request: `B`'s AS returns `T_b` with `scope=invoices:read invoices:write customers:read` — the entire subject scope, because that AS's policy is \"preserve subject scope unle...",
    "condition_of_validity": "The invariant that must hold for safe cross-org A2A delegation is: > `scope(T_b) ⊆ scope(T_u) ∩ scope(requested)` — the minted token's scope is a subset of both the subject token's granted scope and the scope explicitly requested for the task, and this subset relation is *verified by the receiving agent* before the token is used, not assumed from the AS's be...",
    "decision_boundary": "The boundary is between two policies for handling a superset response: - **Fail-closed (correct for cross-org):** if `scope(T_b) ⊄ scope(requested)`, the receiving agent must refuse to use `T_b`, abort the A2A task with a `ScopeAttenuationViolation`, and (optionally) re-request with an explicit `client_id` registered for restriction. This is the only safe de...",
    "operational_effect": "When the invariant is enforced, the effect is a hard stop at the exchange boundary: the A2A task fails fast with a typed error, the delegating agent receives a structured failure (not a timeout), and no token with widened scope ever reaches a downstream resource server. The blast radius is one task. When it is not enforced, the effect is a silent privilege e..."
  },
  "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": "92dbb56bc77dc7c2df55839887f0fe970e3f62929e3054642ffd21df5bb1390b",
    "verified_classes": [
      "ScopeAttenuationViolation",
      "IdentityAttributionViolation"
    ],
    "verified_functions": [
      "validate_delegated_token",
      "receive_exchange_response"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IdentityAttributionViolation",
      "ScopeAttenuationViolation"
    ],
    "sample_fail_closed_invariants": [
      "exchange response did not include introspectable claims; cannot verify attenuation, refusing to proceed"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
