Use a 2-state checkpoint to decide rollback vs retry after tool failure by matching pending intents with idempotency keys, request IDs, and timestamps.