Agents, versions and environments

The ideas you need before you ship an agent: draft, version, environment, deployment and promotion.

You build an agent once and run it in several places. Robotelos keeps those two things apart, so that you can change an agent safely while people are using it.

Agent lifecycle An agent moves from draft to a numbered version, then to dev, optionally staging, and production. Production is reached only by promotion. Draftedit freely Versionfrozen, numbered devtry it OPTIONALstgrehearse prodreal users publish deploy promote promote Production is only reached by promotion, which can ask for evidence and an approval. Rollback returns an environment to its previous version.
An agent moves from a draft to a numbered version, then to dev, staging (optional) and production.

Draft and version

Every agent has one draft: the agent as you are editing it now. You can change the draft as often as you like. Nothing a user talks to ever runs from the draft.

When you are happy with the draft you publish a version. A version is a frozen copy, numbered 1, 2, 3 and so on. It never changes. If you publish again without changing anything, you get the same version back, so nothing piles up by accident.

Why this matters: when someone reports a problem, you can say exactly which version they talked to, and you can run that same version again tomorrow.

If two people edit the draft at the same time, the second save is refused instead of silently overwriting the first. Read the draft again, apply your change, save again.

Previews: testing a draft

Nothing runs from a draft, but you can test it. A preview is a numbered, frozen test build of the draft that runs in dev only. It never becomes the agent’s current version and cannot go to staging, production or a promotion. When you publish the same draft afterwards, the published version is the very release you tested.

Environments

An environment is a place where a version runs for a purpose:

EnvironmentUse it to
devTry a new version quickly.
stgRehearse before production. It is optional; your account can turn it on or off.
prodServe real users.

An environment runs one version of an agent at a time.

Deployment

An AgentRollout puts a version into dev or stg. You can apply any version you like and go back to an older one whenever you want. Each change is a new generation of the rollout and is kept, so you can see who put what where and when.

A rollout is not finished when you apply it. It is finished when the place that runs the agent has received the version, applied it and reports it ready. Until then Robotelos shows it as in progress, and it tells you which step it is waiting on.

Promotion

You apply a rollout to production the same way as to any environment, but production is gated: the apply does not change anything yet. Robotelos records a promotion, a request to move a version that already runs in the previous environment. It moves the same version, not a rebuilt copy, so what you tested is what goes live.

A promotion can ask for conditions first:

  • Evidence: a recorded check, for example “regression suite passed in dev”.
  • Approval: another person says yes or no, with a comment.

A promotion that is approved is not yet done. It is done when production reports the version ready.

Which word, which command

There is one way to change what runs, and one way to read it.

You want toYou doWhat exists afterwards
Put a version into dev or stgrobotelos apply -f an AgentRolloutThe rollout, with a new generation
Put a version into prodrobotelos apply -f the production AgentRollout; it waits as a promotion until someone approvesA promotion, then a new generation of the production rollout
Go back, or stop servingrobotelos apply -f the rollout with another version, or noneA new generation of the same rollout
Read one release, with its contentrobotelos get release agent/NNothing changes
See how it is goingrobotelos get rollout agent/environmentNothing changes
See what happened beforerobotelos get revisions agent/environmentNothing changes
Decide on a promotionrobotelos approve or robotelos reject promotion IDA recorded decision

A rollout is the state: what an environment should run and how far the fleets have got. A promotion is a record Robotelos creates when you apply a rollout to a gated environment such as production: the request, its evidence and its approver. You never write one. Robotelos no longer has separate deploy and promote commands, so there is nothing to confuse.

Rollback and revoke

  • Rollback is applying the rollout with the version it ran before. Use it when a new version misbehaves.
  • Stopping is applying the rollout with no version, so the environment stops serving the agent altogether.

Both are new generations of the same rollout, so the history stays complete.

Who runs it: fleets

Robotelos’s control plane decides what should run. A fleet is the group of machines (a Kubernetes cluster) that actually runs it. Each fleet has a small helper, the fleet agent, that asks the control plane what it should run, applies it, and reports back. A company usually has one fleet for non-production (dev and stg) and one for production.

This is why the control plane never needs access into your clusters, and why a cluster that loses its connection keeps serving what it already has and catches up when the connection returns. If you operate fleets, see Operate fleets.

Accounts

Everything above happens inside an account: your team’s workspace. You belong to accounts with a role, and the role decides what you may do. Platform administrators manage fleets across accounts.

Next steps