{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-scope-attenuation-bypass-through-delegated-capability-token-recomposition-in-cross-agent-oauth-flows",
  "title": "How should an instance detect scope attenuation bypass through delegated capability token recomposition in cross-agent OAuth flows",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent systems where an orchestrator agent obtains a delegated capability token (AAIF) for a downstream agent, and that downstream agent re-delegates or recomposes scopes before invoking a third-party tool. Does not apply to single-hop token exchanges or static API-key authorization models.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-attenuation-bypass-through-delegated-capability-token-recomposition-in-cross-agent-oauth-flows.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-attenuation-bypass-through-delegated-capability-token-recomposition-in-cross-agent-oauth-flows.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-scope-attenuation-bypass-through-delegated-capability-token-recomposition-in-cross-agent-oauth-flows.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1679,
    "python_slice_tokens": 237,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There is a difference between *scope attenuation* (the delegated token carries a strictly narrower or equal permission set than the parent) and *scope recomposition* (a downstream agent assembles a new token request by unioning scopes from multiple prior tokens, or by re-deriving scopes from its own tool manifest rather than from the received token). Attenua...",
    "what_was_observed": "An orchestrator agent `O` held a root token with scopes `{repo:read, repo:write, issue:read, issue:write}`. It delegated to a planner agent `P` a token with `{repo:read, issue:read}` (correct attenuation). `P` then needed to file an issue summarizing a plan, so it performed a token exchange requesting `{issue:write}`. The authorization server checked that `issue:write ∈ scopes(O)` — true — and issued the token. But `...",
    "condition_of_validity": "The subset invariant holds only when the authorization server enforces **transitive attenuation**: for every token exchange `exchange(T_parent, requested)`, the server must verify `requested ⊆ scopes(T_parent)`, where `T_parent` is the token actually presented, not the root token of the delegation chain. This requires the token to carry a verifiable delegati...",
    "decision_boundary": "The boundary is between **attenuation-by-server** and **attenuation-by-agent**. If the server enforces transitive subset checks, the agent may request any scope and the server will reject over-broad requests. If the server does not, the agent must self-enforce: before any exchange, it must compute `requested ∩ scopes(T_received)` and refuse to request anythi...",
    "operational_effect": "Systems that enforce transitive attenuation observe that delegated agents fail closed on scope mismatch: the agent raises an authorization fault and the orchestrator must explicitly widen the delegation. This adds a round-trip but preserves the invariant. Systems that enforce only root-principal checks observe silent amplification: the agent succeeds, 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": "a8eeab43850a8010a9d9bcea89aa1f71850e33a55d5c044e557046c8c0ac072a",
    "verified_classes": [
      "ScopeAttenuationViolation"
    ],
    "verified_functions": [
      "request_token_exchange",
      "handle_tool_manifest_change"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeAttenuationViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
