Exact Facts and Authoritative State
In this article
- Sort the items of a long session with one test into those that must stay exact and those a summary may carry.
- Say where each exact item's copy lives outside the request, and write a session's own facts to a record when they happen, with their provenance.
- Build each request from that record and check a consequential action against it, never against a summary.
- Run the survival check after a compaction pass and recover a lost value from its source.
Overview
At turn 71 of a support chat (a turn is one customer message and its answer), the customer asks for an $80 refund on order 8841 (all numbers invented). The request the model is about to get, the text it reads for this reply, says only that the refund was approved.
Brightline, an invented home-internet provider, runs this support assistant: a chat assistant on its website that can look up an order, issue a refund up to an approved limit and search help pages, through tools the application runs when the model asks, lookup_order, issue_refund and search_help. The older turns reach the model as a summary written from an earlier summary, "Refund for order 8841 approved", without the $50 limit or the name of M. Lee, who approved it.
Which facts must never be left to a summary, and how does each request still get them exactly? The answer is authoritative state: a record the application treats as correct and keeps outside every request.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What the request at turn 71 carries
- One test for every item
- Where the exact copy lives
- Each request is built from the record
- The survival check
- Common mistakes
- In production
- Sources
- Check yourself, 5 questions