Tag
A walkthrough of how to test an AI agent's handling of a dropped response during a booking task, focusing on idempotency keys, duplicate reservations, and what evidence a worker needs before safely retrying a failed request.
The paper measures how often recovery after partial execution in code-executing LLM agents harms external state, finding a 24.6% harm rate on AppWorld episodes and showing that repeat-based detection rules miss most harms. It also evaluates idempotency-key approaches and outlines design requirements for safer agent recovery.
A developer describes how their support agent platform handles ambiguous timeouts on refund calls by assigning deterministic action IDs and treating unknown outcomes as 'outcome unknown' rather than 'failed', and asks how to safely detect success when APIs can't distinguish retries from new requests.
A follow-up on running agents on an Android phone to publish TikTok posts via app UI automation, detailing bugs around confirming whether a post actually went live and the need for idempotency keys and treating timeouts as 'unknown'.
An ACM Queue article on fault-tolerant AI agents explains why the agent's code, not the model, must own the idempotency key when retrying tool calls, and flags the risk of duplicated business actions when a response is lost after a successful operation.
Conecto's founders share practical lessons from giving AI agents write access to CRMs, invoices, and calendars, arguing that risky actions should require upfront human approval rather than after-the-fact review. Key patterns include pricing in tool descriptions, idempotency keys for safe retries, approval gates for risky writes, and budget caps as a safety net.
作者提出 agent 状态恢复是当前开发中的一个痛点:虽然 LangGraph 等产品提供状态保存/加载,但开发者仍需自行处理检查点、恢复逻辑和幂等问题,尤其在业务逻辑膨胀和多租户场景下更为突出,并探讨是否值得开发一个框架无关的自动化工具。
An experienced backend/distributed-systems engineer argues that AI agent failures in production usually stem from plumbing issues—non-idempotent tool calls, missing approval steps, uncapped costs, and poor state persistence—rather than model limitations, and shares practical hardening tips.
A detailed engineering walkthrough on making action-taking AI agents production-ready, covering failure modes like duplicate refunds, prompt injection, and runaway tool calls, with a full FastAPI + LangGraph architecture including idempotency, spend caps, human-in-the-loop interrupts, and a policy engine.
Pi officially published a tutorial on building a multi-user Agent on Cloudflare Durable Objects: a single Durable Object maps to one session, state is stored in built-in SQLite, and it supports multiple users sharing a link to chat collaboratively, as well as scheduled wake-up tasks. The tutorial also demonstrates an isolated design for session retrieval, idempotent request handling, and a mechanism for sharing a single alarm across multiple tasks.
LoopX addresses the hard engineering problem of whether a remote side has executed after a tool call timeout in long-horizon agents. It achieves idempotent recovery through stable operation/Job identities, reading back external facts before deciding how to recover, and compositional verification — and has open-sourced this local-first control plane for long-horizon agents.
作者分享了一次因重试导致重复扣费的线上事故,并介绍其正在构建的 FetchSandbox 工具——通过确定性故障注入检查工作流重试时的幂等性是否真正生效。
An empirical study crashing four production AI agent codebases (Cua, Skyvern, Corsair, Inconvo) mid-action and measuring duplicate side effects on retry, finding a shared root cause: none of them records which actions already completed, so retries re-execute work from an empty history.
Armin Ronacher details how Pi Durable enables agent processes to resume from the point of interruption after a crash: persistence is achieved through an "effect sandwich" (intent, execution, result storage) rather than event sourcing, combined with a versioned document store to manage agent application state, supporting deployment to platforms such as Vercel, Cloudflare DO, and E2B.
A practitioner asks how agent frameworks should handle write-tool timeouts, weighing idempotency keys, read-back verification, and human escalation when downstream APIs lack idempotency support.
ArrivalBench introduces an evaluation method that re-executes agent-generated data pipelines under adversarial replay schedules (late, duplicated, out-of-order records) and finds that 7-79% of pipelines certified by single-execution benchmarks are silently wrong when re-run.
A developer updates an open-source FastAPI/Pydantic AI-agent policy-boundary starter with resource-scoped idempotency, audit logging for ALLOW decisions, and independent validation signals, and asks the community what production control to add next.
UndoBench introduces a benchmark that decouples task competence from fault-recovery capability in tool-using AI agents across 36 workflows and 36 fault scenarios in 8 enterprise domains, finding nominal task completion of 83.54% masks conditional recovery success of just 46.72%, with naive retry producing duplicate side effects in 53.33% of trials.
The article explores the distinction between approval and completion states in agent workflows through a simulation test, highlighting the importance of idempotency and proper handling of retries to avoid duplicate actions.
The article discusses a critical automation failure mode where actions succeed but responses time out, leading to duplicates, and advocates for using stable operation IDs and state checks to improve agent evaluation robustness.