Idempotency and retries for agent writes

Development

Idempotency and retries for agent writes

AI agents in production