Compute resources and the global sandbox location
Use Admin → Servers to deploy existing SSH machines or CloudLab allocations, manage their leases, and choose where new sandboxes run. Operations and renewal run in the control plane, so closing the browser does not stop them. ENVIRONMENT.md lists the configuration.
The global sandbox location applies to all new, still-unassigned sandbox
groups. Retained groups, stopped ones and their Fork members included, keep
their Host. Automatic clears the restriction. A selected Host that is
unavailable keeps work waiting; nothing falls back to another Host.
What stays on stable infrastructure
Keep the control plane, Postgres, background worker, deployment profiles, provider credentials and the settings root key on stable infrastructure. A managed resource runs only the Host, sandbox manager, tunnels and sandboxes. Provider expiry is a hard limit; renewal does not guarantee uptime.
Stored API tokens and management SSH keys are encrypted with the compute
credential key (AGENT_COMPUTE_SECRET_KEY), a setting stored in the database
under the settings root key. Keep the settings root key with every database
backup: without it, compute connections and every other saved secret are lost.
Do not reuse account, settings, enrollment or sandbox manager keys. Compute
management credentials never enter sandboxes or the deployed Host.
The Host needs its own tunnel credentials and AGENT_SANDBOX_MANAGER_TOKEN,
which is pool-wide: every deployment profile uses the control plane’s value.
Supported initial deployment
Automatic SSH bootstrap supports:
Ubuntu 22.04, 24.04 or 26.04 on x86-64;
Python 3, passwordless
sudoand working KVM;reachable package repositories and the pinned Kata release, when it installs prerequisites.
With install_prerequisites=true, bootstrap installs docker.io,
docker-compose-v2, curl, ca-certificates, xz-utils and nftables,
starts Docker and runs the repository’s checksum-pinned Kata installer. With it
false, Docker, Compose and the approved Kata runtime must already exist. Kata is
required either way.
The node needs no Cloud Agent preinstalled. Bootstrap uploads a reviewed source
bundle and configuration, then runs deploy/host/sandbox_host.sh up and
check, which verify Kata, the guest observer, sandbox manager, relays and
nftables. The Host takes no work until those checks, an enrolled heartbeat and a
control-plane-to-sandbox-manager health check pass. Automatic deployment handles
one node per allocation and refuses multi-node CloudLab experiments, which can
still be observed. A failed installation leaves the resource visible and intact.
Preferred CloudLab node types
New CloudLab allocations try these types in order. The first six are general-purpose families from 2021 or later with at least 16 physical cores, 128 GiB RAM and more than 20 nodes, checked against the CloudLab hardware catalog and public inventory on October 12, 2026. The rest are older or smaller x86 fallbacks, roughly strongest first, for when reservations hold every one of the first six. They were checked against the same pages and the Emulab hardware catalog on November 28, 2026. The catalogs give no introduction year for them.
Preference |
Type |
Cluster |
Introduced |
Total nodes |
Physical cores |
RAM (GiB) |
|---|---|---|---|---|---|---|
1 |
|
Clemson |
2025 |
80 |
32 |
192 |
2 |
|
Utah |
2025 |
132 |
28 |
128 |
3 |
|
Clemson |
2022 |
32 |
72 |
256 |
4 |
|
Clemson |
2022 |
32 |
64 |
256 |
5 |
|
Utah |
2021 |
36 |
24 |
128 |
6 |
|
Utah |
2021 |
144 |
16 |
128 |
7 |
|
Clemson |
— |
72 |
32 |
384 |
8 |
|
Wisconsin |
— |
224 |
20 |
192 |
9 |
|
Utah |
— |
28 |
32 |
128 |
10 |
|
Clemson |
— |
84 |
28 |
256 |
11 |
|
Wisconsin |
— |
163 |
20 |
160 |
12 |
|
Wisconsin |
— |
10 |
32 |
256 |
13 |
|
Clemson |
— |
96 |
20 |
256 |
14 |
|
Wisconsin |
— |
32 |
20 |
192 |
15 |
|
Wisconsin |
— |
20 |
16 |
128 |
16 |
|
Emulab |
— |
10 |
32 |
128 |
17 |
|
Utah |
— |
199 |
10 |
64 |
18 |
|
Emulab |
— |
160 |
16 |
64 |
19 |
|
APT |
— |
64 |
16 |
64 |
20 |
|
Utah |
— |
270 |
8 |
64 |
c240g5 also has one NVIDIA P100 GPU. Smaller nodes hold fewer sandbox slots.
The preferred-node availability panel lists only the first six.
Change the list in Admin → Settings → CloudLab, or override it for one
server or autoscaling policy; each allocation saves the list it used. Free
counts are shown but do not reorder it; reservations do, as described below. A confirmed capacity refusal moves to
the next type, an uncertain answer pauses acquisition for review, and when every
type lacks capacity the operation waits and retries from the top. A nonempty
phystype profile parameter selects only that type; clear it to use the list
again. Profiles with a different hardware parameter can use
node_type_binding; an empty list uses the profile’s own choice.
Free counts ignore reservations. CloudLab often promises its free nodes to other projects’ reservations, and an experiment that needs one is accepted, then fails about a minute later with no reason in the API; the portal’s experiment page shows “Resource reservation violation”. So before creating an experiment, Cloud Agent asks CloudLab’s reservation search when one node of each listed type fits for the experiment’s duration, and submits the first type that fits now. A type it cannot check is submitted as before: one whose cluster the adapter does not know, or whose search fails. When no listed type fits now, a server an administrator adds reserves one node of the type with the earliest slot, up to a week ahead, and creates its experiment scheduled for that slot. CloudLab starts the experiment then; until it does, the server shows Reserved: the provider starts this server at …, and the node’s host-key registration stays open until it boots. Autoscaling and replacement nodes do not wait: they name the earliest slot and retry. Releasing the server deletes its experiment and the reservation, also before the start: a release does not wait for it.
Sandbox storage path
When you add or create a server, enter Sandbox storage path: an existing,
writable data disk mounted on the server, for example /mydata. New CloudLab
servers start with /mydata, where the small-lan and Cloud Agent profiles
mount their data disk; change it if your template mounts the disk elsewhere.
Observation-only imports need no path.
Bootstrap keeps sandbox workspaces and native sessions in <path>/docker and
<path>/containerd, bound onto the daemons’ standard /var/lib/docker and
/var/lib/containerd; a host installed by hand uses the same binds,
/etc/fstab lines and systemd drop-ins
(Retained Docker storage on a host).
The path is saved with the allocation and reused on retries and replacement
nodes, which need the same mount. Deployment checks the disk before it installs
anything, and setup stops before changing anything when:
the mount is missing, read-only or a symlink;
a nonempty Docker or containerd store exists outside the selected mount, or a new host’s
dockerandcontainerddirectories on the disk are not empty (a retry may reuse them only when the deployment identity matches and both are already bound there);/etc/fstabhas conflicting or duplicate entries for either daemon directory, or native systemd mount units, masks or overrides exist for them (ordinaryfstab-generated units are fine);Docker or containerd is configured with a custom data directory.
Retained data with missing binds needs operator repair before a retry; bootstrap
never deletes or moves sandbox data. After a reboot, the daemons start only once
the disk and bind mounts are present. A request that omits
sandbox_storage_path uses the profile’s data_mount.
Prepare a trusted deployment profile
Automatic setup
Open Admin → Servers → Server setup and use Automatic setup. The control-plane image carries the Host source bundle for its own release. The application supplies the revision, environment and sandbox manager token, generates two tunnel keys per setup slot, and discovers the control-plane listener ports and Docker bridge. Supply these once:
Add and validate a management SSH connection to the stable control-plane machine, with its independently verified host key.
Select it and confirm the machine’s SSH address and user. The supported control-plane deployer supplies the node’s FQDN; override it with
AGENT_CONTROL_PLANE_SSH_HOSTwhen SSH uses another address (other deployers must supply it). Saved and pending setups take precedence. The machine needs Python 3, passwordlesssudoand the supported Docker Compose deployment.Enter an approved private IPv4 pool for chat networks, a reachable DNS resolver outside it, and the protected infrastructure CIDRs. These depend on your network and need an administrator’s decision.
Choose the number of setup slots and prepare the setups. Two slots give a current node and its replacement separate sandbox manager routes.
The application creates restricted SSH accounts on the control-plane machine: the MCP credential reaches only the MCP-only listener, and the control credential only the main API and its assigned reverse sandbox manager route. Setup refuses SSH policies that would not permit these accounts rather than broadening them.
Keys and configuration are encrypted in Postgres before remote authorization starts. A setup becomes selectable once all its slots finish. If a request fails or the browser closes, reopen Server setup and retry the pending setup; it reuses its credentials and routes. Start new setup keeps the infrastructure inputs and creates a new request, leaving an unfinished setup unavailable. A setup’s tunnel credentials, install directory and enrollment stay fixed.
A control-plane release rolls forward every host it installed once it runs: managed servers, and attached SSH servers too, whose machine lifecycle it only observes. A host left on an older commit would take no new chat. An observation-only import has no deployment profile, so it is never upgraded. Stored profiles that share the previous commit and bundle advance together with the allocations and autoscaling reservations using them, so a later replacement or pool member sees one revision. The deployment’s readiness check does not wait for these hosts; they take new chats again when they report the new commit. A rollout that took the running generation down and then failed restores the previous stored bundle. File-backed profiles are never rewritten.
A rollout waits while a Host carries a deployment drain fence. If the fence
stays 30 minutes on a Host off the control plane’s commit,
compute_host_release_blocked alerts once per release. Release the fence from
the deployment that drained the Host, or override it with
POST /admin/agent/runner-hosts/<host>/undrain?force=true.
When the registry in AGENT_COMPUTE_SANDBOX_IMAGE_REPOSITORY (default
ghcr.io/harvardmadsys/cloud-agent-sandbox) holds sandbox-<commit> for this
release, the generated Host configuration pulls
<repository>:sandbox-{deployment_sha} instead of building, and a profile that
advances with a release pulls that release’s image. A pulled image is recorded
by its digest, so another Host can restore the node’s chats from their
checkpoints (Restoring a removed host’s sandboxes);
a built image keeps chats on their Host. The profile’s
automatic_setup.sandbox_image says which (published or built). Stored
setups keep the environment they were created with: use Start new setup to
move existing slots to the published image. A setup that pulls fails on a later
release whose image was never published.
Automatic setup needs a control-plane image built with its full release revision, plus the compute encryption key and the sandbox manager token, which a new deployment generates. The form shows missing prerequisites; update older images or use manual setup.
Manual setup
Advanced manual setup takes a reviewed source archive, its 40-character revision and installation directory, the Host environment, the two tunnel keys and verified known-hosts files. The control plane validates the archive and encrypts every environment and credential value in Postgres; profile read APIs expose only IDs and labels. Create a new profile to change tunnel credentials, the install directory or the Host environment.
Start the Host environment from
compute-host.env.example
and the Host field descriptions,
and replace every example address, token and network. The Servers form uses the
first available profile, and API clients may name a profile ID. Requests cannot
supply scripts, source paths, Docker flags or environment values. Encrypted
compute connections are referenced by ID, and deployment files cannot reference
compute connections.
Build the archive from the reviewed commit the control plane lets Hosts advertise; every component uses the same revision:
COMPUTE_DEPLOY_SHA=$(git rev-parse HEAD)
git archive --format=tar.gz --output=host.tar.gz "$COMPUTE_DEPLOY_SHA"
The control plane records the archive’s SHA-256 digest when the profile is
saved. The digest is checked before upload. The archive must hold the reviewed
repository root, with no containing directory and no working-tree secrets.
Bootstrap rejects symlinks, path traversal and private deployment state, and
adds .dockerignore entries that keep tunnel files out of image builds. The
first installation writes a marker binding deploy_root to its allocation, node
and Host. Retries reuse the marker and the enrollment credential; a different
marker or an unmarked existing installation is refused. Bootstrap does not adopt
the files of manually enrolled Hosts.
Each live allocation reserves its profile, because the reverse sandbox manager
endpoint is fixed. Overlapping old and new Hosts need separate profiles with
different reverse ports, installation directories and tunnel authorizations;
renaming a profile does not separate it. Only a confirmed terminated or
absent allocation frees a profile. Refresh availability before retrying a
refused addition.
Choose AGENT_EGRESS_CHAT_NETWORK_POOL, the resolver and the protected CIDRs
for your network; the sample range is only an example. Keep the release’s
per-group nftables policy. Environment values are single-line dotenv data,
never sourced as shell. The supported substitutions are {deploy_root},
{host}, {node_id} and {allocation_id}.
Two tunnels and the sandbox manager route
Authorize the tunnels on the stable control-plane machine before adding a server; bootstrap cannot grant that access. Use two distinct keys with no shell and narrowly permitted forwarding. There is no inference tunnel: model calls go to each owner’s provider over public HTTPS.
Tunnel |
Remote destination |
Audience |
|---|---|---|
MCP |
Control plane’s MCP-only listener, default |
Sandbox tool relay |
Host control |
Main API, default |
Trusted runner only |
The Host control connection also reverse-forwards from the control-plane
machine to sandbox-manager:8092. Bind that listener to the control-plane
Docker bridge gateway address, never loopback or 0.0.0.0. Configure
GatewayPorts clientspecified and restrict the key’s reverse listen address,
port and forward destination; never use yes, which binds every remote forward
to the wildcard address. Firewall the reverse ports so they answer only on the
Docker bridge
(sandbox manager route).
Set AGENT_SANDBOX_MANAGER_ADVERTISE_URL to the resulting URL as the
control-plane container reaches it, add its host to
AGENT_SANDBOX_MANAGER_URL_ALLOWED_HOSTS when that allowlist is on, and give
every simultaneously deployed Host its own reverse port.
Verify server and tunnel host keys through a trusted source before adding them
to known_hosts; ssh-keyscan finds a candidate key but does not authenticate
it. These transports use strict host-key checking, isolated keys, no ambient SSH
configuration or agent, and no trust on first use.
CloudLab VMs use the manifest’s SSH port, and by default the control plane connects without verifying the VM’s host key. That allows automatic setup but leaves the connection open to impersonation of the node. Select SSH host-key checking → Registered by the node at first boot when the Cloud Agent profile is available and the host identity must be pinned.
CloudLab nodes that register their own host keys
Automatic replacement needs SSH host-key checking → Registered by the node at first boot, in the CloudLab server’s advanced options. It works only for experiments this control plane creates from the Cloud Agent profile:
Publish
deploy/cloudlab/cloud-agent-node.pyas a project-private CloudLab profile and set its project and name as the server template. Its node, image and data-disk parameters replacesmall-lan’sphystype,osImage,dataMountanddataSize.Provide a public HTTPS control-plane address as Public API URL (Admin → Settings → General) or Compute node registration URL (Admin → Settings → CloudLab, under Advanced), initially
AGENT_PUBLIC_API_URLorAGENT_COMPUTE_REGISTRATION_URL.Each acquisition passes a one-time token in the experiment parameters; the control plane stores only its hash, and it expires after two hours. At first boot the node generates fresh SSH host keys and posts their public halves to
/v1/compute/node-registrationsover HTTPS. The control plane pins the strongest key and checks strictly against it alone.
The token registers keys once; it cannot claim work, enroll or rename a Host. Repeating the same keys succeeds, different keys are refused, and a resubmitted acquisition’s newer token replaces the old one. CloudLab project members can read experiment parameters, the token included, and already administer every project node, so keep the profile private and the project membership small.
If an operation stays at waiting_for_registration and ends with
registration_expired, inspect /var/lib/cloud-agent-node/registration
through the CloudLab console and check that the node can reach the registration
URL. After fixing the cause, retry the operation, which gives the token another
two hours, and restart the node from CloudLab so its boot script posts again; it
stops trying after an hour or a refusal. Alternatively, release the server:
nothing ran on a node that never registered, so release needs no SSH inventory.
registration_unavailable means no public HTTPS control-plane address is
configured.
The CloudLab API endpoint
The image includes openssh-client; the control plane gets no Docker socket or
root. Existing-SSH deployments need no endpoint.
CloudLab has no default endpoint. Set the CloudLab API URL setting (or
AGENT_CLOUDLAB_API_URL) to the production HTTPS Portal API,
https://boss.emulab.net:43794, as CloudLab’s
portal-api README gives it,
then press Check on the CloudLab account under a server’s Accounts & SSH
keys. The portal’s web address,
www.cloudlab.us, does not serve the API: its port 43794 is filtered, so a URL
naming it waits out the 60-second connect timeout and reports that CloudLab
could not be reached. Validation makes a read-only experiment-list request,
checks the response shape and refuses redirects. See the
Portal API manual and its
OpenAPI source.
Day-to-day workflow
In Admin → Settings → CloudLab, set the project, initial duration, template project and name, SSH user, and the SSH public key installed for that user. These are non-secret defaults an administrator can change per allocation; leave the key blank to use the keys already on the CloudLab account.
In Admin → Servers, choose Add server, then existing SSH or CloudLab.
Create or select credentials. Existing SSH needs a private key and verified host keys. CloudLab needs an API token and a management SSH private key; its advanced options can replace the unchecked host key with first-boot registration.
Enter the details: for existing SSH, an address, port and user; for CloudLab, an experiment UUID to attach, or a profile and project to provision, plus its SSH user. A public key set for that user is added to a new experiment.
Submit and follow the operation until it is ready. HTTP 202 only means the operation was recorded; allocation, installation, enrollment and readiness follow.
Optionally select the ready Host as the global sandbox location. Readiness does not change the saved location.
Before enabling renewal, review the allocation’s full scope. Attached or imported resources need explicit lifecycle adoption, a real reason and ordered lead times. Saving a policy does not extend a lease; confirm extensions from the observed expiry.
Observation-only imports record facts without installing anything. Once adopted they can support lease management, but observation does not prove their retained state is disposable: release still needs active Host bindings and a verified inventory.
Recovery and release boundaries
An operation persists its request ID, parameters, step and resource ID, so
retry the same operation after a browser disconnect or worker restart; a new
request ID creates a new command. Activity, and each server’s Activity
tab, list the 200 most recent operations plus every one still pending, running,
waiting or unknown, and any failed or blocked acquisition not confirmed gone.
Result |
Recovery |
|---|---|
CloudLab could not be reached |
The message names the endpoint and the reason. An unresolved name, a refused connection or a 60-second connect timeout points at the CloudLab API URL ( |
SSH key or identity refused |
Fix the machine or key, update the connection and retry the same operation. Host-key checks stay on. |
Cloud create outcome unknown, no UUID saved |
Find the experiment in the account and project and resolve it explicitly; the worker never repeats the POST or adopts an experiment by name. If the portal has none, Nothing was created cancels the operation for good and the server can be removed. That is your statement, not checked with the provider, so check the portal first. It is refused once anything names an experiment: a registered node, a saved UUID, node or Host, or a provider diagnostic. Autoscaled acquisitions cancel on their own. |
UUID saved, later observation failed |
Repair access and resume. Releasing the server deletes that experiment by its UUID. |
Installation or readiness failed |
Check the deployment checks, fix the prerequisites or profile and retry; the resource is not destroyed. |
Extension pending or unknown |
Check the real expiry. Retries keep the fixed target; a shorter extension is not success, and the provider may refuse or limit it. An expiry unchanged ten minutes after the request blocks as |
Retained state remains |
Keep the resource available or manage its chat lifecycle; stopped containers and archived chats count. |
Release committed, response unknown |
Keep admission closed and confirm the exact resource ID; cancellation cannot undo a release. |
A CloudLab DELETE answering 204 confirms deletion of that experiment UUID, and
so does a terminal experiment object with the same UUID and project. A 404
alone does not, because token visibility can change: the adapter reports
resource_visibility_unknown and keeps the reservation, and a lost DELETE
acknowledgement followed by 404 stays pending until the provider confirms.
Restore access and retry; never edit the database to infer deletion. A missing
experiment counts as expired_not_found only ten minutes past a recorded lease
deadline. Renewal continues while retirement waits on retained state, and does
not clear a manual drain or resource-owned admission holds. The claim
transaction enforces the last known lease cutoff even if the resource worker
stops.
Action |
Effect |
|---|---|
|
Revokes the Host credential and leaves the machine intact. If another Host can take its sandboxes, the Host first moves them out as before a lease ends: it shows |
|
Returns a |
|
Revokes a |
|
Removes an eligible history record. A |
|
Releases the whole allocation (for CloudLab, the experiment) and cancels any acquisition or queued upgrade still waiting on it. An autoscaled server’s profile returns to the pool once the release is confirmed. Existing SSH has no cloud-destruction capability. |
|
Deletes the server’s records once its resource is released, was never created, or (attached without release) its Hosts are disabled; it calls no provider. An operation still running, confirming a provider call or |
A Host held by a deployment drain shows updating; one drained through the
/drain API shows paused and offers Resume new work. There is no separate
pause action.
Release requires complete scope, no global placement reference, no running, in-flight or retained dependencies, and a fresh inventory of the sandbox manager and the machine; there is no force. Stopped or unknown containers, orphan networks or volumes, an offline sandbox manager, and any file under the Host’s state directory other than its enrollment credential, checkpoint receipts and confirmed removal receipts block it. Only a CloudLab node whose host-key registration never completed needs no inventory.
Before the inventory, release removes the stopped containers left by groups that
moved away (handed over through a checkpoint, restored elsewhere or deleted),
retrying each until the Host confirms, and counts them in superseded_removed.
It then stops each node’s runner with docker stop, removes the runner’s
leftover self-test sandboxes, and keeps the findings under inventory; the
sandbox manager keeps running. It retries only when Docker could not be read and
nothing else was found; any finding stops it for attention.
Moving sandboxes out before a lease ends
A Host whose allocation does not use automatic replacement moves its sandbox groups to other Hosts before its lease ends, one at a time, through their restorable checkpoints. The lead is Move sandboxes to other servers before expiry in the allocation’s renewal settings: 120 minutes by default, 0 to turn it off. With renewal on, extension is tried 15 minutes before the window opens, so only a lease that could not be extended starts a move; the window ends 25 minutes before the extension horizon.
Inside the window the Host gets a move_out admission hold only when its groups
can move:
lifecycle archives and checkpoints are on, and every Host of the allocation has applied the current archive revision;
another online Host that restores and archives on that revision would pass admission for new groups now. A Host under a
new_groupshold, in its own lease window or with a stale observation does not count, and of two Hosts entering their windows together only one moves out. Anuntrusted-kata-v1group also needs a target that runs Kata.
Without a target nothing changes, and the Host serves until its lease ends. A started move continues if its target goes away, and stops if checkpoints do.
During the hold the Host claims nothing. Every 15 seconds the control plane
stops each idle group as an administrator would; a group with a running turn,
operation or open terminal waits for a later pass. The stop stores a final
checkpoint, after which the group is cold and its next turn is restored on
another Host; the user sees that message wait a little longer. A sandbox whose
deletion failed before its archive moves like any other; a pending or verified
deletion is left to finish.
In an autoscaled CloudLab pool, a moving-out member stops counting toward
min_hosts, so its replacement is acquired while it still serves. It still
counts toward max_hosts: keep max_hosts at least one above min_hosts, with
a spare deployment profile, or the replacement waits. The Servers page shows the
member as moving out, and it is released at its lease end.
Alert |
When |
|---|---|
|
Once, when the window opens with groups that would stay. The reason is |
|
Once, if groups are still unmoved five minutes before the lease ends, or the claim-stop lead if longer. |
|
When the provider confirms the machine |
Automatic CloudLab node replacement
Replacement moves one whole Host, stopped sandboxes and native sessions included, keeping the Host name and sandbox namespace and enrolling a fresh credential. It does not rebuild context from transcripts. Before enabling it:
Use a provisioned, managed single-Host CloudLab allocation with
host_key_source=registrationand the private Cloud Agent profile.Prepare two alternating deployment profiles with distinct tunnel keys and reverse sandbox manager ports, pinning the same
deployment_shaandsource_sha256. Replacement never picks a profile from another release, and a host rollout advances both. Keep Docker and containerd versions compatible, and setdata_mountto the local disk, for example/mydata.Enable renewal and replacement in Servers → renewal settings, with the renewal reason and hardware types in order. The defaults are a 180-minute replacement lead time and a 7-day maximum node age. Saving the policy does not start a move.
Set Alert webhook URL under Admin → Settings → Operations (initially
AGENT_ALERT_WEBHOOK_URL) for external alerts; without it, events stay in the logs and operation status.
In the renewal window, extension is tried first. A refused or unconfirmed extension starts replacement, and a node at maximum age moves instead of extending while the move is on time. A move unfinished at its drain deadline, or one that blocked, failed or was cancelled, keeps the old node extended. Failed candidates are released before the next type is tried. Configuration or credential errors stop at once, and the same failure on three types stops with an alert. A capacity refusal before any resource is named releases the candidate at once instead of after the two-hour candidate limit; rate limits and unknown outcomes never count as capacity refusals. Retry resumes the saved operation.
The candidate installs the host recipe and takes a live pre-copy without enrolling or claiming; the source then waits for an idle moment. At the drain deadline, 100 minutes before expiry with the default one-hour turn limit, new claims pause even if the candidate is still preparing. Running turns finish and new messages queue; no move kills an active turn. The worker then stops the runner, then the sandbox manager for up to 10 minutes (it stops each sandbox cleanly and, with lifecycle archives on, stores its final archive), then the remaining containers and daemons. It copies the final changes, transfers the database binding, and starts and verifies the replacement. Claims resume only after the takeover is recorded.
Before the takeover, a failure restores the source. If the replacement cannot
be confirmed stopped, claims stay paused and the operation blocks. A source
restart that loses SSH or times out is retried for ten minutes; one that still
fails, or any unexpected error after the source began stopping, blocks with the
urgent compute_rotation_failed alert and keeps claims paused. An unexpected
error before the stop blocks and resumes claims. Cancellation works until the
stop begins. Cleanup failures retry without interrupting the replacement, and
releasing the source still passes the retained-state and allocation guards.
Acceptance before enabling production traffic
Use disposable staging conversations and dedicated profiles. Record operation IDs, node identities, the release revision and the observed pause, without credentials.
Create a node through the deployed registration endpoint and check that SSH uses its pinned key.
Run Claude Code, a Fork and Codex with files and distinct context markers, use Replace node now, and check native continuation, Fork separation, files and container IDs. Repeat across CloudLab sites.
Send a message while claims are paused; it must queue and run once after takeover, and the source must no longer authenticate.
Exercise refused renewal, an unavailable first hardware type, a failed final copy, a failed target start and a control-plane restart. Check rollback or continuation of saved steps, release of failed candidates, and that no allocation or serving copy is duplicated.
Run the policy for two weeks with at least two automatic moves, checking alerts, cleanup and retained chats.
Losing the only source disk, or having no replacement capacity before expiry, can still lose sessions; keep off-node backups where required. Before live traffic, verify the CloudLab profile end to end: deployment, a real task, retained continuation and Fork on one Host. Renewal success and unit tests, which mock HTTP and SSH, do not prove the profile’s virtualization or network suitability.