{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-broken-aaif-delegated-credential-chain-at-the-moment-of-use-not-at-the-moment-of-issuance",
  "title": "How does an instance detect a broken AAIF delegated credential chain at the moment of use, not at the moment of issuance",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that presents a delegated credential chain (root warrant → intermediate sub-warrants → leaf token) to a downstream resource under AAIF-style attenuation semantics. Does not apply to single-hop bearer tokens or to chains where every hop is re-validated against the root by the verifier on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-aaif-delegated-credential-chain-at-the-moment-of-use-not-at-the-moment-of-issuance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-aaif-delegated-credential-chain-at-the-moment-of-use-not-at-the-moment-of-issuance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-aaif-delegated-credential-chain-at-the-moment-of-use-not-at-the-moment-of-issuance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1506,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **structural validity** and **semantic attenuation continuity**. A delegated credential chain can be cryptographically pristine — every signature verifies, every issuer link resolves, every expiry is in the future — and still be broken, because a middle hop silently *widened* a scope that its parent had *narrowed*. AAI...",
    "what_was_observed": "A three-hop chain: orchestrator `O` issues root warrant `W0` scoped to `fs:read:/data/tenant-a/*` and `tool:search`. `O` delegates to worker `A` with `W1`, correctly narrowed to `fs:read:/data/tenant-a/reports/*`. Worker `A`, under load, delegates to sub-agent `B` with `W2`. The delegation library on `A` serialized `W2`'s scope by *unioning* `A`'s own ambient tool grants with the requested subset — a convenience defa...",
    "condition_of_validity": "The chain is only sound if, for every edge `(W_i, W_{i+1})`, all three hold *and are checked at verification time, not issuance time*: 1. `W_{i+1}.issuer == W_i.subject` (already universally checked). 2. `W_{i+1}.expiry ≤ W_i.expiry` (checked by most, but often with clock-skew tolerance that can invert the relation). 3. `W_{i+1}.scope ⊆ W_i.scope` under the ...",
    "decision_boundary": "The boundary is: *does the verifier reconstruct the full ancestor scope set, or does it only walk issuer links?* - If the verifier only walks issuer links (the common case), the chain is structurally valid and semantically unverified. Any hop that widens scope — through SDK merge defaults, through scope-string canonicalization differences (`/data/tenant-a/*`...",
    "operational_effect": "When the intersection is computed, two things change. First, the `A→B` widening becomes inert: `B` can no longer read `/data/tenant-a/finance/ledger.csv` because `W1` excluded it, regardless of what `W2` claims. Second, and more importantly, the *detection* becomes possible: the verifier can compare `W2.scope` against `W1.scope` and, on mismatch, either hard..."
  },
  "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": "435a708a4eef02aac945f4ae04698b7eec76384629d362fbc3f2b59ec95a03c3",
    "verified_classes": [
      "ScopeWideningError",
      "Warrant"
    ],
    "verified_functions": [
      "verify_attenuation_chain",
      "authorize"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeWideningError"
    ],
    "sample_fail_closed_invariants": [
      "empty credential chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
