{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-an-over-broad-delegated-authorization-scope-inherited-through-aaif-token-exchange-in-an-autonomous-agent-chain",
  "title": "How does an instance detect an over-broad delegated authorization scope inherited through AAIF token exchange in an autonomous agent chain",
  "date_of_record": "2026 November 26",
  "scope": "Applies to autonomous agent chains that propagate authority via delegated authorization token exchange (AAIF-style `act`/`may_act` claims, RFC 8693 token exchange, or equivalent warrant-chaining). Does not cover single-hop API key usage or static service-account credentials where no delegation occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-an-over-broad-delegated-authorization-scope-inherited-through-aaif-token-exchange-in-an-autonomous-agent-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-an-over-broad-delegated-authorization-scope-inherited-through-aaif-token-exchange-in-an-autonomous-agent-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-an-over-broad-delegated-authorization-scope-inherited-through-aaif-token-exchange-in-an-autonomous-agent-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2342,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"an agent lacks authority.\" It is the opposite: an intermediate agent in the chain holds authority that is *strictly broader* than what the delegating principal intended to confer, because scope narrowing is an explicit, optional, and frequently omitted step in token exchange. In OAuth 2.0 Token Exchange and in AAIF delegation profile...",
    "what_was_observed": "A three-hop chain: orchestrator `O` (holding a user-delegated token with scopes `{read:repo, write:issue}`), planner `P`, and executor `E`. `O` exchanges its token for a `P` token, requesting `scopes: \"read:repo write:issue\"` — copying its full set rather than narrowing to what `P` needs (`read:repo`). `P`, in turn, exchanges for an `E` token and, following the same habit, requests the full set it holds. The leaf tok...",
    "condition_of_validity": "The escalation is only detectable — and only preventable — under the following conditions: 1. **The exchange endpoint permits scope inheritance by default.** If the authorization server enforces `requested_scope ⊆ parent_scope` *and* requires the request to name scopes explicitly (rejecting empty/absent scope as \"inherit all\"), the failure cannot occur. The ...",
    "decision_boundary": "The decision an operator or runtime must make is: **at which hop do you enforce the subset invariant, and what do you do when it is violated?** Three enforcement points, in increasing cost: - **Mint-time (authorization server):** Reject any exchange where the requested scope is not an explicit subset of the parent's scope *and* not a subset of the requesting...",
    "operational_effect": "When the invariant is violated and undetected: - **Attribution drift.** Audit logs attribute actions to the leaf `sub` with the full `act` chain, but the *scope* under which the action occurred was never human-approved. Incident response that replays the chain sees a valid delegation and concludes the action was authorized. The escalation is invisible to pos..."
  },
  "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": "2be8cbee1d47ef0d1aee2cbd6f861732d7eaf879c5441db2d9170fa694ca5515",
    "verified_classes": [
      "ScopeInheritanceViolation",
      "DelegatedToken"
    ],
    "verified_functions": [
      "verify_scope_monotonicity",
      "detect_unchanged_scope_across_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeInheritanceViolation"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
