Self-Upgrade

Use This Doc For

Overview

Self-upgrade upgrades the platform itself. A source-backed install builds from approved source; a consumer install resolves the verification-gated registry channel to an immutable release image. Both shapes use the same recovery, quiescence, health, and rollback lifecycle. This is a higher-consequence operation than editing backlog work, so it is operator-gated and governed by deployment windows.

For a consumer install, the page compares the running container’s image-config digest with the verified platform-specific config digest behind the registry channel. A matching digest means the installed bytes are current. A different digest exposes the immutable target version and Install now. If registry or running-image identity cannot be verified, the page reports that update status is unavailable and does not offer or queue an upgrade.

Workflow

  1. Confirm the status card shows a resolved immutable update. The card reports You’re current only when nothing newer is waiting; if it says that, or says updates are unavailable on this install, there is no upgrade action to trigger.

    A waiting update stays named on the card while an upgrade is running (Installing now) and after one fails (Update still pending). If an update was installed but its resumed completion step reported that the drain had already ended, the card checks that the failed attempt’s target is actually running before disregarding that specific reporting error. Other failures remain visible, even when the install is current.

  2. Review the pending update and what it will change before triggering anything. What’s in this update? compares the running build with the resolved update. Consumer installs read published source changes without needing a local source checkout; source-backed installs read their configured clone. If change details are temporarily unavailable, retry the summary. That does not mean the known update target is missing and does not apply an update. Published comparisons use commit descriptions and available PR details; they do not attribute the comparison’s combined file list to individual changes.
  3. Press Install now when you are ready. The portal then confirms the real consequence, expected duration, recovery path, and reversibility before it admits the request. These details are shown at the decision point instead of filling the arrival screen with possible failure scenarios. The server durably admits the request and assigns its SUR-* run identity before queue dispatch begins. Normal changes respect the window; pressing Install now outside it is an operator override, and the run records it (see below).
  4. Watch the deployment status — the page distinguishes a request waiting for dispatch, active dispatch, indeterminate dispatch reconciliation, and a definite dispatch failure. It updates automatically while the build and swap are in progress. A normal upgrade completes in a few minutes.
  5. Confirm the health check passed after the swap, and read the deployment log if it did not.

Who can upgrade outside the maintenance window

Upgrades are meant to run in the nightly maintenance window. Each one pauses new work and builds, so the portal does not let AI coworkers or agents start one whenever they like:

When the scheduled upgrade runs

The scheduler wakes every hour, but it checks for an upgrade only inside the maintenance window. Each time the window opens, the portal makes one check, and it does not count the hours since your last upgrade before that check:

If a window goes by without a check, the Upgrade Center says so and gives the reason. For example, another upgrade was still running, or a failed upgrade attempt was still in its wait period. The message stays during the day that follows and goes away after the next check. Agents see the same information as missedWindow in get_self_upgrade_queue_status. Blackouts and switched-off scheduled upgrades already show their own notice, so they do not add a missed window message.

An agent working in your browser, signed in as you, looks the same to the portal as you do. Agents are told to request upgrades through request_self_upgrade instead of pressing the button for you.

You may navigate away after the upgrade has been accepted. Leaving the page stops only that page’s live status reads; it does not cancel or pause the durable upgrade. When you return, the page reloads the current run state and resumes live updates. If the browser loses the trigger response, do not click again. The action remains disabled until the server reports a durable disposition for the admitted run. The same SUR-* identity is reconciled after a delayed or ambiguous dispatch, so a page reload or process restart cannot create a second physical upgrade.

The owner status card and upgrade action stay visible on arrival. Open Deploy controls & history only when you need technical controls, run history, logs, or the local-changes ledger.

During an active upgrade, the portal enters quiescence and refuses new mutating MCP writes. Delivery agents can still read quiescence status and release an owned nonproduction lease, then retry evidence publication after the portal returns to normal.

Before you confirm Install, the dialog shows the current maximum for recovery backups and installation after active work clears. This is separate from waiting for active work. Once recovery starts, the maintenance banner shows the deadline for that attempt. If the required maximum grows after you review it, refresh the upgrade page and confirm the new estimate. A request without a confirmed maximum cannot receive the longer window.

Scheduled and other unattended upgrades still have about 35 minutes after active work clears with the default settings. The upgrade reserves the full 25-minute installer timeout, leaving roughly ten minutes for the Postgres and upload backups and any preparation before the swap. If the backups and installation cannot fit, the scheduled run fails safely without swapping. Open the Upgrade Center and choose Install now to review and confirm the longer window for a manual attempt. Standing approval for scheduled runs is tracked in BI-EAFE9732 and is not available yet.

When work is still running

An upgrade no longer gives up because work is in progress. When you press Install now, confirm it, or the hourly check starts one, the portal stops accepting new work and waits for builds and coworker tasks that are already running to finish. It does not interrupt them. The upgrade installs as soon as they are done. The wait lasts up to 60 minutes by default (drainWaitBudgetMs in the self-upgrade settings). If work is still running after that, the upgrade pauses as awaiting operator: new work stays paused and nothing is interrupted. The upgrade page then offers three choices:

While it waits, the page shows how long it has waited and the limit. Force now and Abort are also available during the wait itself. These controls keep working while the portal refuses other changes.

What Happens If You Do Nothing

The install stays on its current version. The consumer channel keeps being checked, but newer bytes are not applied until an operator approves and runs the upgrade. Nothing is lost by waiting.

What Is Reversible

Recovery And Help

Connected agent clients

This section lists the AI coding tools, such as Claude Code, Codex and Grok, that connect to this install. For each one it shows the version of the DPF agent tools it loaded, how it signs in, and when it was last seen. The fingerprint next to a version identifies the exact files that client loaded.

Each client gets one of these labels:

When a client is behind, a Why line says what differs, for example that the files it loaded differ from the released ones.

Each computer that runs these tools also keeps them current on its own. A background job checks hourly and at login, and the card shows how that job last did:

If a computer has been failing, or waiting for a person, for more than a day, one item appears in your attention list. It names the single thing needed, for example confirming that the portal’s new identity is yours. A computer that is up to date, turned off or simply quiet raises nothing.

When a client such as Grok or Codex updates itself and the DPF tools stop working with the new version, the item names that client and version. The fix is a DPF update for that version. It arrives like any other update, and you do not need to do anything on the computer.

Each update also looks for agent tools installed since the last one. A tool DPF does not support yet, such as VS Code or the Gemini CLI, is listed in the update’s report rather than skipped without a word. Old Claude Code records for project folders that no longer exist are removed once, through Claude Code itself, after a backup.

After an update that ships new agent tools, the portal posts one notification that names the clients still behind. Restarting the portal without an update posts nothing. You do not need to run anything.

What To Watch

When required services are degraded

A completed portal upgrade can still show Degraded when required supporting services could not start. The banner lists the failed services; it does not mean those capabilities are working. A later upgrade retries missing containers and containers whose first startup never succeeded. Services that have run before and were subsequently stopped are left alone.

Monitoring configuration paths are resolved for the Docker host, including when an upgrade runs inside a separate container. The sandbox installs the dependencies for its current source before starting its preview server; dependency failures remain visible in container logs and health status.

On Apple Silicon Macs, speech runs as the native Chatterbox service. It is checked through its speech endpoint, not by requiring a Docker speech container. If voice is unavailable, the platform maintainer can restore it through the existing native speech setup procedure, scripts/tts/setup-chatterbox-tts-macos.sh.