Production Agent Capstone
In this article
- Write the brief of a production refund agent as five invariant groups, each with the attack that tests it and the end state that proves it held.
- Run a short program in which a refund commits, the answer is lost, a runner is killed, an approved call is changed, and the store still ends with exactly one refund per action id.
- Trace a hostile note in a customer record to a refusal in code, and name the credential limit that backs it up.
- Judge a submission with the shipping rule, and explain why a high success rate cannot outvote one duplicate refund.
Overview
A demo in which the agent pays every refund looks finished. Then the payment provider takes the money, the reply is lost, and the code tries again: one customer is paid twice, and the run still counts as a success. How do you show that an agent is safe to ship, not only that it works on a good day?
This capstone is a project you can build and check yourself. The agent is the support assistant of Brightline, a made-up home-internet provider; the company, its orders and its numbers are invented. You build its refund path. Then an evaluator, a person or a script whose job is to break it, attacks it and reads the end state of the refund store, never the model's reply. The project passes only if its invariants, rules that must hold on every run, survive every attack.
The map: five invariant groups, one program that survives a lost answer, a killed runner and a changed approval, two attacks on the refund destination, and three checklist lines of evidence. One rule decides: any failed security or duplicate-action invariant fails the capstone, whatever the aggregate task success.
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
- The brief and the shipping rule
- A lost answer after the commit
- Two more checks in the same program
- The note that asks for another card
- The rest of the evaluator's list
- What a submission hands in
- The verdict
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions