TRANSMISSION // 2611.29619v1

Wactorz: Long-Lived AI Agents at the Edge

Source published

Wactorz is a runtime for persistent AI agents that can restart after some failures and migrate between computers. Its recorded demo illustrates these features, but does not measure how reliably they work across tasks.

AI-generated conceptual illustration for Wactorz: Long-Lived AI Agents at the Edge
AI-generated conceptual illustration; not documentary evidence.

What happens when an AI agent must monitor a sensor over time instead of answering once and stopping? Wactorz combines generated Python code, software supervision and a messaging system to support agents that persist and move between machines. Its authors describe a recorded demonstration—and limitations that leave broader reliability an open question.

Many AI-agent tools run a task and then shut down. That pattern is less suited to a system that needs to watch a camera, respond to a sensor or control a light over time. In a paper describing Wactorz, Panagiotis Kasnesis and colleagues present a runtime designed for agents that persist, recover from some failures and can be moved between computers near the devices they serve.

The practical question is whether a language model can create and connect agents for a physical-computing setup while software handles crashes and changes in hardware. Wactorz, an open-source system described in version 0.8, combines model-written Python with supervision and MQTT, a messaging protocol used to connect devices and services.

From a request to a running agent

A user makes a request in ordinary language. For a multi-step task, Wactorz’s planner produces a plan and Python code, turning each step into an agent. Agents exchange information by publishing and subscribing to MQTT topics rather than calling each other by name. Wactorz records topic information and sample messages, helping a new agent use data that an existing one actually publishes.

Each agent has a message loop and can save state through a persistence interface. A supervisor can restart a failed agent without restarting the others. The system can also send runtime errors to a language model for code repair. Separately, agents can be moved to another node, such as a Raspberry Pi.

Migration is not simply a seamless handoff. Wactorz stops the agent first, then transfers serializable state and associated files. The source keeps its copy until the destination confirms the agent has started. If confirmation does not arrive, the destination is told to discard its copy and the agent is restarted at the source. Some state cannot be moved, and the system sets size limits on transfers.

These are distinct capabilities: restarting after a crash is not the same as repairing code, and neither guarantees that an agent still behaves as the user intended.

What the demonstration reports

The authors describe one recorded, unedited demonstration. In it, a chat request leads Wactorz to create a camera-based person detector and a light-control agent. A second request adds a counter that subscribes to the detector’s topic and saves its running total. The user asks the counter to divide by zero once it reaches a specified value.

After repeated errors, the system sends the code and traceback to a language model for repair. According to the paper, the counter resumes without losing its saved count, while the light continues to operate. The team then provisions a Raspberry Pi and migrates the counter there; it continues receiving messages from the detector on the original machine. The authors report that this run took under four minutes and used $0.13 in model calls. Those figures describe the reported demonstration, not typical performance across tasks or hardware.

What remains uncertain

The paper’s evaluation statement is important: it reports one run of one scenario and no systematic measurements of repair success across models or fault types. Broader evaluation is left for future work. The demonstration is therefore an example reported by the authors, not an independent validation of how often the sequence succeeds. It does not establish how repairs perform across different failures, whether they generally preserve intended behavior, or how the system fares over months of operation.

The example also shows why recovery is not the same as correctness. The repair removes the division-by-zero behavior so the counter can run again, although the user had requested that behavior. The authors describe repair as restoring liveness, not intent. The repaired source is saved and visible to an operator, but visibility alone does not establish that a repair is right.

Security and migration have constraints. The paper says the code validator is not a sandbox: it blocks some operations, but code may still cause harmful effects through permitted modules, and agents in the same process share privileges. Isolation comes from placement—for example, running model-written code on a sandbox node or separate machine. Migration can be blocked by state that cannot be serialized or rebuilt; forced moves may leave such state behind. The paper also specifies default limits for transferred state and files.

Wactorz is a proposed runtime, accompanied by a demonstration and a detailed account of its design and limitations. The supplied source identifies the work as an arXiv preprint but does not establish its review status. Its reported results support a narrow conclusion: the authors show how persistent agents, supervision, repair and migration fit together in one scenario. Systematic testing across tasks, hardware and failure modes would be needed to assess performance beyond that example.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • What counts as success in AI software migration?

    Supporting evidence: Both papers caution that a narrow success measure does not establish that software meets its intended behavior: Wactorz’s demonstration shows a repair restoring liveness while removing requested behavior, while the migration survey distinguishes build and test results from runtime behavior. These are complementary cautions, not directly comparable evaluations; one concerns a single agent demonstration and the other surveys migration studies.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.29619v1 — Original paper

      Excerpt reference: static/papers/2611.29619v1.md:397-472
      Basis: Paper text
      Source SHA-256: b793ae03e177a6422e20e0ca755c64dde7298095ebd85dbe83e7e923e06b2fd8

    • 2611.29942v1 — Original paper

      Excerpt reference: static/papers/2611.29942v1.md:191-319
      Basis: Paper text
      Source SHA-256: b792d40667c352278f326b7304160e183fb68e5a4530ebf15bde0dcd96ff7ede

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.