{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-attests-mid-tool-call-and-the-aaif-warrant-chain-forks",
  "title": "What happens when an instance re-attests mid-tool-call and the AAIF warrant chain forks",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that obtain short-lived workload credentials from an Agent Authorization and Identity Framework (AAIF) issuer and present a warrant chain (delegation proof from principal → orchestrator → sub-agent) to downstream resource servers on every tool call. Does not apply to long-lived service-account credentials, mTLS-only mutual auth without delegation warrants, or single-hop agents that never re-attest during an active turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-mid-tool-call-and-the-aaif-warrant-chain-forks.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-mid-tool-call-and-the-aaif-warrant-chain-forks.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-attests-mid-tool-call-and-the-aaif-warrant-chain-forks.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *identity freshness* and *warrant continuity*. AAIF workload credentials are designed to be short-lived and re-attestable: the agent periodically exchanges its platform attestation (e.g., a TPM quote, an enclave measurement, a signed runtime manifest) for a fresh credential with a new `jti`, new `exp`, and a re-signed ...",
    "what_was_observed": "A three-hop agent executed a `transfer_funds` tool call against a resource server enforcing AAIF warrant checks. Trace, condensed: 1. **t0** — Orchestrator holds warrant chain `W1 = [P→O (epoch 41), O→A1 (scope: transfer ≤ $500)]`. Sub-agent A1 issues an intent `I = transfer($480)`, signs it with the credential bound to `W1`, and begins the call. 2. **t1** — A1's credential hits its 90s soft-expiry mid-flight (the to...",
    "condition_of_validity": "The fork is only possible when all of the following hold simultaneously: - The runtime supports **in-turn re-attestation** (background refresh, not turn-boundary only). - The resource server verifies the **presented credential** and the **intent signature** as two independent checks, rather than requiring the intent to be signed by the same `jti` and chain t...",
    "decision_boundary": "The architectural invariant required is **warrant pinning with intent binding**: > For every in-flight intent, the credential presented at verification MUST be the credential (same `jti`, same chain hash) that signed the intent. Re-attestation during an in-flight turn MUST NOT mutate the credential bound to outstanding intents; it may only stage a successor ...",
    "operational_effect": "Without the invariant, the observable effect is an **authorization continuity gap** that is invisible to per-request validation and only surfaces at audit reconciliation or, worse, at incident review after an out-of-policy action. The agent's own reasoning loop does not notice: it sees a 200, records success, and continues. The resource server does not notic..."
  },
  "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": "9c1f38a0e7061bbbf0b894e1373e6621c30decebcb56110799cffdd1d6c967a8",
    "verified_classes": [
      "WarrantForkError",
      "WarrantChain",
      "Intent",
      "AgentRuntime"
    ],
    "verified_functions": [
      "verify_call",
      "chain_hash",
      "issue_intent",
      "re_attest",
      "present"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "WarrantForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
