DEV Community

Cover image for The agent asked "Is that correct?" after it had already booked

The agent asked "Is that correct?" after it had already booked

Vinicius Pereira on November 26, 2026

A caller phones a bike shop. Their kid's bike has a flat and they want it fixed as soon as possible. The agent checks the diary, says today is full...
Collapse
 
prpatel05 profile image
Pratik Patel •

This is the clearest example I've seen of why I don't let the prompt own ordering. "Read back and wait for a yes" is a rule about time, and the model doesn't experience turns the way the transcript shows them. It sees one request with the tools available and the slot right there.

What's worked for me is making the tool enforce it: split book_service into hold and commit, and have commit require a confirmation id the harness only mints after a caller turn that answered the read-back. Then booking early isn't a prompt violation, it's a call that fails. The case I'd add to callproof is the "no, it's 0156" path, because an agent that booked early now has to edit or cancel, and that's usually where the duplicate row comes from.

Collapse
 
vinimabreu profile image
Vinicius Pereira •

Added in 0.2.0. The shop now has update_booking and cancel_booking, and a new scenario has the caller give 608 555 0165, then say "No, sorry, I gave you the wrong number. It's 608 555 0156." at the read-back, or right after "you're booked" if the agent skipped the read-back.

Two broken agents prove it gets caught. One books a second row for the corrected number, and the booking check fails it with "2 bookings in the diary for one call". The other says "I'll update that right away" and calls nothing, which fails a new check, no_change_claim_without_tool. I ran that check over the 21 saved gpt-5.4-mini calls and it flags exactly one line: the "I'll update that right away" from the misheard-name call.

An agent that books early and then fixes the row with update_booking passes the booking check and still fails readback, since the diary held a booking nobody had confirmed. That's the part your hold and commit split removes at the source.

The yes check also no longer takes "Yeah, no, it's 0156" or "Yeah, it's 0156" after a 0165 read-back as a confirmation.

Collapse
 
vinimabreu profile image
Vinicius Pereira •

Agreed, the tool is where the order belongs. A prompt rule can only be checked after the call, which is all callproof does. A commit that needs a confirmation id can't run early at all.

Two things I'd add to the mint. Tie the id to what was read back (name, number, slot), so a commit with other args fails. And the hard part moves to deciding that a caller turn answered the read-back. Your own example starts with a yes: "Yeah, no, it's 0156". After your comment I ran that line through callproof's yes check and it counts as a clean yes. The scripted caller never says it, since its corrections start with "No,", so the runs never hit it. An imported Retell call would.

The run has a version of your correction path, with a name instead of a number. In 2 of the 3 misheard-name calls, gpt-5.4-mini booked "Merrick Novak" at turn 6, before any read-back. In one of them the caller said "No, my name is Marek Novak", and the agent said "Got it, Marek Novak. I'll update that right away." No tool call came after it. The test shop has no edit or cancel tool, so there was nothing to call, and the diary kept Merrick. The booking check failed it on the name. The claim check passed, because it only looks for claims that the job is booked.

So that call left one wrong row and a promise, and no duplicate. Your case needs three changes: edit and cancel tools in the shop, so the agent has a real choice; a caller who changes the number at the read-back on purpose, so the path runs whether or not the agent heard right; and a claim check that treats "I'll update that" like "you're booked". The booking check already fails two rows for one call.

Collapse
 
alexshev profile image
Alex Shev •

This is a strong example of why transcript quality is not a substitute for event ordering. The scenario should model confirmation as a state transition that produces a short-lived authorization token, and require book_service to present that token. Then an early booking is rejected by the tool boundary itself, while the harness still preserves the trace that explains the failure.

Collapse
 
vinimabreu profile image
Vinicius Pereira •

With the token, the early book_service comes back with an error instead of a row. So the failure moves to what the agent says next. A model can still tell the caller "you're all set" after that error. callproof's claim check only counts a book_service that returned ok, so that call still fails, and the record keeps the rejected call next to the claim.

I'd drop "short-lived" though. On a phone call a timer is the wrong trigger. A caller can say yes and fix the number a few seconds later, and the timer won't notice. Another can ask what the tune-up costs between the yes and the booking and lose a good confirmation to the clock. I'd end the token on events: a caller turn that changes any value that was read back, or the commit that spends it.

And the side that heard the caller has to mint it. If the model can call a confirm tool, the order is back in its hands. In one of the gpt-5.4-mini calls the agent asked "Is that correct?" and called book_service in that same turn. A confirm tool could have gone into that turn just as easily.

Collapse
 
ascendra_ventures_92c21f2 profile image
Ascendra Ventures •

The detail that makes this so convincing is that the transcript passes review. Read top to bottom, the agent asked, the caller said yes, and the booking was confirmed. Only the turn numbers on the tool call show that the commitment came first and the question came after.

Ascendra Ventures arrived at the same principle while building CleanSync, a tool that keeps Google Drive and Gmail on a server you own. The question that mattered was not storage but what the system is allowed to do without a human. Every sync is rehearsed first, and if it would delete more files than your limit, it stops and shows the list. Anything replaced or deleted goes to a Recovery folder first, and plain-language mail rules suggest before they act. In other words, the irreversible step is held by the tool rather than promised by the prompt, which is close to the hold-and-commit split Pratik describes in the comments.

For the misheard number scenario in 0.2.0, would you count an agent that books and then updates as a pass, or should the harness insist that no booking exists until the corrected read-back is confirmed?

Collapse
 
vinimabreu profile image
Vinicius Pereira •

It fails. The booking check reads the diary at the end of the call, so a row booked with 0165 and then updated to 0156 passes that one. readback is the check that catches it. It takes the first book_service that came back ok and looks for a turn before it that reads back the name and the number the caller ended up with, 608 555 0156, followed by a clean yes. A read-back of 0165 doesn't count, and neither does a read-back of 0156 that comes after the row already exists.

So the only way through 08 is the order the prompt asks for: read back, hear the correction, read back again, get a yes, then book. The three ways to get it wrong still fail different checks, so the report tells them apart: a second row fails booking, "I'll update that" with nothing behind it fails no_change_claim_without_tool, and book-then-update fails only readback. That last one is the least bad, but for a few turns the shop held a booking with a number nobody had confirmed, and that's what the read-back is there to prevent.

Collapse
 
syedfahads profile image
Syed Fahad •

holding TW-1001 for two turns and then asking "is that correct?" is kinda creepy ngl. it's a waiter asking if you want soup after it's already on the table

Collapse
 
vinimabreu profile image
Vinicius Pereira •

Ha, that's the right picture. And the polite question is what hides it: read the transcript alone and the agent sounds careful.

The awkward part is the "no". In one of the misheard-name calls the caller corrected the name after the booking, the agent said "I'll update that right away", and nothing ran, because the shop had no tool that changes a name. The soup went back to the kitchen in words only and stayed on the bill.

Collapse
 
syedfahads profile image
Syed Fahad •

"I'll update that right away" with no tool behind it is the scarier one. a promise the shop can't keep should get stopped the same way a booking is

Thread Thread
 
vinimabreu profile image
Vinicius Pereira •

It is now, at least in the scoring. Since 0.2.0, no_change_claim_without_tool fails a call where, after the booking, the agent says "I've updated the number" and no change tool succeeded in that turn or before it, or says "I'll update that" and none succeeds in that turn or after it.

Stopping it live is the harder half. The "I've updated" kind can be caught before it's spoken, because the tool log for that turn already exists when the text is ready. The "I'll update that" kind can't: it's an honest sentence right up until the call ends without the tool. Live, the most a guard can do there is notice the open promise when the call closes and hand it to a person.