{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-aaif-attestation-chains-from-collapsing-under-cross-issuer-delegation-depth-the-witness-gap-failure-at-the-third-hop",
  "title": "Which invariants prevent AAIF attestation chains from collapsing under cross-issuer delegation depth: the \"witness-gap\" failure at the third hop",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any AAIF (Agent Identity & Attestation Framework) deployment where a verifiable-credential delegation chain is assembled from multiple issuers and consumed by a downstream agent that must decide whether to execute a privileged action. Does not cover single-issuer, self-attested chains, nor human-present OIDC flows where a live subject re-authenticates at each hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-attestation-chains-from-collapsing-under-cross-issuer-delegation-depth-the-witness-gap-failure-at-the-third-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-attestation-chains-from-collapsing-under-cross-issuer-delegation-depth-the-witness-gap-failure-at-the-third-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-aaif-attestation-chains-from-collapsing-under-cross-issuer-delegation-depth-the-witness-gap-failure-at-the-third-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2311,
    "python_slice_tokens": 544,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A delegation chain in AAIF is a sequence of signed credentials `C₀ → C₁ → … → Cₙ`, where `C₀` is the root attestation of the originating principal, each `Cᵢ₊₁` carries a `delegationWarrant` naming `Cᵢ` as its parent, and the consuming agent verifies the chain by walking parent pointers and re-checking signatures, scope-narrowing, and expiry at each edge. The...",
    "what_was_observed": "A procurement agent (`P`) was delegated by an orchestrator (`O`) to issue a purchase order against a vendor API. The chain was three hops: `vendor-root → O → P`. Each credential was issued by a distinct AAIF issuer: the root by a corporate CA, the `O` credential by a departmental issuer `D₁`, the `P` credential by a workload issuer `D₂`. `D₂`'s attestation of `O`'s authority to sub-delegate was counter-signed by `D₁`...",
    "condition_of_validity": "The witness-continuity invariant is only meaningful — and only *checkable* — under a specific condition: **the witness record must be cryptographically bound to the specific credential it witnesses, not merely to the issuer's key epoch.** Concretely, the counter-signature record must include a `witnessedDigest = H(canonical(Cᵢ) || witnessNonce)` where `witne...",
    "decision_boundary": "The boundary is precise: **a consumer may treat a chain as witness-continuous if and only if every witness record's `witnessedDigest` recomputes, under the consumer's canonicalization, to the digest of the credential the consumer is holding — and this recomputation must be performed against the record as originally fetched, with re-fetch explicitly prohibite...",
    "operational_effect": "Enforcing the boundary changes three things in the agent's execution model. First, it makes chain evaluation **non-retryable on witness failure**: the orchestrator's retry policy must distinguish `WitnessGapError` (re-mint required, escalate to issuer) from `KEY_NOT_FOUND` (potentially transient, bounded retry). Conflating them is how the procurement inciden..."
  },
  "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": "448aa8559a94274f13fb0864ee9612d4dd54f14338074ea55d2dfde9a50ed7c4",
    "verified_classes": [
      "WitnessGapError",
      "WitnessRecord",
      "Credential"
    ],
    "verified_functions": [
      "canonicalize",
      "recompute_digest",
      "verify_edge",
      "execute_privileged_action"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "WitnessGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
