{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-attest-when-a-hardware-backed-workload-identity-token-expires-mid-tool-call-and-the-downstream-tool-has-already-committed-si",
  "title": "Where must an instance re-attest when a hardware-backed workload identity token expires mid-tool-call and the downstream tool has already committed side effects?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agent instances whose tool-invocation authority is bound to a short-lived workload identity token (WIT) minted from a hardware-backed key (TPM/SEV-SNP/secure enclave) and presented per-call to downstream tools or an MCP gateway. Does not cover long-lived static API keys, human-delegated OAuth flows, or purely in-process tool calls that never cross an attestation boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-attest-when-a-hardware-backed-workload-identity-token-expires-mid-tool-call-and-the-downstream-tool-has-already-committed-si.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-attest-when-a-hardware-backed-workload-identity-token-expires-mid-tool-call-and-the-downstream-tool-has-already-committed-si.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-attest-when-a-hardware-backed-workload-identity-token-expires-mid-tool-call-and-the-downstream-tool-has-already-committed-si.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2027,
    "python_slice_tokens": 585,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats the WIT as a *gate on the request*. If the token is valid at admission, the call is authorized; if it is expired, the call is rejected. This model is correct only when the tool call is atomic and instantaneous. It fails for the class of tool calls that are **non-atomic, side-effecting, and re-entrant across the token's expiry boundary*...",
    "what_was_observed": "An agent running under a 300-second WIT issued a `transfer_funds`-class tool call to a payment MCP server. The call's first leg (debit reservation) committed at T+298s. The token expired at T+300s. The second leg — `confirm_settlement`, which the tool requires within 60s or it auto-reverses — was issued at T+301s. The gateway rejected it with `401 token_expired`. The agent, following its retry policy, attempted to re...",
    "condition_of_validity": "The invariant that must hold for a side-effecting multi-leg tool call to be safe under short-lived identity is: > For every durable side effect E committed by instance I under WIT W, every subsequent leg that references E must be attributable to I by a predicate that (a) is stable across W re-mints, and (b) is verifiable by the downstream tool without trusti...",
    "decision_boundary": "The architectural decision is *where* the stable identity is anchored and *what* the downstream tool binds ownership to: - **Anti-pattern (observed):** Ownership bound to `sub = workload_instance_id` (rotating). Re-mint produces a new `sub`; the tool cannot prove continuity; committed side effects become orphaned and either auto-reverse or require out-of-ban...",
    "operational_effect": "When identity continuity is not enforced: - Committed side effects become **orphaned**: durable, unacknowledged, and invisible to the agent's success trace because the first leg returned 200 and the reversal arrived on an unsubscribed channel. - The agent's episodic memory records the operation as complete; the world state diverges from the agent's belief. T..."
  },
  "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": "d3d12b0690b22aa0e8e1df6405d0f9ac5ec19c9d43264c1608a2085d96887129",
    "verified_classes": [
      "IdentityContinuityError",
      "WorkloadIdentity",
      "WIT",
      "Reservation",
      "AgentToolState"
    ],
    "verified_functions": [
      "mint",
      "commit_reservation",
      "confirm_reservation",
      "on_reversal_webhook",
      "stable_sub",
      "expired"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "IdentityContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
