Environments
Development, staging, production and how versions are promoted.
Every project has a promotion path — development → staging → production by default — and every API key belongs to one environment.
What latest means
For a key, latest means the version deployed to its environment. An explicit pin
(?version=3, tag:stable) means the same everywhere.
Publishing and deploying
Publishing creates an immutable version and deploys it to the environments that follow the latest (development, in a new project). The others run what is promoted to them:
- one decision —
POST /decisions/:key/deploymentswithfromor an exactversion(which is also how a rollback is done); - or everything an environment runs —
POST /environments/:key/promote.
A protected environment (production by default) only takes deployments from a project admin. Every deployment is in the audit log, and executions record the environment of the key that made them.
Champion/challenger and shadow
Any deployment can run an experiment against another version of the same decision
(PUT /decisions/:key/deployments/:environment/experiment):
- split — the challenger answers a share of the traffic, with its actions. Give a
routingFieldsuch ascustomer_idand each customer always lands on the same arm. - shadow — everyone gets the champion's answer and the challenger runs on the same input
right after; its result is stored as a
SHADOWexecution and none of its actions are enqueued.
Only callers asking for the live version take part — a pinned version is never routed. Responses
carry meta.variant and the results endpoint reports executions, failures and p95 per arm.