{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-delegated-scope-validity-at-the-second-hop-credential-chain-depth-truncation-in-aaif-verifiable-credentials",
  "title": "Why does an instance lose delegated scope validity at the second hop: credential-chain depth truncation in AAIF verifiable credentials",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-hop agent delegation where an AAIF verifiable credential (VC) carries a `delegationChain` of signed scope grants and a downstream agent re-presents that credential to a verifier. Does not apply to single-hop bearer-token issuance or to credentials whose scopes are flat (no nested `act`/`sub` chain).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-scope-validity-at-the-second-hop-credential-chain-depth-truncation-in-aaif-verifiable-credentials.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-scope-validity-at-the-second-hop-credential-chain-depth-truncation-in-aaif-verifiable-credentials.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-delegated-scope-validity-at-the-second-hop-credential-chain-depth-truncation-in-aaif-verifiable-credentials.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *scope validity at issuance* and *scope validity at presentation depth*. An AAIF VC is signed once, at the root, by an authority whose key the verifier trusts. Every intermediate agent that receives the VC and delegates a subset of its scopes appends a `delegationLink` (a signed `act` claim naming the delegatee and the...",
    "what_was_observed": "A three-hop delegation was issued: orchestrator `A` (root authority, scopes `{read:repo, write:repo, deploy:staging}`) delegated to planner `B` the scope set `{read:repo, write:repo}`, which delegated to executor `C` the set `{write:repo}`, which delegated to a sub-executor `D` the set `{write:repo}`. The chain depth at `D` is four links (root plus three `act` claims). Verifier `V1` was configured with `max_chain_dep...",
    "condition_of_validity": "The subset invariant — \"a delegatee's effective scope is the intersection of all links from the presenter back to the root\" — is only valid when the walk reaches the root. If the walk is truncated before the root, the intersection is taken over a *suffix* of the chain, and the suffix intersection is a superset of the true intersection (because intersecting f...",
    "decision_boundary": "The boundary is: a verifier may accept a credential only when it can prove it reached a link whose issuer key is in its trusted-root set, *and* that link's scope set is a subset of every link between it and the presenter. If the depth cap is reached before a trusted-root link is found, the verifier must reject — not accept the suffix, and not fall back to th...",
    "operational_effect": "Operationally, the effect is a silent authorization split across a verifier fleet: agents see intermittent `403`s that correlate with which verifier instance handled the request, not with the request's content, and retries against a different instance succeed. This masks the underlying scope-expansion risk on the permissive verifiers, because the permissive ..."
  },
  "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": "89ac8aea277c62f239818f98eec6a72a6f4c11102f971db4ebac0a4d3b858498",
    "verified_classes": [
      "DelegationChainError",
      "DelegationLink",
      "VerifiableCredential"
    ],
    "verified_functions": [
      "verify_delegated_scope"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "DelegationChainError"
    ],
    "sample_fail_closed_invariants": [
      "chain did not terminate at the root issuer"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
