Agent Harness Tutorial · End to end · Zoom level 3
How we take care of it: idempotency key
idempotency key catches the same write twice.
How we took care of it.
- The claims system's own answered table is keyed by (policyholder, key).
- A repeat gets the first answer: no second claim, no second payout.
| It reads | the key in the MCP call's _meta (aoas/idempotency-key) |
| Kind | rule |
| Provided by | claims system |
| If it fails | the first answer again |
| Where in the code | claims_system answered table |
| Runs at | 5 · The tool itself |
Real exampleWorks even if our own ledger were lost.
More on this: Exactly once.