Skip to content
ArgusDocs
MenuVersions, labels and releases

Versions, labels and releases

Versions never change. Labels point at versions, and moving a label is how you release.

View as Markdown

On this page

Versions are immutable

Every change to an agent creates a new, numbered version with a content hash. A version is never edited. Saving a definition that is identical to the latest version creates nothing and returns the existing version. This means a session pinned to version 12 behaves the same tomorrow as today, and a rollback is always to something that really ran before.

Labels are pointers

A label is a movable pointer to a version. The ones Argus gives meaning to:

Label Use
production What apps run. Gated by evals by default.
canary A trial release that takes a share of new production sessions (traffic_percent).
draft The Studio's working label. Every save moves it to the new version.
dev and custom labels Yours to name.

Apps start sessions on the production label (others are for members and admins), so shipping is moving a pointer, not redeploying code. A session records the version it actually ran.

Every move is recorded

Moving a label records an event with the actor and the reason (the API returns each actor with a kind of person, app, agent or system and a name; for a person the name is their display name while they are in the project, and empty after they leave), and the label move and gate override are recorded with them. (The project audit list that reads these back is planned; its endpoint answers 501 today.) Nothing about a release is implied.

The eval gate

Moving a gated label (by default production) is refused with 422 eval-gate-failed unless the candidate version's latest completed eval run passes:

  • its pass rate meets the threshold, and
  • it does not fall more than the allowed regression below the latest run of the version production holds now (the default allowance is zero).

A version with no completed run cannot be shipped, and the refusal names the missing run. See Evals.

Canary

A label other than production can take a share of new production sessions. The share is 0 to 100 percent, 0 stops the split, and the Studio offers 5 to 50 percent. Production keeps its version while the canary runs. You decide when to promote the canary version to production or set its share back to 0.

Rollback

Moving production back to a version it held before is a rollback. That version must still pass its own latest eval run, but it is not compared with the version being rolled back, so a rollback is possible even when the newer version scored higher on some measure. The Studio offers a rollback for 24 hours after a production move.

Overriding the gate

A project admin can move a gated label past a failed gate by giving a reason. The reason is recorded in the move's event. In the app an override asks you to confirm your sign-in again first, so a stale session cannot ship past the gate.