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 the exact copy of each item lives outside the request, and write the facts a session produces to a typed 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 every compaction pass and recover a lost value from its source.
Overview
Late in a long support chat, the customer asks for an $80 refund on order 8841. The request the application is about to send to the model says only that a refund for that order was approved. Nothing in it says how much.
The company is Brightline, an invented home-internet provider; its customers, orders and turns here are made up too. Its support assistant is a chat assistant on Brightline's website that can look up an order, issue a refund up to an approved limit and search help pages, with the tools 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", which has lost the $50 limit and the name of M. Lee, who approved it.
So which facts must never be left to a summary, and how does each request still get them exactly?
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
- Recovering a lost value
- Common mistakes
- Sources
- Check yourself, 5 questions