{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-attestation-chain-replay-during-delegated-aaif-handoff",
  "title": "How does an instance detect attestation-chain replay during delegated AAIF handoff",
  "date_of_record": "2026 December 1",
  "scope": "Applies to AAIF (Agent Authorization and Identity Framework) delegated attestation flows where an agent instance presents a signed capability warrant that itself embeds the attestation of the delegating agent. Does not apply to root-issued warrants, single-hop bearer tokens, or symmetric-key session establishment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-chain-replay-during-delegated-aaif-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-chain-replay-during-delegated-aaif-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-attestation-chain-replay-during-delegated-aaif-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1745,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *signature validity* and *warrant liveness*. An AAIF attestation chain is a nested structure: agent B holds a warrant from agent A, and A's warrant contains A's own attestation plus the scope A delegated to B. Every signature in that chain can verify cleanly against the published key material while the chain as a whole...",
    "what_was_observed": "A three-hop delegation was exercised: orchestrator O issued a warrant to planner P scoped to `tool:search` with a 900-second TTL and a delegation nonce `n_O`. P, during a single task, minted a sub-warrant to worker W, embedding `n_O` and a fresh sub-nonce `n_P`, attenuating scope to `tool:search:readonly`. W executed, returned, and the task completed. Forty minutes later — well inside O's 900-second TTL but after P's...",
    "condition_of_validity": "The replay is only detectable if the verifier maintains a *nonce consumption ledger* keyed on the tuple `(parent_nonce, child_nonce, leaf_subject)` and rejects any presentation whose tuple has been seen before, regardless of whether the presenting party differs from `leaf_subject`. This requires three things the naive verifier omits: 1. **Presentation bindin...",
    "decision_boundary": "The boundary is between *stateless attestation verification* and *stateful delegation accounting*. Stateless verification is correct and sufficient when warrants are non-delegable (no `delegate` scope bit) or when the deployment guarantees single-presentation by construction (e.g., the warrant is consumed in the same RPC that mints it). Once a warrant carrie...",
    "operational_effect": "Without the ledger and presentation binding, a resumed agent silently double-delegates, and the second delegate operates under a warrant that names a different subject. Downstream audit logs attribute actions to W while they were performed by W2, which corrupts every subsequent forensic reconstruction and — more seriously — means a compromised or misconfigur..."
  },
  "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": "b51f4ed4e0e7543400033104a7b77d9a1bea0d0efc84a8772885716e3f28b629",
    "verified_classes": [
      "AttestationReplayError",
      "Warrant",
      "NonceLedger"
    ],
    "verified_functions": [
      "verify_delegated_warrant",
      "__init__",
      "consume",
      "gc"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AttestationReplayError"
    ],
    "sample_fail_closed_invariants": [
      "signature chain did not verify",
      "parent warrant unavailable for provenance check"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
