Updates and rollback
A Studio release reaches your deployments through your Organisations account: Organisations mirrors the release, and an update schedule or a manual upgrade applies it deployment by deployment. Every upgrade captures a restore point first and rolls the services in place. This page describes the schedule model, the roll itself, how rollback works, and how Organisations updates its own software.
Who this is for
Administrators who schedule updates, and security engineers who want to know what changes during one and how it is undone.
Before you start
Three objects in the Organisations console: a release (a Studio version the Console offers on your channel), a configuration template (a versioned payload naming a release and the deployment settings you standardise on, under Configuration templates), and an update schedule (a rule that applies one template version to a set of deployments, under Updates, then Update schedules). The screens are described in Configuration templates and Update schedules.
How a release reaches your account
- Organisations asks the Console for the release catalogue and, when a release is first needed, downloads its bundle through a signed, single-use link into the
bundle-cachebucket in your Organisations account. The release cache records the state: discovered, downloading, cached, images loaded, deployable. - The bundle's container images are pushed into your Organisations ECR repositories, immutable by tag.
- For each deployment, the images are copied by digest into that account's own repositories, so the bytes a deployment runs are the bytes the release shipped. No cross-account repository policy is needed on either side.
Update schedules
An update schedule (a rule, in the engine and the API) carries a name, a template and the template version it pins, a scope (an explicit list of deployment ids, or a filter by AWS account and region), a schedule, an enabled flag, and an optional maintenance window as a UTC start hour and end hour.
Rules of the model:
- A rule keeps the template version it was created with. Editing the template bumps the template's version but does not move any rule; Adopt version N on the schedule is the explicit step that does.
- A template may name only a release your Organisation offers: the Console catalogue for your channel, plus releases already mirrored and deployable in your account, plus the release every existing deployment is running. Anything else is refused when the template is saved (
release_not_offered). - The engine evaluates due rules on an internal tick. For each deployment in scope it compares the running release and configuration with the template; a drifted deployment gets an upgrade or reconfigure job.
- A rule due outside its maintenance window is deferred to the next window start, never dropped, and the deferral is recorded.
- Every firing is recorded in the schedule's Schedule history (Recorded runs) with one of the outcomes Fired, Nothing to do, Drift found, not applied, Deferred (outside window), Template missing or Template edited, not adopted.
The roll
What happens to a running deployment:
| Phase | What users see | What changes |
|---|---|---|
preflight, restore-point | Nothing | The registration stack, quotas, name collisions, and the access and Bedrock quotas of the models the update will set are checked; the current task definition revisions and image tag, and the model ids, the values and service sizes set in Organisations (the effort and streaming speed settings included) and the stack settings Organisations manages, are written to the deployment's deploy bucket. Before this step, the check lists any value set by hand in AWS that the job replaces |
maintenance-on | The update screen replaces the Studio web app | A maintenance page and flag are written to the frontend bucket |
core to taskdef | The update screen | Stacks are updated in order; new images are copied by digest and verified; configuration secrets and trusted certificate authorities are re-seeded. The three model ids are written for the deployment's zone: the ones the job names (from a template or rule), otherwise the Claude 5.5 defaults, so an upgrade from Claude 4.x moves to Claude 5.5; every service's copy of the Worker model id follows, and effort settings you set in Secrets Manager are kept. On a private deployment the private network stack is re-applied with the recorded ranges (the attachment is found, not requested again) and any route deleted outside AlphaAgent is put back; on an existing public deployment the edge stack is updated instead |
settle | The update screen | With outbound traffic through your Transit Gateway the outbound traffic check runs first, and a private deployment's attachment and routes are checked. Every service is force-redeployed in place. Eight of the eleven services are configured to keep 100 percent healthy capacity and run up to 200 percent during the roll, so a new task is healthy before an old one stops. Sandbox functions are re-pointed to the new kernel image when its digest moved |
maintenance-off, doctor, record-release | Studio returns | The normal web app is restored, configuration is verified, and the deployment record carries the new release |
The elapsed time depends on the sizing profile and on how many images changed; the job in the Organisations console shows it.
Stateful resources are never replaced by an upgrade: tables, buckets, secrets, the file system, the cache and the user pool keep their data. Run and conversation data is untouched.
Values you set in Organisations
Organisations is the one place a deployment's runtime limits, service sizes, API allow-list, CloudWatch log retention, alarm topic and effort and streaming speed settings are kept. Every update, reconfigure and Runtime limits job keeps the values you set there, with one exception: where an Update schedule applies a configuration template that sets a different value, the template's run applies the template's value. Where values come from sets out which of the two decides on each deployment.
- Set by hand in AWS. A value changed directly in AWS Secrets Manager, on a task definition or on a Studio stack is replaced by the next Organisations job that writes it, the first Studio 2.2.12 update included. The job's check lists each value it replaces before it writes, and the job and Audit record it; between jobs, an hourly read lists what the next job would replace, as last read.
- Kept as the stack holds them. Settings fixed when the deployment was created, or set by another Organisations job (its environment, network ranges, certificates, NAT gateway, Neo4j mode and CloudFront front door), are kept as the stack holds them. A change made to one in AWS is listed as kept, never replaced.
- Health check timings and the other stack settings Organisations does not manage follow each Studio release.
- A release that narrows a range. An update that cannot keep a value you set in Organisations pauses and asks you first. No value is lowered on its own.
Rollback
- Restore point first. Before anything changes, the upgrade writes the running task definition revision of every service, the deployed image tag, the model ids in the deployment's configuration secrets (including each service's copy of the Worker model id), and the values, service sizes and stack settings Organisations holds for the deployment to
restore-points/in the deployment's deploy bucket. If that write fails, the upgrade stops there (restore_point_unwritable), before any stack or secret is touched. - Automatic on failure. When an upgrade or reconfigure that captured a restore point fails at a point that cannot be resumed, the engine runs a rollback job (recorded in Audit with the actor
system:engine); one that failed before capturing a restore point changed nothing and is not rolled back. The rollback points every service back at the recorded task definitions and forces a redeploy. The step reports per-service outcomes and does not claim success unless services actually moved; a failure is recorded asrollback_failed, a missing restore point asno_restore_point. - Manual. An administrator can trigger the same rollback with Roll back deployment beside the version on the deployment's Overview, or
POST /deployments/{deployment_id}/rollbackon the Organisations API. It returns the services to the restore point the last completed update or configuration change captured; the confirmation names that release and time, the job is followed in Jobs, and the action is recorded in Audit (Deployment detail). - What a rollback re-applies. Besides re-pointing every service, a rollback writes back the model ids, the runtime limits (the effort and streaming speed settings included) and the service sizes its restore point captured, returns the configuration secrets to the versions they held before the job, and returns the stack settings to the values Organisations recorded. A value set by hand in AWS that the job replaced therefore comes back until the next Organisations job replaces it again. The Roll back dialog says what changes before it starts. A rollback also writes the model ids back, so an earlier release runs the models it ran before, and records them on the deployment for the Overview; if that write fails the rollback stops with
rollback_config_restore_failed, and Resume writes them again. A rollback on a private deployment re-applies the private network stack and the network settings recorded on the deployment, and re-seeds the trusted certificate authorities, so a reconfigure that failed half-way returns to the recorded configuration. Task definition revisions a restore point names are kept active, and one deregistered earlier is registered again. - Back to an earlier release. A release you have mirrored stays offered, so a template can name it and a rule can adopt it; the same roll then applies the earlier release when it is Studio 2.0.20 or later. Organisations 1.1.0 refuses an update to a release before 2.0.20, so Roll back deployment is the only way back to one (Supported models).
- Back past Flows that take files from Folio. A release from before Flows could take files from Folio cannot read a Flow that has a File from Folio, Folder from Folio or Newest file in a folder input, or pinned reference files. After a rollback to such a release, those Flows stop opening and running: their pages show an error, the Flows list shows an error for everyone who can see one of them (the whole deployment when governed), and their runs, scheduled ones included, end
launch_failedbefore any step. Nothing runs without its files, and no result is produced from missing files. Upgrading again to the release you rolled back from reads them unchanged. The Folio index table, its queue and rule stay in your account through the rollback and are used again after the upgrade; files, chats and their references keep working as plain files and chats.
How Organisations upgrades itself
Organisations is upgraded from your workstation with orgctl.py install from the new bundle, in the same account and region. The recovery gate detects the existing install from the six stacks, reconstructs its state, and, because the version differs, re-runs the forced steps: org-auth, foundation, push-image, seed-config, spa, app, settle and doctor. It does not re-ask for the SAML metadata, the Console credential or the break-glass owner. A change set that would replace a stateful resource stops for confirmation. The step-by-step page is Upgrading Organisations.
Steps: verify an update from your account
- In the Organisations console, open the deployment's job list and the upgrade job. Read the step list in the order above and the outcome of
restore-point. - In S3, open
alphaagent-deploy-<account>-<region>/restore-points/. One object per upgrade. - In ECS, open the cluster: every service's task definition revision changed at
settle, and the previous revisions still exist. - In ECR, compare the image digest referenced by the new task definition with the digest in your Organisations repository for that release.
What you should see
- A restore point object written before the
corestep ran. - Every service on a new task definition revision, with the old revisions retained for rollback.
- The deployment record showing the new release only after
record-release.
Limits
- One in-flight job per deployment; concurrent jobs across deployments are bounded by the account's Fargate quota.
- A maintenance window is hour-of-day in UTC only; day-of-week belongs to the schedule.
- Rollback restores services to their previous task definitions and, as above, the values, sizes, configuration secrets and stack settings. It does not roll back a stack template change or Studio's web app, which stays on the newer release until the next update; a failed upgrade that changed those is resumed or re-run.
- On a private deployment the rollback deploys the private network stack of the restore point's release. A restore point captured before Studio 2.0.18 has no route that drops unlisted private ranges, so with outbound traffic through your Transit Gateway that route, its prefix list and its network interface are removed until the next update to 2.0.18 or later.
- After a rollback, the restore point the next update captures can be labelled with the release rolled back from while it holds the earlier services. The Studio version shown in Studio's Dock is the release the services run, and an update to a newer release brings the label back in line.
If something goes wrong
- Job fails with
release_not_deployable: the release has not finished mirroring into your Organisations account. Wait for the release cache to show it deployable, then retry. - Job fails with
restore_point_unwritable: the engine could not write to the deploy bucket. Check the bucket exists and the target role's S3 permissions are intact, then retry; nothing was changed. - Job fails with
rollback_failed: one or more services did not return to the recorded revision. The step record names them; use ECS in the account to inspect the service events, then re-run the upgrade or the rollback.