{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-derive-a-delegated-consent-chain-rather-than-trust-a-cached-aaif-capability-token",
  "title": "When must an instance re-derive a delegated consent chain rather than trust a cached AAIF capability token?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents operating under an Agent Identity and Authorization Framework (AAIF) where a capability token carries a delegation chain (issuer → delegate → sub-delegate) and a scope set, and where the agent caches that token across reasoning steps or across tool invocations. Does not apply to single-hop bearer tokens with no delegation, nor to tokens whose scope is re-validated by the resource server on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-a-delegated-consent-chain-rather-than-trust-a-cached-aaif-capability-token.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-a-delegated-consent-chain-rather-than-trust-a-cached-aaif-capability-token.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-a-delegated-consent-chain-rather-than-trust-a-cached-aaif-capability-token.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1966,
    "python_slice_tokens": 467,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two materially different questions an agent can ask about a capability token: 1. **\"Is this token still cryptographically valid?\"** — signature, expiry, audience, nonce. This is verifiable offline and cacheable. 2. **\"Does the delegation chain that produced this token still confer the scope I am about to exercise?\"** — this depends on the *current*...",
    "what_was_observed": "An orchestrator agent `A` holds a scoped capability token `T` minted by consent-granting principal `U`, delegating `scope = {read:repo, write:pr, merge:pr}` to `A`, with `A` permitted to sub-delegate `{read:repo, write:pr}` to worker agents. `A` sub-delegates to worker `W`, producing token `T_W` with `scope = {read:repo, write:pr}` and a chain `[U → A → W]`. `T_W` has a 30-minute TTL. `A` caches `T_W` in its working ...",
    "condition_of_validity": "A cached AAIF capability token remains a sound basis for exercising scope **only if all of the following hold**: - **No narrowing event upstream.** Every principal in the chain `[U → … → holder]` has, since the token was minted, retained at least the scope the token advertises. This is not observable from the token alone; it requires either a revocation-feed...",
    "decision_boundary": "The operational rule is a **re-derivation trigger**, not a blanket \"always re-derive\" (which defeats the point of caching and burns latency budget on every call): - **Re-derive on scope escalation.** If the next action requires a scope not exercised since the last re-derivation, re-derive the chain before the call. A cached token that has only been used for ...",
    "operational_effect": "Without the re-derivation trigger, the failure mode is **silent over-authorization**: the agent performs actions its grounding chain no longer permits, with no error surfaced at the token layer. The resource server admits the call; the audit log records a valid token; the only evidence of the violation is a chain-state mismatch that no component in the path ..."
  },
  "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": "9701c7fb2f2a6b291a40c94d21618dff98bdfe87e295ce43e77f289b1bd28603",
    "verified_classes": [
      "StaleDelegationError",
      "CapabilityToken",
      "ChainState",
      "ScopedCapabilityCache"
    ],
    "verified_functions": [
      "_demo",
      "__init__",
      "_grounded_scope",
      "authorize",
      "invalidate_on_narrowing"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleDelegationError"
    ],
    "sample_fail_closed_invariants": [
      "revalidation_interval must be <= revocation_propagation_latency; otherwise cached tokens can outlive their grounding cha"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
