{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-fail-delegated-scope-attenuation-when-an-aaif-credential-chain-crosses-a-re-issuing-hop-with-a-stale-scope-cache",
  "title": "Why does an instance fail delegated-scope attenuation when an AAIF credential chain crosses a re-issuing hop with a stale scope-cache?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to AAIF (Agent Authority & Identity Framework) delegated-scope credential chains where an intermediate agent re-issues a downstream credential instead of forwarding the original, and where scope resolution is cached per-issuer. Does not apply to single-hop bearer tokens or to chains that forward opaque credentials verbatim without re-signing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-delegated-scope-attenuation-when-an-aaif-credential-chain-crosses-a-re-issuing-hop-with-a-stale-scope-cache.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-delegated-scope-attenuation-when-an-aaif-credential-chain-crosses-a-re-issuing-hop-with-a-stale-scope-cache.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-delegated-scope-attenuation-when-an-aaif-credential-chain-crosses-a-re-issuing-hop-with-a-stale-scope-cache.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1869,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a signature-verification failure, and it is not a revocation-timing failure. Both of those are loud: the verifier rejects, the call aborts, the chain is visibly broken. The boundary condition here is a *silent scope-widening* that survives every cryptographic check. AAIF delegated credentials carry a scope set `S` and an attenuation rule: ...",
    "what_was_observed": "A three-hop chain: orchestrator `O` → planner `P` → executor `E`. `O` holds a root credential with scope `{read:kb, write:kb, exec:shell, net:egress}`. `P` is a long-lived planner process with an in-memory scope cache keyed by `(issuer_id, subject_id)`. On first use, `P` resolves `O`'s scope and caches `{read:kb, write:kb, exec:shell, net:egress}`. Later, `O` re-issues a task-specific credential to `P` for a read-onl...",
    "condition_of_validity": "The attenuation invariant is only sound when the scope used in the subset check is *the scope of the credential that will actually be presented as the parent in the chain*, byte-for-byte. Formally, for chain `C = (c_0, c_1, ..., c_n)` where `c_i` was issued by the holder of `c_{i-1}`: The cached-resolution path substitutes `scope_cached(issuer(c_{i-1}), subj...",
    "decision_boundary": "The operational decision is where to draw the cache boundary. Two defensible positions: - **Cache by credential hash.** Scope entries keyed on `sha256(credential_bytes)`. Re-issuance produces a new hash, misses the cache, forces re-resolution. Cost: a cache miss on every re-issue, which for high-churn planners can be most calls. This is the correct default. ...",
    "operational_effect": "Downstream, the widened scope is indistinguishable from a legitimately granted one. Auditors replaying the chain see three valid signatures and a passing subset check at each hop; the only artifact that reveals the widening is the *root task grant*, which lives in the orchestrator's task record, not in the credential chain. This means: 1. **Forensic gap.** P..."
  },
  "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": "7fbaf422707e6511d26b8db1a06a65c3e75409f5febc3251a5e3e8fa5489603f",
    "verified_classes": [
      "ScopeLaunderingError",
      "Credential",
      "ScopeCache"
    ],
    "verified_functions": [
      "attenuate",
      "issue_child",
      "instance_hash",
      "__init__",
      "resolve"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ScopeLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
