Week two: our agent cited a deleted refund policy
Eleven days after launch, our support agent quoted a deleted 60-day refund policy. What broke, why the eval passed it, and the freshness fix.
Eleven days after launch, a support agent we built told a customer they could get a refund within 60 days. The policy had been 30 days for over a week. The page the agent cited had been deleted. Here is what broke, why our eval did not catch it, and what we changed.
What happened
The client is a 60-person subscription business. We call them Client C. The agent handles first response on roughly 1,100 tickets a month and hands the rest to a support team of four.
On day 3 after launch, Client C’s finance lead shortened the refund window from 60 days to 30. Someone published a new policy page and deleted the old one. Nobody told us, and nobody should have needed to. The agent was meant to pick that up on its own.
It did not. From day 3 to day 11 the agent answered 14 refund questions. Nine cited the deleted page and quoted 60 days. Three of those customers then asked for refunds between day 38 and day 55 of their billing cycle. Client C honoured two of them to keep goodwill. That cost $412. The third was refused, and that customer posted the agent’s answer in a public review.
The support lead found it on day 11, when the third customer replied with a screenshot.
Why the index kept a dead page
Our sync job ran every 24 hours. It pulled pages that were new or modified since the last run and re-embedded them. It never asked which pages no longer existed.
So the new 30-day page was indexed on day 4. The old 60-day page stayed in the vector store next to it. Both matched “can I get a refund.” The old page was longer and used the word “refund” eleven times, so it ranked first in 9 of 14 retrievals.
This is a plain bug. A sync that handles only additions and edits is half a sync.
Why the eval missed it
We ran the fifty-ticket suite on day 0 and scored 44 of 50 (88%). The refund case passed. It passed again when we re-ran the suite on day 12, after the incident, with the stale page still in the index.
The case was refund_within_window. Expected outcome: answer+cite. The agent answered and cited a page. Our rubric checked that a citation existed and that a reviewer found the answer consistent with the cited page. It was consistent. The cited page said 60 days and the answer said 60 days.
The rubric never asked whether the cited page was still live. The reviewer checked the answer against the source the agent picked, not against the source of truth. We had tested faithfulness to a document, not correctness against the business.
The fix
We made three changes. All three shipped within four days.
Sync reconciles deletes
The sync job now pulls the full list of page IDs from the help centre every six hours and compares it to the index. Any ID missing from the source is removed from the index in the same run. A deleted page now lives in the index for at most six hours, not indefinitely.
Citations checked before sending
Before the agent sends any answer, every cited page ID is checked against the live source list. If a cited page is gone, or its content hash differs from the indexed version, the answer is held and the ticket goes to a person with a note explaining why. This check adds about 40 ms to each response. In its first month it held 6 answers out of roughly 1,100 tickets.
The rubric checks freshness
An answer+cite case now passes only if the cited page exists at scoring time and its current text supports the answer. We also added four freshness cases. Each one runs against an index where we have deliberately deleted or edited a page, and checks that the agent does not cite the old version.
Here is the day 12 run re-scored under the new rubric, then the run after the fix:
run_id case_id expected got result
ev-0712-008 refund_within_window answer+cite answer+stale_cite FAIL
ev-0712-051 fresh_deleted_page escalate:support answer+stale_cite FAIL
ev-0712-052 fresh_edited_page answer+cite answer+cite PASS
ev-0716-008 refund_within_window answer+cite answer+cite PASS
ev-0716-051 fresh_deleted_page escalate:support escalate:support PASS
ev-0716-052 fresh_edited_page answer+cite answer+cite PASS
Under the new rubric, 42 of the original 50 cases passed and 1 of the 4 freshness cases passed: 43 of 54. After the fix the run scored 46 of 50 and 4 of 4: 50 of 54, or 93%. The suite is now 54 cases, so scores after this date are not directly comparable with the 88% at launch. We publish both numbers with the suite size next to them.
What it cost
Direct cost to Client C: $412 in refunds outside policy and one public review. Our cost: about 22 hours of unbilled engineering across four days. The six-hourly sync makes more calls to the help centre API, roughly 120 a day instead of 1. That is well inside their plan limit.
What we took from it
A source can change without anyone telling you. Design for that. Every page an agent cites can disappear between indexing and answering. The check belongs in two places: at answer time, so customers never see stale content, and in the eval, so we can show it holds.
Delete reconciliation and citation checks are now built into every support agent from day one, with the four freshness cases added to the eval suite. Both are line items in the Support Agent Build.