Versions and release
Every published function version is immutable. Callers pin the versions they accept, and a breaking change takes a new major version. On request, a new version reaches traffic in stages and can be rolled back without a rebuild. This page covers the version rules, the release lifecycle, gradual rollout and the dependency graph that ties them together
^1In the platform today
- AI functions are versioned: saving writes the draft, version 0, and publishing copies it into the next immutable version, 1, 2 and so on, once the evaluation gate passes for any suite that covers it (
FAILED_PRECONDITION.EVALUATION_GATE_FAILEDotherwise) - Runs pin the latest published version unless they ask for another, and
GET /api/v2/ai-functions/{id}/versionslists them - TypeScript functions are versioned too
- A version is one accepted content of
functions.ts, shared by every function in it, and never changes export const version = "1.4.0"sets the number. Otherwise it is numbered automatically: the next minor, or the next major when a signature broke (a function or input removed, an input's type changed or newly required, the output changed)- Versions are kept with their source, so
name@1.2.0,name@^1,name@~1.2andname@>=1.1run that version's code through invoke,ctx.call, function rules and agents GET /api/v2/functions/typescript/versionsandGET /api/v2/functions/{name}/versionslist them- Python functions run from the ontology folder as they stand
- Release stages, gradual rollout, shadow mode, rollback and the dependency views on this page
Version numbers
Function versions use semantic versioning: MAJOR.MINOR.PATCH. The registry decides which part must change by comparing the new signature with the latest released version. You choose the number, but you cannot publish a breaking change under a minor or patch number. Behaviour changes that keep the signature, such as a better forecast, are your call: the registry cannot see them, so the evaluation gate is what catches them
| Change | Required bump | Why |
|---|---|---|
| Add a required input | Major | Existing callers do not pass it |
| Remove an input or rename one | Major | Existing callers pass it under the old name |
Narrow an input type, e.g. string to an enum | Major | Values callers send today could be rejected |
| Change the output type, or remove an output field | Major | Callers read the old shape |
| Add a list of edited types to an edit function | Major | Actions that run it were reviewed against the old reach |
| Add an optional input with a default | Minor | Old calls still type-check and behave the same |
| Add a field to an output struct | Minor | Callers ignore fields they do not know |
| Widen an input type | Minor | Every value accepted before is still accepted |
| Change the body only | Patch or minor, your choice | The signature is identical |
| Change an AI function's prompt or model route | Minor at least | Outputs change in ways only evaluations can measure |
Versions below 1.0.0 are unstable. Any 0.y.z release may break any other, the compatibility check is advisory, and actions and automations in the Stable channel cannot pin them. Use them while a function is being developed on a branch, and publish 1.0.0 when other teams start to depend on it
Publishing a version
Publishing an AI function passes its evaluation gate, and a TypeScript version is numbered the next major when a signature broke. On request, a publish pipeline that checks compatibility, tests and signs each version
How callers pin
Every reference to a function carries a version range, and the registry resolves it at the moment of the call. Ranges use the usual syntax: 1.4.2 is exact, ~1.4 accepts patches, ^1.4 accepts minors and patches within major 1. A caller never receives a version outside its range. The defaults below are set when the reference is created and can be changed by the caller's owner
| Caller | Default pin |
|---|---|
| Action function rule | Caret on the version current when the action was saved, e.g. ^1.4 |
| Derived property | Caret |
| Agent tool | Exact, set when the agent version is published |
| Automation effect | Caret |
| Another function | From the caller's lockfile, exact |
| SDK and REST API | Caret on the major in the generated client, or ?version= |
Agents pin exactly because an agent's behaviour is evaluated as a whole. A new tool version can change what an agent decides even when the tool is better, so the agent's own evaluation suite has to see it first. Publishing a new agent version re-resolves its tool pins and runs its suite against them
Lifecycle stages
A published version never changes, and the registry keeps every version for as long as the function exists, so an action log entry can still say which code produced its edits. On request, versions move through Preview, Stable, Deprecated and Retired, and new versions roll out gradually, with shadow runs and automatic halts
Rollback
On request, rolling back moves all traffic for a major back to the previous Stable version, without a rebuild. Edits already committed by actions that ran the rolled-back version stay committed
Dependencies and impact
On request, the registry keeps the graph of which functions, actions, derived properties, agents and automations call each function and at which range, and blocks deprecating a major while a Stable caller still depends on it
Versions on branches
On request, functions take part in Ontology branches: publishing from a branch creates a draft version visible only to callers on that branch, and merging the branch's proposal publishes it as a normal version
If a new property on Production batch and the function that fills it ship separately, there is a window where one exists without the other. Put both on one branch, so the proposal merges them together and the function's compatibility check runs against the new schema
Limitations
- Gradual rollout, shadow mode and automatic halts are set per tenant. Without them, promoting a version to Stable sends it all matching traffic at once
- The compatibility check sees signatures only. A behaviour change under the same signature is caught by evaluations or not at all
- Rollback moves traffic, not data. Edits committed by actions that ran the rolled-back version stay committed
- A rolled-back version cannot be promoted again without a new publish
- Versions below
1.0.0cannot be pinned by actions or automations in the Stable channel, and their compatibility check is advisory - A deprecated major cannot be retired while a Stable caller still depends on it, unless an Administrator overrides the block with a reason