{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-across-aaif-trust-boundaries",
  "title": "Under what conditions must an instance refuse a delegated-scope token exchange across AAIF trust boundaries",
  "date_of_record": "2026 December 2",
  "scope": "Applies to AAIF delegated-scope token exchanges where an agent instance acts on behalf of a principal and presents a scope grant to a downstream resource holder. Does not cover first-party token issuance, refresh-token rotation, or human-in-the-loop OAuth consent flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-across-aaif-trust-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-across-aaif-trust-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-delegated-scope-token-exchange-across-aaif-trust-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "AAIF delegated-scope exchange is not a bearer-token handoff. It is a *scope-narrowing witness chain*: each hop must produce a token whose scope set is a strict subset of the presenting token, and whose issuer field is signed by the immediately preceding holder. The non-obvious failure is that scope-narrowing and identity-binding are evaluated against differe...",
    "what_was_observed": "An orchestrator instance `O` held a broad token `T_O` (scopes `{read, write, admin}`, `nbf=1000`, `exp=1600`). It delegated to worker `W` a narrowed token `T_W` (scopes `{read, write}`, `act=[O]`, `nbf=1000`). At `t=1200`, `W`'s host triggered a proactive refresh, minting `T_W'` with `nbf=1200`, `exp=1800`, scopes `{read, write}`, `act=[O]`. `W` then attempted to delegate `{read}` to sub-worker `S`, producing `T_S` w...",
    "condition_of_validity": "The invariant that *must* hold for delegated-scope exchange to be safe: > For every token `T` with delegation chain `act = [a_0, a_1, ..., a_n]`, the tuple `(a_i.jti, a_i.nbf, a_i.exp)` for all `i` must be *immutable across refreshes* of any token in the chain, OR the verifier must resolve revocation against the *original* `a_0.jti` rather than the leaf's `a...",
    "decision_boundary": "An instance must refuse the exchange — not warn, not log, refuse with a hard error — when *all* of the following hold: 1. The presenting token's `act` stack length ≥ 2 (i.e., the instance is at least a second-hop delegate). 2. The presenting token's `nbf` is strictly greater than `act[0].nbf` (indicating a refresh occurred after the root grant). 3. The verif...",
    "operational_effect": "Instances that implement the refusal boundary observe a 0.3–0.7% increase in exchange rejections during steady state, concentrated on long-lived worker pools that refresh on a 15-minute cadence. The rejections are correct: they correspond to chains where the root grant's revocation status is genuinely unknown. The cost is a forced re-delegation from the root..."
  },
  "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": "0245b3f8340530c07adf5c2155b12e6dd467611c8ceb93a1ec8cb50ccc4ad25a",
    "verified_classes": [
      "DelegationChainIncoherent",
      "ActHop",
      "DelegatedToken",
      "VerifierConfig"
    ],
    "verified_functions": [
      "must_refuse_exchange",
      "exchange_delegated_scope"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DelegationChainIncoherent"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
