Skip to main content

Staged agent updates

Use Agents & sensors > Fleet tools > Staged updates to update a fleet group without sending replacement requests to every agent at once. Preparation reads bounded pages; the console loads 50 agent outcomes at a time. A rollout always starts with one canary. Each subsequent batch requires an administrator to review the results and choose Start next batch.

Staged updates open in a full workspace page. Rollout review and current-agent inspection have direct links, and browser Back returns through those views. Use All rollouts to return to history or Back to agents to return to the fleet. Preparation also uses a full page, with release and batch-size fields aligned side by side on wider screens.

Prepare hosts and a group​

  1. Assign the intended agents to a fleet group. Groups organize selection; they do not grant access.
  2. Configure the platform's updater and local permission policy: Linux supervisor and policy, Windows service updates, or macOS managed scanner. Bound permission to the intended version, sequence and expiry. A cloud approval cannot bypass that policy.
  3. Confirm that the agents report a compiled runtime and an older compatible version. The current catalog includes managed-update releases for Linux x86_64, Windows x86_64 and macOS arm64. Each rollout selects one exact release target; other operating systems, architectures and Python agents are excluded. Catalog availability does not prove a host has configured or enabled its updater. Check the platform guide for release-specific qualification and recovery limits.
  4. Ensure running discovery can finish and that the hosts can reach the control plane and signed downloads. The rollout waits for drained leases and a fresh idle acknowledgement; it does not terminate running scans to force an update.

Review the preview​

Choose Prepare rollout, search by group-name prefix and select a group from the dropdown, then choose the release and choose the later batch size: 10, 25, 50 or 100. The first batch is always one agent. Preparation does not pause or modify agents. The group selector loads 50 groups at a time; use More groups or narrow the search. Counts include unrevoked, unarchived agents, regardless of whether they are online or compatible with the selected release. The preview determines compatibility. Groups containing only retired agents and agents without a group are not offered.

If group search or paging fails, the last loaded groups and selected group remain visible. The search prefix returns to the prefix matching those results. Retry the same paging button, or enter a prefix and choose Search again. Preparation is disabled while a group request is loading; a failed request restores availability for the previously selected group. Compatibility is still checked when preparing the rollout.

The preview collects compatible active agents across successive pages and excludes agents enrolled at or after preview creation. This is a reviewed selection, not an atomic snapshot of the entire fleet at one instant. New enrollment is never appended later. Incompatible agents are counted separately. Review selected names and IDs before starting. Selection order is stable by agent ID; create a dedicated canary group first if a particular machine must run before the larger group.

Preparation choices remain available when you leave and return within the same tab. Discard draft clears an unsubmitted draft. If a preview submission loses its response, Retry preview sends the same request ID and body. History shows Recover preview; reopening it locks the original group, release, batch size and window, even if the group or release catalog has changed. If the original response arrives after leaving, Open prepared preview opens that confirmed preview without submitting again. Recovery is scoped to the current workspace and signed-in identity; reloading clears this tab-memory state. A prepared preview is not permission to install.

Schedule a maintenance window​

In Prepare rollout, choose During a maintenance window, enter the start in your local time, and choose its duration. The preview shows your browser time zone and the exact UTC timestamps. Review both, especially around daylight-saving changes. Start at least one minute ahead; a window lasts 15 minutes to 24 hours, ends within 30 days, and must end at least one minute before the selected release expires.

Prepare the preview, then choose Approve canary for window. Preparation alone never authorizes installation. The approved canary waits without pausing agents until the window opens. Later batches still need separate approval; this is a single window, not a recurring calendar schedule.

Approval from a signed-in administrator survives signing out. It is bound to that account's authorization version, the workspace, approved batch and exact release. Account disablement, role or authorization-version changes invalidate it. API approvals remain bound to their original credential, which must be valid through window end; revocation prevents further execution. Current authority is checked again at execution and replacement authorization.

At window close, no new replacements are authorized. Already-started installation can finish independently. The rollout expires and does not automatically resume affected agents; inspect their current update and scan-admission state before resuming scans. Cancellation before the window opens leaves agents untouched. There is no automatic retry in a later window.

Run the canary, then approve batches​

Start one-agent canary begins the first batch:

  1. The platform checks current administrator authority, the selected release and the agent's group/revision. Another active update or rollout prevents overlapping work on that agent.
  2. It pauses new scans if necessary, then waits for active leases to drain and for a fresh idle acknowledgement.
  3. It creates a normal signed-release update request. The local supervisor still verifies the artifact and enforces the local policy.
  4. An installed report must be followed by a new process identity, the expected scanner version and a fresh idle acknowledgement. Only then is the item marked installed.
  5. If the rollout introduced the pause, it resumes scan admission. An agent that was already paused stays paused.

While an item is Draining, the pause stops new claims; it does not cancel the scan already running. The agent may finish that job and upload its findings. The rollout waits for active leases to clear and for the agent to report idle before creating the replacement request. Direct update requests are also rejected while an active lease remains.

If draining takes longer than expected, open the agent's scan history and local diagnostics. Do not stop the service merely to make an update advance. Cancelling a scan is a separate decision from cancelling the remaining rollout; inspect both states before resuming discovery.

Run an allowed discovery scan and inspect findings before approving another batch. Installed is reported installation plus fresh process evidence, not a guarantee of successful scans or independent binary attestation. Rollouts do not automatically launch verification scans or advance to another batch.

The rollout moves to Review after a batch finishes. Read individual outcomes, then approve the next batch. If any agents failed, the button explicitly says Start next batch despite failures. Failure does not silently broaden the rollout.

Failure, cancellation and recovery​

Agents paused by a rollout are not automatically resumed after a failure. A failure before draining may leave scan admission unchanged; another administrator may also have changed it. Select an agent name in the rollout to inspect current pause state, runtime, contact and update status, then return to the same loaded rollout page. If loading another page fails, the last successful rows remain visible and retry uses the same requested cursor. Find this agent in fleet returns to the fleet and filters the inventory to its exact ID, including archived agents when appropriate. Use Manage > Agent controls there to review scan admission. Open the agent's update operation, inspect its local supervisor diagnostics, fix the cause, and review scan admission in Agent controls. A changed group, changed maintenance revision, inactive agent, unavailable release or competing update is not overwritten.

Each active batch item has a one-hour deadline. A rollout without a window expires within 24 hours, or sooner if the reviewed release expires. Scheduled rollouts expire at window close; item deadlines begin no earlier than window start and are bounded by window close. A missing supervisor or offline host can therefore produce a deadline failure rather than waiting indefinitely.

Loss of administrator authorization or withdrawal of the release pauses further orchestration. An authorized administrator can resume after correcting the cause. The release and local scope are checked again. Already-authorized replacement may finish independently while the rollout is paused.

Cancel remaining work stops further rollout processing and cancels update requests that have not begun. It cannot undo a replacement already applying. Affected agents stay paused; inspect the per-agent update operation before manually resuming scans. Cancellation does not revert completed upgrades.

Completed means every selected agent has an outcome. Check installed and failed totals; it does not mean every agent succeeded. Aggregate history is retained; individual details are cleaned up in bounded batches after 30 days. Up to ten rollouts can be active per workspace.

API and SDK​

Use POST /api/v1/agent-rollouts with an idempotent requestId, group, releaseId and batchSize, optionally window: { startsAt, endsAt } using UTC ISO timestamps. Read /agent-rollouts/{id} and follow the opaque cursor from /agent-rollouts/{id}/items. Send the latest expectedRevision to advance, resume or cancel; a stale revision returns 409. After an uncertain action response, refresh status before deciding to retry.

JavaScript SDK methods are createAgentRollout, agentRollouts, agentRollout, agentRolloutItems, advanceAgentRollout, resumeAgentRollout and cancelAgentRollout. Python provides the corresponding snake_case names. See the generated API reference for request and response schemas.

Find available groups with GET /api/v1/agent-groups?q=production/&limit=50, JavaScript agentGroups({q, after, limit}), or Python agent_groups(q=..., after=..., limit=...). Follow nextCursor unchanged and reset it when changing the search prefix. This reads a live group directory, not a frozen inventory snapshot.