Skip to main content

Publishing and environments

Publishing turns your draft into an immutable version. That is what the agent runs from.

Draft and version​

DraftVersion
Does it change?Yes, you edit itNever
Does it run?Only in testsYes, when active
How many?One per agentAs many as you publish

A published version does not change for anything: not by editing, not by credential rotation. If something has to change, you publish a new version.

Publishing​

  1. Save the draft.
  2. Choose the version number, semantic style (1.2.0). It is unique within the agent.
  3. Publish.

Publishing validates the whole definition before creating the version. An invalid definition is refused with the step and the reason. That covers the flow's structure, references between values, each step's configuration, limits against the space's ceilings, and the declared resources.

Activating in an environment​

A version only runs when it is active in an environment.

EnvironmentFor whatMinimum role
developmentTesting for realPeople who build
productionRunning for realPeople who publish

At most one active version per environment. Activating another deactivates the previous one — and the history stays whole.

The full cycle​

Draft → Publish → Activate in development → Test → Promote to production

Going to production is not activating again: it is promoting the same version that ran in development. See Promoting and rolling back.

What changes when you publish again​

Nothing that is already running. Triggers point to an exact active version; publishing a new version does not move them on its own.

When you activate the new version, the previous one stops being active — and that is what makes the schedule start running the new one.

Differences between the environments​

Beyond the required role, triggers behave differently:

In developmentIn production
HTTP addresses are always temporaryAddresses can be permanent
Schedules always expireSchedules are durable

This keeps a forgotten test from still firing months later.

Common errors​

MessageMeaningWhat to do
Version number already usedEach version is unique within the agentChoose the next number
Conflict on saveSomeone else changed the draftReload and reapply your change
Refused because a limit exceeds the ceilingThe agent declares more than the space allowsReduce it, or ask for the ceiling to be reviewed
Refused because a resource is not allowedA tool or address is not allowed in the spaceSee Allowed resources
Refused because there is no service accountAI steps require a service accountSee Service account

Next steps​