A 'successful' tool call created the order twice: inside the agent retry idempotency trap

Ok_Photo_7449 · reddit · 2026-11-27

A Reddit post dissects a real agent incident: a client-side create call timed out, but the server had already written the order; the agent retried as instructed, and both calls were schema-valid with proper responses — the only anomaly was the record count: 2 orders, 1 intent.

The author notes that common fixes (idempotency keys, dedupe checks, read-before-write) rarely get tested under a real timeout unless you force one — and that's the part worth testing. The post also promotes Norclave, a tool that investigates MCP workflows by checking what actually changed in records.

Key lesson for agent engineers: agent retries + non-idempotent writes = silent data duplication; test idempotency under forced timeouts.

Original post →

More from coding & agent

coding & agent channel →