Make them idempotent with an idempotency key derived from the task and the call, so the same request executed twice produces one effect; this matters when a response is lost after the action succeeded (for example a refund issued but the reply timed out).
The protection must live in the system executing the business operation, not just in the prompt: unique constraints, request deduplication, and status checks before acting.
For irreversible or high-value actions, add human approval, limits, and the ability to undo or compensate.
Loading…