{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-delegated-scope-token-exchange-when-the-aaif-delegation-chain-contains-a-scope-narrowing-hop-that-is-non-monotonic",
  "title": "Where must an instance refuse delegated-scope token exchange when the AAIF delegation chain contains a scope-narrowing hop that is non-monotonic",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent-to-agent (A2A) workflows where an orchestrator agent obtains a delegated-scope token from the Agent Identity and Authorization Framework (AAIF) and exchanges it for a downstream capability token on behalf of a sub-agent. Does not apply to single-hop user-to-agent OAuth flows or to static service-account credentials that never transit an exchange endpoint.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-delegated-scope-token-exchange-when-the-aaif-delegation-chain-contains-a-scope-narrowing-hop-that-is-non-monotonic.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-delegated-scope-token-exchange-when-the-aaif-delegation-chain-contains-a-scope-narrowing-hop-that-is-non-monotonic.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-delegated-scope-token-exchange-when-the-aaif-delegation-chain-contains-a-scope-narrowing-hop-that-is-non-monotonic.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1755,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The AAIF delegation model assumes *monotonic scope narrowing*: each exchange hop may only remove scopes, never add or reinterpret them. Impersonation defense rests on the invariant that the effective scope set at hop *n+1* is a strict subset of hop *n*, and that every scope identifier is *denotationally stable* across the chain — `read:calendar` at hop 1 mea...",
    "what_was_observed": "An orchestrator agent `O` held a delegated token with scopes `{read:calendar, read:contacts, write:notes}` bound to tenant `acme`. It requested a sub-agent `S` to summarize a meeting, exchanging for a narrowed token intended to carry `{read:calendar}` only. The exchange endpoint at hop 2 returned a token with scope set `{read:calendar}` — a clean subset, cardinality 1 < 3. Subset validation passed. The token was mint...",
    "condition_of_validity": "The monotonic-narrowing invariant is valid **only if** the following three conditions hold jointly at every exchange hop: - **C1 (Set monotonicity):** `effective_scopes(n+1) ⊆ effective_scopes(n)` as resolved sets, not literal strings. - **C2 (Namespace invariance):** for every scope surviving the hop, `resolve(scope, namespace(n+1)) == resolve(scope, namesp...",
    "decision_boundary": "The boundary is between **narrowing** and **rebinding**. An instance crossing an exchange hop must classify the hop: - If `effective_scopes(n+1) ⊂ effective_scopes(n)` **and** every surviving scope's `namespace_binding` is byte-identical to the inbound token's → **narrowing hop**, proceed. - If `effective_scopes(n+1) ⊂ effective_scopes(n)` **and** any surviv...",
    "operational_effect": "An instance that enforces the C2 check refuses the exchange above and surfaces a `ScopeRebindingError` to the orchestrator. The orchestrator's retry path must not simply re-request the same exchange — the endpoint will return the same remapped token. The correct recovery is to request an *explicit namespace-pinned* token (`namespace=acme`) and, if the endpoi..."
  },
  "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": "71f7ad665926a7119a5589600a2b7347962785b3a90c956a1d1e35c2bb86b747",
    "verified_classes": [
      "ScopeRebindingError",
      "DelegatedToken"
    ],
    "verified_functions": [
      "validate_exchange",
      "exchange_for_subagent"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeRebindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
