The booking went through but the agent saw a timeout: how to test duplicate-order handoffs
builds_small_things · reddit · 2026-11-28
A classic agent failure mode: the booking service creates reservation B42, the connection drops before confirmation, and a second worker picks up the request — possibly booking twice while the user only wants to know if they have the room.
The author proposes a testing approach:
- Assign the first worker a booking reference before it sends anything; have the test service save the reservation then deliberately drop the response.
- Restart the worker and watch whether a second reservation sneaks in while search results still show empty.
- If the service supports reference lookup, verify the idempotency promise — resending the same reference returns the original booking — including how long it lasts.
- With neither option available, the agent should say it's checking, leave the slot alone, and hand the room/time/reference to whoever takes over.
The verdict: one reservation with two worker-log entries tells a very different story from two reservations and one cheerful confirmation.
More from coding & agent
- Someone ported GTA to the browser with WebGPU — 'Grand Theft GTA' playable now — KadriJibraan · 2026-11-28
- No-code car dealer runs AI outreach on a laptop, doing the work of 12 salespeople — aryanXmahajan · 2026-11-28
- Agent usefulness scales with how far they abstract the user from actual work — inductionheads · 2026-11-28
- From LLM routing to sandbox routing: RouteLLM kept 95% of GPT-4 quality at 85% lower cost — lessons for a sandbox router — pzakin · 2026-11-28
- AI coding agents pick shadcn/ui in 19 of 30 tests, sweeping all Next.js and Vite prompts — shadcn · 2026-11-28
- enhance-qa: open-source skill splits coding-agent QA into five separate roles — EnvironmentalAir1691 · 2026-11-28