Design agent-readable API error contracts from retry rules, status codes, recovery hints, idempotency, and risk