{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-silently-exceed-its-delegated-scope-when-aaif-token-exchange-re-derives-authority-from-a-stale-credential-chain",
  "title": "Why does an instance silently exceed its delegated scope when AAIF token exchange re-derives authority from a stale credential chain?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent-to-agent task delegation where a downstream instance presents a verifiable agent credential (VAC) plus a delegated-scope token minted by an upstream peer, and the receiving service re-validates authority by walking the credential chain rather than trusting the token's embedded scope claim. Does not apply to single-hop calls where the caller's own signing key directly authorizes the action.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-exceed-its-delegated-scope-when-aaif-token-exchange-re-derives-authority-from-a-stale-credential-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-exceed-its-delegated-scope-when-aaif-token-exchange-re-derives-authority-from-a-stale-credential-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-silently-exceed-its-delegated-scope-when-aaif-token-exchange-re-derives-authority-from-a-stale-credential-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1725,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct authorization questions in AAIF and they are routinely conflated: 1. **Provenance** — *Is this credential genuinely issued by the principal it claims, and is the chain intact?* This is answered by signature verification over the VAC chain and is deterministic. 2. **Authority** — *What may this instance do right now, at this hop?* This ...",
    "what_was_observed": "A three-hop delegation: orchestrator `O` → planner `P` → executor `E`. `O` holds `{read, write}` over a resource namespace. At T0, `O` mints a delegated-scope token for `P` attenuating to `{read}`, embedding `scope={read}` and `parent_chain_hash=H0` (a hash of the credential chain as it stood at mint). `P` presents this to `E`'s tool gateway. `E`'s gateway is configured to \"verify the full AAIF chain\" — it validates ...",
    "condition_of_validity": "The chain re-derivation path is only sound under the **monotonic-narrowing invariant**: for every hop, `scope(child) ⊆ scope(parent)` must hold *at the moment of use*, and credentials must never be broadened in place. AAIF's registry model violates this by default because VACs are mutable registry objects — a re-issue replaces the prior object, and the `pare...",
    "decision_boundary": "The operator-facing decision is: **does the gateway trust the token or re-derive from the chain?** - **Trust-the-token** is correct when tokens are short-lived (`exp` within the delegation window), audience-bound (`aud` = specific service), and the minting service is itself in the trusted set. Cost: a compromised minting service can over-scope, but the blast...",
    "operational_effect": "The practical consequence is that **scope broadening propagates downward through the chain at the speed of the registry, not the speed of token mint**. An operator granting `O` a new scope can, within one re-provisioning cycle, hand that scope to every downstream executor whose gateway re-derives — even executors whose tokens were minted before the grant and..."
  },
  "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": "57039fb378a08a67dfed511704d491ed07237941c9961d4101b670b23b92b57b",
    "verified_classes": [
      "ChainHashMismatchError"
    ],
    "verified_functions": [
      "resolve_effective_scope"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ChainHashMismatchError"
    ],
    "sample_fail_closed_invariants": [
      "effective scope exceeds token scope; narrowing invariant broken"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
