arXiv:2609.00546cs.SESep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.00546

Runtime-Independent Persistent Agents: Preserving Identity, Memory, and Code Across Models, Harnesses, and Servers

Zhenyu Zhao, Roy Zhao

Abstract

Agent systems are commonly described by the model and harness that currently produce their behavior. That boundary is useful for one execution but underspecifies a long-lived agent that may change models, orchestration harnesses, interaction sessions, and host servers while retaining one identity, memory, and executable code lineage. We present a runtime-independent architecture for persistent agents. A continuity-bearing substrate Pt=(It,Mt,Bt)\mathcal{P}_t = (I_t, M_t, B_t) contains an architectural identity representation, private durable memory, and a versioned software body. A replaceable deployment binding comprises an execution substrate Et=(Rt,Ht,Dt)\mathcal{E}_t = (R_t, H_t, D_t), which supplies a reasoner, harness, and host, and a set of interaction surfaces StS_t, such as chat, API, or user interface bindings. A deployed execution is At=Pt▹(Et,St)\mathcal{A}_t = \mathcal{P}_t \triangleright (\mathcal{E}_t, S_t); changing either replaceable layer is migration, not agent creation, when an authorized protocol preserves attributable lineage and transfers continuation authority within a governed deployment boundary.

We define six continuity invariants and a quiesce-checkpoint-validate-bind-rehydrate-resume protocol. Enoch realizes the design as a reusable body plus private installed identity, memory, workflow state, and continuation authority, with infrastructure dependencies behind versioned provider contracts. A clean-room run of the frozen public commit passes 833 core tests and 92 provider and library tests executed separately from the core suite; deployments have exercised reasoner-version, interaction-surface, and host-machine substitutions while retaining continuity-bearing state. This evidence supports mechanical substitutability and authorized system continuity, not behavioral invariance or exhaustive pairwise evaluation. The downstream measurement question is whether an authorized continuation still recalls, composes, and enacts its identity.

1 Introduction

An agent can outlive a chat. It can also outlive the model, harness, process, machine, or provider that happens to execute its next action. A personal agent may begin in one chat application, move from a laptop to a server, replace a reasoning model, resume an unfinished task through another harness, and still be treated by its user as the same agent. Existing systems contain many of the necessary mechanisms – persistent memory, resumable sessions, provider adapters, durable queues, and versioned code – but these mechanisms do not by themselves define the agent boundary.

A common shorthand identifies an agent with a model plus an agent harness. It captures a useful synchronic question: what currently generates behavior? It does not answer the diachronic question: what must remain continuous for two executions at different times to be executions of the same agent? If the model is replaced, did the agent migrate or die? If the same memory is copied into two processes, are both the original? If a chat session is reset, has a new agent been created? These are architecture and lifecycle questions, not only prompt engineering questions.

We propose a sharper boundary. The persistent agent is the continuity-bearing substrate of identity, memory, and executable body. Models, harnesses, and servers form a replaceable execution substrate. Chats, APIs, email, and user interfaces are replaceable interaction surfaces. The model and harness remain causally important: they shape current behavior and capability. A communication surface determines where an interaction occurs. Neither is a necessary invariant of longitudinal identity.

A specific chat is therefore not the agent's mind or identity-bearing core. The capability to communicate is implemented by the body through provider contracts; a current chat account, channel, thread, or session is an external binding. Conversation-derived facts, relationships, commitments, and unfinished work become persistent only when they are committed to memory or durable workflow state. A persistent agent does not live inside a chat; it enters and leaves chats.

This paper extends the agent-owned software-body boundary introduced in prior work [1]. That work asks what users can possess, inspect, evolve, and use for descent. The present paper asks a different systems question: how the whole continuity-bearing substrate can be rebound to a new deployment without silently creating a new agent, resetting its history, or allowing two hosts to act as the sole authority.

The paper makes three contributions:

  1. A runtime-independent agent boundary. We separate a logical persistent substrate (I,M,B)(I, M, B) from a replaceable execution substrate containing the reasoner, harness, and host, plus independently replaceable interaction surfaces.

  2. Migration semantics and continuity invariants. We distinguish migration from restart, evolution, identity update, replication, and descent, and define an authorized migration protocol with explicit failure semantics.

  3. An implemented reference architecture. We map the boundary to Enoch's reusable versioned body, installed-agent identity and memory, provider contracts, durable workflow state, fencing, conformance suites, and host-service adapters, reporting executable mechanism evidence and its limits.

Figure

Figure 1: Runtime-independent agent boundary. An installed agent binds identity and private memory to an authorized reusable-body revision; each deployment supplies replaceable execution and interaction bindings.

We use identity functionally, not phenomenally. The paper does not claim consciousness, personhood, or metaphysical persistence. We call a transition authorized system continuity when the persistent lineage, state, body, and execution authority satisfy the architectural invariants. We call the degree to which the resulting execution recalls, composes, and enacts its identity behavioral identity fidelity. Unless explicitly qualified, claims of continuity in this paper refer only to the former.