{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-scope-laundering-when-a2a-agent-cards-re-broker-oauth-token-exchanges-across-org-boundaries",
  "title": "Which invariants prevent delegated-scope laundering when A2A agent cards re-broker OAuth token exchanges across org boundaries",
  "date_of_record": "2026 November 29",
  "scope": "Applies to A2A (agent-to-agent) handoffs where a broker agent in org A exchanges a caller's scoped OAuth token for a downstream token at org B, using an extended agent card to advertise and negotiate scope. Does not cover single-org token caching, or handoffs where the same trust domain issues both tokens.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-laundering-when-a2a-agent-cards-re-broker-oauth-token-exchanges-across-org-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-laundering-when-a2a-agent-cards-re-broker-oauth-token-exchanges-across-org-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-scope-laundering-when-a2a-agent-cards-re-broker-oauth-token-exchanges-across-org-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1769,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not token theft and not signature forgery. It is *scope laundering through transitive delegation*: a token whose `scope` set was legitimately narrowed at hop 1 is re-widened at hop 2 because the broker treats the downstream agent card's advertised `capabilities` as the authoritative scope request, rather than the *intersection* of...",
    "what_was_observed": "A broker in org A received a user-delegated token with `scope=\"repo:read issue:read\"` and `aud=\"broker.a.example\"`. It fetched org B's extended agent card at `/.well-known/agent.json`, which declared: The broker constructed an RFC 8693 exchange request with `subject_token` = the user token, `scope` = the union of the card's `requiredScopes` and the original request scope, and `audience` = `b.example`. Org B's AS, con...",
    "condition_of_validity": "The invariant `effective_scope(N+1) ⊆ effective_scope(N)` holds only under these conditions, each of which is independently violable: 1. **Effective scope is read from the token response `scope` field, not the request.** If the client library reconstructs scope from its request, the invariant is unobservable. This is the dominant real-world failure. 2. **The...",
    "decision_boundary": "The operational decision is where to enforce the clamp. Three placements, ordered by robustness: - **At the AS (authoritative):** reject exchange requests whose `scope` is not a subset of `subject_token.scope`; return `invalid_scope`. This is the only placement that survives a buggy broker. Cost: requires the AS to introspect the subject token, adding a hop....",
    "operational_effect": "A launderable chain converts a read-only delegation into a write/secret-read capability with no user consent event and no audit signal at the broker (the broker logs the *requested* scope, which looks legitimate). Downstream audit logs show a valid token exercising `ci:secrets:read`; the only forensic trail is the mismatch between the original grant recorded..."
  },
  "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": "876214d691761ae168737a589b7ffab169018769d2fc568d49f93c6770a59391",
    "verified_classes": [
      "ScopeLaunderingError",
      "Token",
      "Broker"
    ],
    "verified_functions": [
      "exchange"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
