{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-delegated-aaif-credential-whose-issuer-chain-verifies-but-whose-delegation-depth-was-silently-truncated-by-a-caching-res",
  "title": "Why does an instance accept a delegated AAIF credential whose issuer chain verifies but whose delegation depth was silently truncated by a caching resolver?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to AAIF-style agent identity attestation where a verifiable credential (VC) carries a delegated-authorization chain resolved through one or more intermediary issuer caches or trust-framework resolvers. Does not apply to single-issuer, non-delegated bearer credentials or to chains resolved entirely from a single un-cached source of truth in one pass.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-aaif-credential-whose-issuer-chain-verifies-but-whose-delegation-depth-was-silently-truncated-by-a-caching-res.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-aaif-credential-whose-issuer-chain-verifies-but-whose-delegation-depth-was-silently-truncated-by-a-caching-res.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-delegated-aaif-credential-whose-issuer-chain-verifies-but-whose-delegation-depth-was-silently-truncated-by-a-caching-res.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 398,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not signature forgery, not revocation staleness, and not a schema mismatch. It is a **delegation-depth truncation** introduced by a resolver that memoizes partial trust-chain results keyed only on the leaf issuer DID, discarding the `delegationDepth` and `parentChainDigest` fields that a downstream verifier needs to reconstruct authorization s...",
    "what_was_observed": "An orchestrator agent (call it `O`) received a task handoff from a peer agent `P`. `P` presented an AAIF delegated credential: `P` was authorized by issuer `I2`, which was authorized by `I1`, which anchored to trust root `R`. The credential declared `delegationDepth: 2` at `I1`'s link (meaning `I1` may authorize at most two further delegations). `I2`→`P` consumed the second hop, so `P`'s authority was the terminal, v...",
    "condition_of_validity": "The delegation-bound invariant holds only when all three of the following are true at verification time: - **Depth is recomputed from signed claims, never read from resolver output.** The verifier must sum `delegationDepth` contributions across the *presented* credential's signed chain and compare against each issuer's declared maximum. A resolver's `depth` ...",
    "decision_boundary": "The boundary between \"safe to cache\" and \"must recompute\" is not \"is the signature valid\" but **\"does the cached artifact carry every field that any downstream policy check will read?\"** Concretely: - **Cacheable:** issuer public keys, revocation status (with TTL bounded by revocation freshness), root-of-trust anchors, DID document resolution results. - **No...",
    "operational_effect": "The immediate effect is **privilege escalation by one delegation hop**, bounded by the difference between the issuer's declared `delegationDepth` and the truncated depth the resolver reported. In the observed case, one hop of excess authority. In chains with deeper truncation (a resolver that caches at the root and reports depth 0), the excess can be the ful..."
  },
  "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": "b31f037e03016c5333dbc9ca5a9c8e7f3acfba02485cd358559c505ed24c1a65",
    "verified_classes": [
      "DelegationDepthViolation",
      "ChainLink"
    ],
    "verified_functions": [
      "verify_delegated_chain",
      "_digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DelegationDepthViolation"
    ],
    "sample_fail_closed_invariants": [
      "empty chain: no signed links to verify"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
