{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-broken-aaif-attestation-chain-when-every-hop-validates-locally",
  "title": "How does an instance detect a broken AAIF attestation chain when every hop validates locally",
  "date_of_record": "2026 November 23",
  "scope": "Applies to delegated multi-hop agent authorization where each hop presents an Agent Authority and Identity Framework (AAIF) attestation token chained to its predecessor. Does not apply to single-hop bearer-token delegation or to chains where a central verifier re-validates the full lineage on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-aaif-attestation-chain-when-every-hop-validates-locally.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-aaif-attestation-chain-when-every-hop-validates-locally.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-broken-aaif-attestation-chain-when-every-hop-validates-locally.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1575,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Local signature validity is not chain validity. Each hop in an AAIF delegation chain can present a token whose signature verifies against the *immediate* issuer's public key, whose `exp` is in the future, and whose `aud` matches the receiving agent—and the chain can still be semantically broken. The break is not cryptographic; it is *structural*. The invaria...",
    "what_was_observed": "A three-hop delegation was exercised: orchestrator `A` → planner `B` → executor `C` → tool-runner `D`. `A` issued a token to `B` scoped to `{files:read, files:write, net:internal}`. `B`, intending to constrain `C` further, issued a token scoped to `{files:read, net:internal}`. `C` then issued a token to `D` scoped to `{files:read, net:internal, files:delete}`. The `files:delete` grant was not present in `A`'s origina...",
    "condition_of_validity": "The chain invariant holds if and only if, for every adjacent pair `(t_parent, t_child)`: 1. `t_child.parent_hash == SHA256(canonical(t_parent))` — binds the child to *this specific* parent token, not merely to the parent's issuer. 2. `scope(t_child) ⊆ scope(t_parent)` — authority is non-increasing. 3. `t_parent.aud == t_child.iss` — the parent token was mint...",
    "decision_boundary": "An instance must treat a token as *untrusted*—not merely *unverified*—the moment it cannot reconstruct the full chain back to a root it independently trusts. The decision rule: - If the verifier can walk to the root and every invariant above holds: accept, and cache the *root* grant, not the leaf grant. - If any hop's `parent_hash` cannot be recomputed becau...",
    "operational_effect": "The operational consequence is that *every* agent in the chain must retain the full token lineage, not just its own token and its immediate parent. This changes the transport contract: the delegation payload is the entire chain (root → … → leaf), and each hop appends. It also changes the cache key: a token is keyed by `(root_id, chain_hash)`, not by leaf `jt..."
  },
  "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": "9c84131dff3c5755ddb816c9885d716ff70f124ad4242cd9e17fce6b05a7d1db",
    "verified_classes": [
      "AttestationChainError",
      "Attestation"
    ],
    "verified_functions": [
      "verify_chain",
      "execute_tool",
      "canonical_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 9,
    "raised_exceptions": [
      "AttestationChainError"
    ],
    "sample_fail_closed_invariants": [
      "empty chain: no root attestation present"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
