What a Failed Upgrade Taught Us About Running an Agent Team

What a Failed Upgrade Taught Us About Running an Agent Team
Brandon Perfetti

Senior Frontend Software Engineer

Topics:AI
Tech:AI Agents

An agent team can be in the middle of useful work when an infrastructure update leaves its operator with a deceptively simple question: what is actually running?

The desktop app may have changed while the service behind it is still on an older version. A status screen may look promising even though a connected machine has not returned. A repair may finish, but that alone does not establish that an agent can complete the work the team depends on.

We encountered that distinction during an OpenClaw upgrade. The recovery was successful, but it was not a single green indicator. It took a return to a known state, a later migration, checks across the service and its connections, and a real agent turn the following day. Follow-up remained necessary after the environment was working.

That experience offers a useful test for anyone operating agents alone or with a small team: autonomy is not just what the system can do when everything works. It is how clearly the team can restore service, verify meaningful work, and own what remains unresolved.

The agents are only one part of the system

It is natural to picture an agent team as assistants receiving tasks and returning answers. But every useful turn depends on infrastructure around the model: an interface, a running service, stored state, connections to tools, and a route for delivering the result.

Those parts do not necessarily change together. An application can be installed at one version while the service it talks to is still running another. A service can start while a connected node—the machine or runtime offering capabilities—has not reconnected. A diagnostic can report success without proving that an agent can use the path needed for a particular task.

Each observation is useful, but each has a scope. An app opening tells you the app opened. A process starting tells you the process started. Neither observation alone proves that the whole team can resume its work.

The upstream issue describing the app/Gateway update failure illustrates that separation. The Gateway is the service that coordinates the environment. That distinction is a good mental model even if your stack looks different: the interface and the service behind it are related, but they are separate things to inspect.

During an incident, start by asking which components changed and what state each one is in. A version shown in one place should not automatically be attributed to every component in the system.

Restore a state you can reason about

In our November 26 incident, the OpenClaw app was on 2026.11.5 while the Gateway was on 2026.11.3. Recovery included a rollback and repair to a matched 2026.11.3 state. That local sequence matched the kind of app/service divergence documented in the upstream issue above.

The point is not that 11.3 is generally the correct version. It was the baseline used in this case. Returning to a coherent, known state made it possible to separate two questions: how to restore a usable environment now, and how to investigate the failed update afterward.

That distinction helps prevent a second problem: layering changes onto a system whose current state is not understood. If you do not know which service is running, which version performed a migration, or which repair already ran, another attempt may make the timeline harder to reconstruct. The next operator then has to separate the original failure from the effects of the attempted fixes.

A rollback is not a root-cause fix. It is a recovery action with a limited claim: the team has returned to a state it can inspect and verify. The incident record should still say what failed, what was restored, and what remains open.

Nor is rollback always safe or sufficient. A migration may have changed data in a way the previous version cannot safely consume. External services may have moved independently. Your recovery plan needs to account for those boundaries before an update, not assume that installing older software reverses every change.

Verify the path from service to useful work

The later migration to OpenClaw 2026.11.9 shows why recovery needs more than one check. In that attempt, the 11.9 application was installed while the Gateway was still on 11.3. After a verified cold backup, the stopped service’s LaunchAgent—the macOS service definition—was repointed to the 11.9 runtime. The 11.9 Doctor repair migrated database and heartbeat state. The operator recorded a successful restart and Gateway/node checks. A separate status check confirmed the Gateway was serving 11.9 that afternoon; a real Codex agent turn completed the following day.

Those observations answer different questions:

  • Version and service state: Which version is configured to run, and which version is actually serving?
  • Migration: Did the repair process complete the state changes it was asked to perform?
  • Connectivity: Can a necessary node connect to the Gateway?
  • Useful work: Can an agent complete a real turn through the recovered environment?

The repair log was evidence about migration activity; the later status check established a serving version. The next day’s agent turn exercised a path through the recovered system. These were different observations at different times, not one instantaneous all-clear.

OpenClaw's Doctor documentation describes diagnostic and repair checks, including configuration and migration concerns. Such checks are useful, but the practical verification target should also reflect your own workload. If the team depends on an agent reading a repository, a service status alone does not establish repository access. If the task depends on delivery, an internal completion does not by itself establish that the intended recipient received the result.

Choose bounded paths that represent the work you intend to resume. Check the service, its required connections, and a task whose outcome a person can inspect. For tools with side effects, choose a safe test rather than creating a duplicate action.

Specific language makes these checks more valuable. “Gateway started” is useful. “A real agent turn completed” says more about whether that particular path worked. “Everything is fixed” is a much broader claim and requires broader evidence.

Layered checks also tell you where to look next. If the service is running but the node cannot connect, the recovery is not complete for a workflow that requires that node. At the same time, you do not need to describe the whole environment as an indistinguishable failure. You know which boundary still needs attention.

Recovery is not the same as an upstream fix

The 11.9 cutover succeeded in this environment. The proposed upstream repair was a separate effort. Our workaround did not establish that the underlying update issue had been fixed upstream at the time of the incident.

Those are separate outcomes. The recovery outcome is that the environment was brought to a working state and a selected service-to-agent path was verified. The upstream outcome concerns the underlying issue and whether a correction has been established independently.

A workaround can be valuable without being a permanent recommendation. It can restore one environment while the cause remains under investigation. Calling it a fix too early makes later decisions harder: someone may retire a watch, repeat the failed update path, or assume a new release contains a correction that has not been confirmed.

Release notes help you understand what a project reports changing, but they do not prove that a particular environment has recovered. The OpenClaw release history is a starting point for checking version-specific changes. It is not a substitute for testing your own setup or following the issue relevant to the failure.

The useful status is precise: the service was recovered and a real agent turn was verified; the underlying upstream issue remained unresolved as of the incident. That gives the next operator both facts. Work can resume, and the follow-up still has a reason to exist.

The distinction also keeps a case study from becoming a universal prescription. The stopped-service repoint and repair sequence belonged to this environment and its observed state. Your deployment method, data, and failure may call for a different path. The transferable lesson is the discipline of observing the state, choosing a recovery, and verifying its outcome—not copying a sequence without understanding its prerequisites.

Give the remaining work an owner

After recovery, the operations owner recorded two no-model watches: a sign-in check every six hours and a daily check for an update-related fix. The operator recorded successful tests with notifications suppressed. That is a narrower claim than independently verified unattended alert delivery. These checks were follow-up work, not proof that the original update path had been repaired.

The difference between a watch existing and a watch being trustworthy matters. A scheduled check might run but fail to reach its recipient. It might report a condition that nobody owns. It might continue after the relevant issue has changed, producing noise that makes its output easier to ignore.

A useful follow-up record answers four questions:

  1. What is being watched? Name the condition or upstream change, rather than writing only “check the system.”
  2. Who owns the next action? An alert without an owner is information waiting to become somebody's problem.
  3. What evidence changes the status? A relevant upstream fix and verification in your environment may matter more than a new version number alone.
  4. How is the watch verified? Separate a test with delivery suppressed from an observed notification reaching its intended destination unattended.

The owner does not have to be the person who performed the repair. One person can own the technical check while another decides whether an issue is ready to close. The handoff needs enough context for the next action without requiring someone to reconstruct the entire incident from scattered messages.

A no-model watch can be appropriate for a narrow check that does not need model interpretation. But automation does not eliminate responsibility. Someone still needs to decide what a result means, confirm the delivery path, and revise or retire the watch when the condition changes.

This is where autonomy becomes a property of the team, not just the model. An agent can gather evidence and prepare a handoff. A person can retain a decision that requires judgment or authority. A scheduled check can keep an unresolved question visible. The system becomes more reliable when those responsibilities connect and uncertainty is recorded rather than hidden.

Make a recovery contract before the next upgrade

You can apply these lessons without copying the OpenClaw recovery. Before the next change to your agent infrastructure, write a small recovery contract for the components your team actually uses.

Start with restore. Identify the last known working state and a plausible route back to it. Note state migrations and external dependencies that could make a simple rollback insufficient. If reversibility is unknown, record that uncertainty before the upgrade rather than discovering it during an outage.

Then define verify. Choose checks that move from component state to useful work:

  1. Confirm the serving version and service state.
  2. Check the connections the intended task requires.
  3. Run a bounded, representative task and inspect its result.
  4. Record what the checks establish and what remains untested.

Finally, define own follow-up. If the immediate service is restored but a cause, upstream issue, or alert route remains unresolved, name an owner and the evidence needed to close it. Set a review point appropriate to the issue. If a watch is automated, test its delivery path separately from the condition it observes.

Consider a small team that uses an agent to prepare documentation changes. Its representative check might be a read-only task against a test repository, followed by inspection of the returned result. That demonstrates more than a running service, but it still does not prove that a write, review request, or publication path works. Each claim should stay within the path actually exercised.

The contract can fit in a short runbook or an incident record you already use. The goal is not to add paperwork to every update. It is to make the next action obvious when the person who performed the repair is unavailable—or when an agent is asked to continue work after the incident.

For your next upgrade, write three sentences before you start: what state you can restore, what useful path you will verify, and who owns anything left unresolved. If you cannot answer one of them, that is a useful finding while the current system is still healthy.

The next time you evaluate your agent team's autonomy, ask a question beyond “can it complete the task?” Ask what happens when the infrastructure beneath the task changes unexpectedly.

A resilient team can return to a known state, show evidence that meaningful work is possible, and keep unresolved issues with a named owner. That is a practical standard you can prepare for before the next upgrade—and verify when it matters.