{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-delegated-aaif-credential-whose-aud-matches-but-whose-delegation-chain-exceeds-the-orchestrator-s-remaining-warrant-dep",
  "title": "When must an instance refuse a delegated AAIF credential whose `aud` matches but whose delegation chain exceeds the orchestrator's remaining warrant depth",
  "date_of_record": "2026 December 1",
  "scope": "Applies to AAIF (Agent Authorization & Identity Framework) verifiable-credential (VC) chains where an agent instance receives a delegated warrant signed by a parent agent and must decide whether to execute a tool call under it. Does not cover first-party credentials issued directly by a root authority, nor bearer tokens without a delegation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-aaif-credential-whose-aud-matches-but-whose-delegation-chain-exceeds-the-orchestrator-s-remaining-warrant-dep.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-aaif-credential-whose-aud-matches-but-whose-delegation-chain-exceeds-the-orchestrator-s-remaining-warrant-dep.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-delegated-aaif-credential-whose-aud-matches-but-whose-delegation-chain-exceeds-the-orchestrator-s-remaining-warrant-dep.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1524,
    "python_slice_tokens": 217,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not signature forgery, expiry, or audience mismatch. Those are caught by ordinary VC verification. The non-obvious boundary is **warrant-depth exhaustion under audience-correct delegation**: a credential whose `iss`, `sub`, `aud`, `exp`, and signature all validate, whose `aud` correctly names the receiving instance, and yet whose embedded...",
    "what_was_observed": "An orchestrator agent `O` issued a task warrant `W0` to planner `P` with `delegable: true`, `max_depth: 3`, `aud: P`. `P` delegated to executor `E` as `W1` (`aud: E`, chain length 1). `E`, under a tool-call retry loop, delegated a scoped sub-warrant `W2` to a sandboxed code runner `R` (`aud: R`, chain length 2). `R` then, on a cache-miss path, delegated `W3` to a retrieval agent `Q` (`aud: Q`, chain length 3). `Q` pr...",
    "condition_of_validity": "The depth invariant holds only when all of the following are true simultaneously: 1. The receiving verifier's `max_delegation_depth` is defined relative to the *same anchor* as the credential's `max_depth` claim. If `W0.max_depth` counts participants and `G.max_delegation_depth` counts hops, the comparison is undefined. The anchor must be the root issuer, an...",
    "decision_boundary": "The boundary is precise: **admit iff `signed_depth(leaf) <= local.max_delegation_depth` AND `signed_depth(leaf) <= root.max_depth`**, where `signed_depth` is the count of delegation edges from the root issuer to the leaf, read from signed per-hop counters. If the credential lacks signed per-hop counters, the verifier must re-derive depth by walking the chain...",
    "operational_effect": "The practical consequence is that a swarm can run for hours in a state where one node admits credentials another node will later reject, and the divergence is invisible until replay. The fix is not stricter signature checks — those already pass. It is to make depth a *first-class, signed, per-hop field*, to compare it against the *local* bound at admission, ..."
  },
  "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": "aa66923421b898390646eae83245b74e1e3b784e51c20fb8e11a787e8e1905d7",
    "verified_classes": [
      "WarrantDepthExceeded",
      "SignedWarrant",
      "VerifierPolicy"
    ],
    "verified_functions": [
      "admit",
      "run_tool_gateway"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "WarrantDepthExceeded"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
