{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-delegated-scope-authority-mid-tool-chain-when-aaif-attestation-tokens-outlive-their-minting-context",
  "title": "Why does an instance lose delegated-scope authority mid-tool-chain when AAIF attestation tokens outlive their minting context?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent runtimes that obtain per-tool least-privilege attestations (AAIF delegated-scope tokens) from an authorization broker and cache/reuse them across a multi-step tool chain. Does not apply to stateless single-call agents that mint a fresh token per invocation, nor to human-delegated OAuth flows where the subject principal is re-verified on each hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-scope-authority-mid-tool-chain-when-aaif-attestation-tokens-outlive-their-minting-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-scope-authority-mid-tool-chain-when-aaif-attestation-tokens-outlive-their-minting-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-scope-authority-mid-tool-chain-when-aaif-attestation-tokens-outlive-their-minting-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1534,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token *expiry* and not token *revocation*. It is **scope-context divergence**: an AAIF delegated-scope token encodes the *delegation chain* (issuer → delegating agent → executing agent) and a *scope set* that was computed against the agent's reasoning state at mint time. Between mint and use, the agent's plan mutates—it decides to call a t...",
    "what_was_observed": "A three-agent chain: orchestrator `A` delegates to worker `B`, which spawns a sandboxed executor `C` for shell tools. `A` mints an AAIF token `T_A` with scope `{repo:read, test:run}` and delegates to `B` with scope narrowed to `{repo:read, test:run}` (no narrowing). `B`, before spawning `C`, mints `T_B` delegating to `C` with scope `{test:run}` only—`repo:read` was judged unnecessary for `C`'s shell execution. Mid-ch...",
    "condition_of_validity": "The guardrail holds only under the conjunction: 1. **Chain-binding check per call:** the runtime resolves the calling agent identity `I` and verifies that the selected token's delegation chain contains `I` as the terminal delegate, not merely that `I` holds *some* valid token containing the scope. 2. **Scope-subset check against the immediate delegator's gra...",
    "decision_boundary": "The runtime must choose, at each tool call, between two regimes: - **Reuse-with-binding (correct when the call's required scope ⊆ scope(T_caller) and the plan is unchanged):** cheap, no broker round-trip, valid only if chain-binding and depth-partitioned cache are both enforced. - **Re-mint (mandatory when required scope ⊄ scope(T_caller) OR plan diverged):*...",
    "operational_effect": "Enforcing the invariant converts a silent privilege escalation into an explicit, auditable re-attestation event. The cost is a broker round-trip on plan divergence and a hard failure when the immediate delegator cannot or will not re-grant the scope—which is the *correct* outcome: `B` stripped `repo:read` from `C` deliberately, and `C`'s need for it is a sig..."
  },
  "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": "b5dc4f2fedee83a25c3b25dc9c7f4922a6d10e599feb13842f99f6747ccdd103",
    "verified_classes": [
      "ScopeChainViolation"
    ],
    "verified_functions": [
      "authorize_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeChainViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
