How much history should the agent see?
What we tried. Six memory policies on the cheapest model: none, the previous invoice, the previous two, the previous invoice as text only, and 'one, then two if flagged'. Scored on the same 120 invoices.
What we found. One earlier invoice cut repeat mistakes from 47% to 16%. Two earlier invoices added cost without adding accuracy: the model began copying line items from them. Retrying with two only when the first answer looked doubtful got the most invoices fully right.
Decision. Adopted: memory, at most two invoices, with checks rather than more context.
| Policy | Invoices with every field right | Repeat mistakes | Cost per 1,000 |
|---|---|---|---|
| No memory | 28% | 47% | $0.98 |
| Previous invoice | 66% | 16% | $1.33 |
| Previous two | 70% | 14% | $1.62 |
| One, retry with two if flagged | 77% | 21% | $1.85 |
| Previous invoice, text only | 55% | 20% | $1.08 |


