How the product learns
What should the product remember to help with the next review?
Introduction
The same page appears on the list for a second week. Last time, the editor deferred the update until the campaign ended.
She now needs to decide whether that reason still holds. To help, the product must find the previous decision, show when it was made, and let her change it.
What belongs in context
Context is the information the agent has for the current task. It can include the goal, data for the period, customer rules, and relevant previous decisions. Context engineering is the work of selecting and maintaining that information for the job. Anthropic Engineering, 2025
One record that changes the review
For the deferred page, save the decision, the reason, and the date to revisit it. When the page comes up again, supply the current record and show its source. After the campaign ends, the editor can close or correct the record. Keep information you have permission to use for a concrete purpose.
Check what improves
Feedback connects a recommendation to the action and the outcome that followed. Record them separately. Approval records the editor’s choice. It can help you check the next recommendation. A change in visits after publication can have several causes, including seasonality or a campaign.
A test with and without history
Pick previous cases where you know the context and the decision. Compare recommendations with and without the past records. Include a case where the reason for deferring has expired. Check whether the system uses relevant information and brings up fewer settled questions. Keep some cases separate to verify the improvement.
Exercise
- Pick a recurring decision in your project. Note what previous information could change it.
- Record a sample with a date, the reason for the decision, and the outcome that followed. Specify when the record expires and who can correct it.
- Compare another run with and without the record. Check whether the difference helps with the customer’s actual decision.
Questions to consider
- What would be useful to learn from your first customer?
- When should a previous decision drop out of context?
- What observation would show that history improves the next result?
Once the review delivers recurring value, you have to decide what to charge for. Chapter 07 looks at three ways to do it.
Sources and further reading
- Anthropic Engineering, 2025. Selecting, retrieving, and maintaining information for the current task. Effective context engineering for AI agents