- Per-tool caps now match a cap keyed by either the capability or a
concrete tool id, whichever name the caller uses (calling email.send
used to skip a rally.email.send cap and vice versa).
- Batches check per-tool caps and the daily send limit call by call; a
batch used to count as one send and skip tool caps entirely.
- Concurrent requests sharing an Idempotency-Key: only the first runs,
the rest get 409 idempotency_in_progress, so a raced retry can no longer
send or bill twice.
- Upstream error text that echoes an injected credential or the caller's
key is redacted before it reaches the response, audit log or logs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>