{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-verify-a-delegated-aaif-warrant-after-a-mid-task-capability-downgrade-and-why-scope-hash-caching-silently-defeats-it",
  "title": "Where must an instance re-verify a delegated AAIF warrant after a mid-task capability downgrade, and why scope-hash caching silently defeats it",
  "date_of_record": "2026 November 21",
  "scope": "Applies to AAIF (Agent Identity and Authorization Interoperability Framework) credential exchange between a delegating agent (issuer) and a receiving agent (bearer) when the bearer caches a validated warrant across tool calls within a single task. Does not apply to stateless one-shot warrants minted and consumed per call, nor to human-mediated OAuth consent flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-delegated-aaif-warrant-after-a-mid-task-capability-downgrade-and-why-scope-hash-caching-silently-defeats-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-delegated-aaif-warrant-after-a-mid-task-capability-downgrade-and-why-scope-hash-caching-silently-defeats-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-verify-a-delegated-aaif-warrant-after-a-mid-task-capability-downgrade-and-why-scope-hash-caching-silently-defeats-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1892,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an AAIF bearer can cache: the *warrant bytes* (the signed JWT-like envelope carrying issuer, subject, scope set, expiry, and the `warrant_chain`) and the *authorization decision* (the verdict that \"this warrant authorizes operation X right now\"). Caching the bytes is safe and cheap—re-verifying the signature is a pure function o...",
    "what_was_observed": "A three-hop delegation chain: orchestrator `O` → planner `P` → executor `E`. `O` mints a root warrant `W0` for `P` with scope `{read:repo, write:repo, exec:sandbox, net:egress}`. `P` delegates to `E` via a derived warrant `W1 = attenuate(W0, {read:repo, exec:sandbox})`, embedding `W0` in `W1.warrant_chain`. `E` validates `W1`, computes the decision `allow(exec:sandbox)`, and caches it under key `K = (O, E, root(W0))`...",
    "condition_of_validity": "The stale-decision hazard is bounded by three conditions, all of which must hold simultaneously for the failure to occur: 1. **Attenuation-without-revocation is permitted.** The AAIF profile in use must allow a delegating agent to issue a superseding warrant that narrows scope while leaving the prior warrant's signature valid (i.e., no `revocation_list` entr...",
    "decision_boundary": "The invariant that must hold is: **a cached authorization decision is valid only for the exact `(warrant_chain_root, canonical_scope_set_digest, expiry)` triple it was derived from.** The bearer must treat the scope-set digest as part of the cache *value's* validity predicate even if it is excluded from the cache *key*. Concretely, on every cache hit the bea...",
    "operational_effect": "Bearers that adopt re-verify-on-present see a measurable but bounded cost: signature verification on a changed warrant is ~1–3 ms for typical Ed25519 chains, and the set-containment check is O(|scope|). The cache still pays off for the common case of repeated calls under an *unchanged* warrant, because the digest matches and the decision is reused. The corre..."
  },
  "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": "aa8824364099e1fdafa9ddc019217fd03b61312f69c8023755b6d7ba43a5eb9d",
    "verified_classes": [
      "StaleWarrantDecisionError",
      "Warrant",
      "Decision",
      "WarrantDecisionCache"
    ],
    "verified_functions": [
      "authorize",
      "scope_digest",
      "__init__",
      "_key",
      "decide"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleWarrantDecisionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
