Your agent just retried. Did it do the work twice?
Summary
作者分享了一次因重试导致重复扣费的线上事故,并介绍其正在构建的 FetchSandbox 工具——通过确定性故障注入检查工作流重试时的幂等性是否真正生效。
Similar Articles
Testing agent workflows without connecting real accounts
开发者介绍 FetchSandbox——一个用于安全测试 AI agent 构建的工作流的沙箱环境,无需连接真实账户即可验证状态、回放 webhook 并捕获重复扣费/重复邮件等问题。
@huangruiteng: Long-horizon agents have a tough engineering problem: the tool call timed out, but did the remote side actually execute? For example, submitting a GPU experiment, the client disconnects, and the remote may have already started. Submitting again directly could end up paying twice. LoopX preserves stable operation / Job i...
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.
Agent wrote the Stripe handler, tests passed, I got double-charged customers on day 2
A developer describes how an AI agent wrote a Stripe handler that double-provisioned customers on webhook retries, and how using FetchSandbox MCP to simulate retries helped catch and fix the idempotency bug.
Property Testing with Agent Swarms
作者展示了如何用 AI 编码代理(agent swarms)构建属性测试基础设施,在不消耗额外 token 的情况下自动发现真实开源项目中的正确性 bug,仅在 Codex、uv、Prometheus、Router 等项目中就发现了数十个已合并修复的缺陷。
@svpino: I built a simple agent to handle refunds. It didn't work. Let me show you how I messed this up and how I fixed it.
作者分享了自己构建退款客服Agent的失败教训:单一Agent架构中,工具返回的仓库备注(prompt injection风险)覆盖了用户的明确指令导致错误退款。修复方案是将职责拆分为Intake、Order Checker和Refund Processor三个隔离的Agent,体现多Agent架构中的职责分离原则。