{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-presents-a-valid-aaif-attestation-whose-delegation-chain-exceeds-the-verifier-s-re-derivation-depth",
  "title": "What happens when an instance presents a valid AAIF attestation whose delegation chain exceeds the verifier's re-derivation depth",
  "date_of_record": "2026 November 24",
  "scope": "Applies to delegated-authorization flows where an agent instance presents an Agent Identity Framework (AAIF) attestation token that carries a delegation chain (a sequence of signed `act`/`sub` hops). Does not apply to single-hop bearer-token authorization, nor to attestations validated by a trusted introspection endpoint that returns a flat yes/no.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-aaif-attestation-whose-delegation-chain-exceeds-the-verifier-s-re-derivation-depth.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-aaif-attestation-whose-delegation-chain-exceeds-the-verifier-s-re-derivation-depth.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-presents-a-valid-aaif-attestation-whose-delegation-chain-exceeds-the-verifier-s-re-derivation-depth.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1664,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An AAIF attestation is not a credential; it is a *proof obligation*. The verifier does not merely check a signature over a claim set — it re-derives the delegation chain by walking each hop, confirming that every intermediate principal actually held the authority it purported to pass down, and that the terminal scope is a subset of the root scope. The critic...",
    "what_was_observed": "A tool-runner agent (`depth 4` in a four-hop chain: root-issuer → orchestrator → planner → tool-runner) presented an attestation to a downstream resource server. The resource server's verifier was configured with `max_rederivation_depth = 3`. The chain had four `act` claims. The verifier's walk logic was: The slice `chain[:3]` silently dropped the terminal hop and the root. Two failures compounded: 1. The terminal ho...",
    "condition_of_validity": "The guardrail holds only under all of the following: - The verifier's `max_rederivation_depth` is `>= len(chain)` **or** the verifier returns `INDETERMINATE` (never `VALID`) when `len(chain) > max_rederivation_depth`. - Scope-subset checks are performed against the **root issuer's** granted scope, not against the first hop in the slice. Intermediate scopes a...",
    "decision_boundary": "The boundary is between **re-derivation** and **attestation-of-re-derivation**. Two architecturally distinct paths: - **Path A (bounded verifier):** the resource server re-derives the full chain in-process. Sound only if `max_rederivation_depth` is set to the maximum chain length the deployment can produce, and that maximum is enforced at issuance (issuers r...",
    "operational_effect": "After remediation, the resource server's verifier was changed to (a) reject any attestation where declared chain length ≠ observed hop count, (b) return `INDETERMINATE` with a `unverified_hops` count whenever `len(chain) > max_rederivation_depth`, and (c) compare terminal scope against the root issuer's scope, not the first hop. The immediate effect: a class..."
  },
  "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": "5b7203e0c8c4f47b1a05afcd7a8ad4f13b026c5e53643ceaaabaeb0637e80324",
    "verified_classes": [
      "TruncatedRederivationError"
    ],
    "verified_functions": [
      "verify_aaif_chain"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TruncatedRederivationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
