Set an agent's pre-promotion regression gate settings
Configure this agent’s pre-promotion regression gate: pin the golden sets to run, set latency/pass-rate regression tolerances, and optionally enforce an absolute minimum pass rate (0..1). Once enabled, every promote or prompt-rollback first replays the pinned suite against the candidate version and is refused (422 with the gate report) on a regression beyond tolerance. Owner/admin role required; the change is audit-logged. Set enabled false to revert to un-gated promotion. 404 when the agent does not exist.
Authorizations
Dashboard JWT token from Clerk
Headers
Stripe-style idempotency token. Pass a stable, client-generated value (1-255 chars) to dedupe retries on transient timeouts. The same key+credential+path replays the original response for 24h on 2xx (5min on 4xx, 30s on 5xx). Returns 409 if a concurrent request with the same key is already in flight; replayed responses include the Idempotency-Replay: true response header.
1 - 255Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false Path Parameters
Body
Master toggle — when false the gate is skipped entirely.
Pinned regression corpus — existing golden-set ids (1..25 entries).
1 - 200Fractional P95 latency regression tolerance (e.g. 0.2 = 20% slower).
0 <= x <= 10Fractional pass-rate regression tolerance vs the prior run.
0 <= x <= 1Absolute minimum pooled pass rate (0..1) a candidate must clear, even on the first run.
0 <= x <= 1