{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-aaif-delegation-chain-verification-as-a-stateful-reachability-problem-rather-than-a-per-hop-signature-che",
  "title": "Under what conditions must an instance treat AAIF delegation-chain verification as a stateful reachability problem rather than a per-hop signature check",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent runtime that accepts AAIF (Agent Authorization Interchange Format) delegation tokens and then opens MCP tool sessions under the delegated scope; does not apply to single-hop bearer tokens with no `act`/`may_act` chain, nor to purely offline signature validation where no tool invocation follows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-aaif-delegation-chain-verification-as-a-stateful-reachability-problem-rather-than-a-per-hop-signature-che.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-aaif-delegation-chain-verification-as-a-stateful-reachability-problem-rather-than-a-per-hop-signature-che.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-aaif-delegation-chain-verification-as-a-stateful-reachability-problem-rather-than-a-per-hop-signature-che.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1867,
    "python_slice_tokens": 472,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A per-hop signature check answers: *\"Was this token minted by a principal whose key I trust, and is it unexpired?\"* A stateful reachability check answers: *\"Does there exist a path from the root principal through the chain of `act` claims to *this* instance, such that every hop's granted scope is a subset of its parent's, and the union of scopes actually exe...",
    "what_was_observed": "In a reproduction with a three-hop chain — root `R` (scope `{fs:read, fs:write, net:fetch}`) → agent `A` (delegated `{fs:read, net:fetch}`) → agent `B` (delegated `{fs:read}`) — the runtime accepted a fourth token `B → C` carrying `{fs:read, net:fetch}`. The `B → C` token's signature was valid (minted by `B`'s key), unexpired, and its `may_act` claim named `C`. The per-hop validator passed it because it only checked ...",
    "condition_of_validity": "The per-hop check is sound **iff** all of the following hold simultaneously: 1. **Single chain per session.** The MCP session is bound to exactly one AAIF chain, and no parallel delegation rooted at any node of that chain is admitted into the same session's authorization context. 2. **`may_act` is the delegation ceiling.** Every hop validates `child.scope ⊆ ...",
    "decision_boundary": "The boundary between \"per-hop is sufficient\" and \"must model-check\" is crossed at the moment **any of these is true**: - The runtime admits more than one token whose `iss` is a non-root principal into the same session context (parallel delegation). - Any hop's `may_act` differs from its `scope` (delegation ceiling in play). - The MCP tool server performs its...",
    "operational_effect": "The operational consequence is that AAIF chain validation must be implemented as a **stateful reachability query over a delegation graph**, not a stateless fold over a token list. Concretely: the runtime must (a) materialize the composed subject as the intersection of `scope` and `may_act` along the unique root-to-leaf path, (b) reject any session where the ..."
  },
  "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": "4ee7516ab7112f97a4e6dc5aa38c57fe6fbfddb143d3b354940b9f63382b834f",
    "verified_classes": [
      "AAIFChainViolation",
      "AAIFToken"
    ],
    "verified_functions": [
      "compose_chain",
      "open_mcp_session"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 9,
    "raised_exceptions": [
      "AAIFChainViolation"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
