Manuscript Offprint
arXiv:2608.28553Logos: An Agent Harness on a Cross-Process Bus
Abstract
Modern agent systems assemble capabilities at runtime, and this dynamic composition has recently received a complete formal treatment in the spatiotemporal-composability calculus, in which a capability is a component carrying a tracked inverse, and agents are assembled as plugins. This plugin form is carried by a single process sharing one context, a carrier that places all components in one physical failure domain, a fault suspends every component at once, and process death interrupts every session the process hosts. This paper shows that neither the modeling nor the calculus binds an agent to one process, the stateless interface of the model call keeps all cross-step state outside the call, and the soundness invariant is defined on the state space alone. These observations condense into four lemmas whose premises are the hypotheses of the calculus and the stateless interface of the model call. On these lemmas this paper constructs Logos, a ROS-like cross-process agent harness in which a plugin is a process and the session state needed for recovery lives in an append-only transcript. Eighty sessions resume with no repeated effect after kills placed at the four boundaries of the tool-call cycle, and a same-fault comparison with a single-process reference configuration shows one fault interrupting every co-resident session while under the peer-process construction one fault ends at one node.
Keywords
LLM agents, agent infrastructure, distributed systems, hot swapping, fault tolerance, composability
ACM Reference Format:
Hanzhang Jia, Liheng Zeng, Hao Cheng, Yi Gao, and Bo Ma. 2027. Logos: An Agent Harness on a Cross-Process Bus. In Proc. of the 26th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2027), Hanoi, Vietnam, 3–7 May 2027, IFAAMAS, 10 pages.
Hosting all plugins in one process incurs four engineering costs. A physical fault in the hosting process, a crash, memory exhaustion, or a blocked event loop, terminates all components at once, the withdrawal of one service unloads its dependents and renders the tools they provide unavailable to the model until reload, so the isolation that holds between components in the mathematics loses its meaning inside a shared process. The death of the process terminates every component and every co-resident session at once, and recovery restarts the whole stack. Replacing or upgrading one plugin requires a process restart or a reload that tears down and re-runs every dependent, and every co-resident session halts with the restart. In-process plugins are also confined by the host runtime, its loading mechanism, and its interfaces, and a cross-language component needs an additional interoperation layer. Together, these four costs point to plugin composition across processes.
For these problems, this paper presents four lemmas. Lemma 1, orchestration externality, asserts that each call of the model is a stateless pure map, that cross-step state already lives outside the call, and that the input can be synthesized anywhere. On this basis, Lemma 2, carrier substitution, allows state to move to any persistent carrier, and recovery rebuilt from the carrier equals in-place recovery under observational equivalence. Lemma 3, recovery localization, draws on the calculus's assumption of component independence and asserts that the recovery of each component needs no coordination with any other. Finally, Lemma 4, external resolution, moves dependency resolution out of the process as well, into a table keyed by capability name. The four lemmas rest on nothing beyond the assumptions the calculus already states and the stateless interface of the model call, adding no new mathematical hypotheses. It follows that spatiotemporal composability holds across processes. Considering the design freedom of complex systems and the plugin form, this paper therefore borrows the peer-process and name-routed form of the ROS architecture [6] and constructs Logos, a distributed plugin-based system. The system runs as a set of peer processes on a bus. A harness runs the loop of input synthesis, model calls, and output settlement over one session.

This work is licensed under a Creative Commons Attribution International 4.0 License.
Proc. of the 26th International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2027), M. Baldoni, F. Fang, W. Yeoh, N. Yorke-Smith (eds.), 3–7 May 2027, Hanoi, Vietnam. © 2027 International Foundation for Autonomous Agents and Multiagent Systems (www.ifaamas.org).
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
A tool provides a capability. The router registers nodes and forwards messages by recipient. A node is any process that conforms to the protocol, and anything the rules admit mounts as a peer. In Logos a plugin is a process, the router holds only its routing table, and the session state needed for recovery lives in an append-only transcript owned by no process. The transcript records every step of a session as it happens, and when the process running a session's loop dies, a new process rebuilds the session from the transcript and continues, a form of recovery called cold switching. The language-neutral protocol admits mixed-language nodes, a Go router, Python harnesses and tools, and Node.js tools running as peers on one bus.
Runtime verification shows that Logos pairs every call with its own answer, keeps one registrar per node id, and delivers supply-change notifications in one order, establishing the engineering feasibility of the distributed architecture, and a stress audit exercises each condition directly, with 3,500 calls from as many as two hundred concurrent callers paired with no loss, duplication, or misattribution, one registration wins among one hundred simultaneous claims of the same node id with ninety-nine explicit denials, and two observers record identical supply-change sequences across thirty rounds of churn among fifty providers. In concurrent multi-agent scenarios, routing restores automatically after the router is killed, and the tasks of the harnesses complete as usual. Twelve end-to-end sessions undergo six process kills, all resume through cold switching, and no previously executed action is repeated after recovery. Eighty further sessions extend the coverage to four kill points of the tool-call cycle, during tool execution, after return but before persistence, after persistence but before announcement, and after announcement. All eighty resume and complete with no repeated effect, and the work redone after recovery equals exactly the work the transcript had not yet recorded. A tool comes online during a task, and the model makes its first autonomous call 8.4 s after the registry-update broadcast. The median cost of a bus hop is 0.215 ms, 1/823 of the model's 177 ms first-token latency, invisible at the model's time scale.
Existing distributed architectures move tool servers or execution across processes, MCP and its derivatives move tool servers out of the process, and Temporal and its peers move execution out of the process, while composition and assembly remain in the host [2, 8]. Logos moves composition and assembly themselves out of the process, carried by registration and broadcast among peer nodes.
In summary, this paper makes three contributions.
-
The sufficient conditions, Theorem 1, under which the reversibility guarantee of the spatiotemporal-composability calculus holds across processes, with the four supporting lemmas of orchestration externality, carrier substitution, recovery localization, and external resolution, premises drawn from the calculus itself and the stateless interface of the model call, stated in Section 4.
-
The construction of Logos, a cross-process agent harness borrowing the peer-process and name-routed form of ROS, in which a plugin is a process and the session state needed for recovery lives in an append-only transcript, constructed in Section 5.
Table 1: What each framework moves out of the process, and what stays in it.
| Framework | Moves out of the process | Stays in the process |
|---|---|---|
| MCP and its derivatives | tool servers and calls | composition and session state |
| Temporal and its peers | execution | assembly and the workflow definition |
| AutoGen and LangGraph | nothing | all capabilities as in-process objects |
| Logos | composition and assembly, state into the transcript | nothing but a rebuildable routing table |
- Adversarial and end-to-end evaluation of the fully implemented system, covering concurrent recovery under router failure, cold-switch resumption after process termination, autonomous adoption of tools introduced during a task, and mixed-language operation on one bus, measured in Section 6.
2 Related Work
In-process agent frameworks make the capability a library object inside the host that imports it. AutoGen organizes capabilities through conversation programming [9], and LangGraph organizes them through state graphs [3], both as in-process objects. Logos, in contrast, gives each capability its own operating-system process and places composition on the bus.
Existing distributed architectures move tool servers or execution across processes. MCP and its derivatives move tool servers out of the process, with calls crossing processes while composition remains in the host, which holds session state [2]. Temporal and its peers move execution out of the process, with assembly remaining in the workflow definition and recovery delivered through history replay [8]. Table 1 lines up the four frameworks by what each moves out of the process and what stays in it.
The architectural design borrows from the robot operating system, whose peer processes and name-based routing this construction adopts [6]. The spatiotemporal-composability calculus takes plugin assembly as its subject and proves a reversibility guarantee in a single-process reference [7]. This work takes that treatment as its starting point and extends it to a multi-process carrier with sufficient conditions, a construction, and measurements. Two parallel preprints study adjacent questions of agent state and history [4, 5]. Neither examines cross-process reversibility. Within the frameworks surveyed, composition and assembly stay in the host process or the workflow definition, and this work moves them onto a bus shared by peer nodes.
3 Preliminaries
The notation fixes a context , an effect context made of the state and the accumulated inverse composite , the two transformations track and recover, the transformation monoid , observational equivalence , the macrostate projection , and compositions reading from right to left. Theorem numbers follow the
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
calculus, and notations introduced in Section 4 are defined at their first occurrence.
Definition 1 (Component). A component is an effect function on the context, a map that takes a state to a pair of a new state and an inverse map , where the inverse returns the witness state, , and is unconstrained at every other state.
A single g with
meets the constraint at every state at once and induces an element of the witnessed form, and the calculus proves the induction a homomorphism.
Definition 2 (Assembly and removal). Assembly and removal are the two transformations track and recover, where track applies an effect and extends a running composite of inverses, and recover applies that composite to the current state and resets it, so that removal reverses every applied assembly in the reverse order of application.
What each tracking step preserves is the result of recovery itself, from whatever state it is taken.
Definition 3 (Independence). Two effect functions are independent when every transformation of one commutes with every transformation of the other, and neither one's transformations disturb the inverse the other yields.
The global theorems of the calculus assume pairwise independence, and coefficient operations on disjoint keys commute unconditionally.
Definition 4 (Soundness invariant). The soundness invariant states that for every effect pair with , recovering after tracking returns what recovering before tracking would have returned, that is, the value
is unchanged along every witnessed track step, and recover reads it out.
The invariant is a property of the state space alone, its definition refers to the context and to composition of maps and to no process, no memory, and no closure.
Definition 5 (Observational equivalence and macrostate). Observational equivalence relates two states when no observer of the context can distinguish them, and the macrostate of is its equivalence class under the projection .
Every recovery equality holds up to .
Definition 6 (Registry). A registry maps each name to its fiber and is well formed when parent pointers form one tree rooted at a common root, the provides sets of distinct fibers are disjoint, and a committed view resolves a demand key to at most one installed provider.
Preservation of this form is a theorem of the calculus, every rule step carries a well-formed registry to a well-formed one.
Definition 7 (The outside). An operation is outside the boundary when the system can neither exclusively modify nor recover its state, an outside operation acts as the identity on the context and is neither tracked nor recovered, and emission, the crossing form, has withholding and compensation as its only routes.
Compensation holds at a coarser equivalence.
4 Sufficient Conditions
4.1 From One Process to an Assignment
The formal model of the calculus shares one context among all plugins, all records of assembly and removal, and all sessions it hosts. The soundness invariant of Definition 4 carries no carrier, it is a property of the state space alone. The records of assembly and removal lack this freedom, they reside in the shared context, and the shared context resides in the process that hosts it. The calculus states no theorem for more than one process, and its sole treatment of the process boundary is an application note, in which the service broker spans processes and calls obey an asynchronous contract. The implementation of the calculus hosts the shared context in a single process.
This paper therefore relaxes the co-residence restriction, the confinement of components and records to one process, to an arbitrary assignment of components and records to processes, and the soundness invariant imposes no constraint on the assignment. Under an assignment, an abstract trace is a sequence of assembly and removal steps in the state space, and an implemented trace is the sequence of steps the processes actually perform. An assignment is faithful when for every abstract trace there is an implemented trace such that the two agree pointwise under ,
4.2 Two Modeling Facts
The first modeling fact is that a call of the language model is a stateless pure map, all cross-step state resides outside the call, and the input can be synthesized anywhere. The second modeling fact is the minimal model , input synthesis and output parsing are operations outside f, and a multi-turn session is nested passes of f with synthesis and parsing as the outer routing. Together the two facts make a session a sequence of stateless maps over an external sector, and co-residence a choice.
4.3 Four Lemmas
LEMMA 1 (ORCHESTRATION EXTERNALITY). If the model call is a stateless pure map and synthesis and parsing are outside it, then all cross-step state resides in a shared sector S, the store the runtime reads and writes, outside any model call, the runtime's entire role is the two operations of input synthesis and output settlement , and the model runs as an ordinary dispatchable node.
Cross-step state cannot live inside a stateless map, and synthesis and parsing are defined as external operations, so the shared sector is the only remaining residence. The input is the projection of the system state to the model input, and any process that reads S can synthesize it.
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
LEMMA 2 (CARRIER SUBSTITUTION). Let be the inverse data of a history with anchors and inverses . A persistent store with a readout map is a faithful carrier when holds at every anchor, and the accumulator rebuilt from the carrier by composition in application order is -equal to the original, so recovery through the carrier equals in-place recovery under .
The inverse data form a monoid, a composite of maps that respect respects , pointwise equality of readouts composes to equality along the chain, and recover merely evaluates the invariant. Reversibility leaves a record, a persistent carrier is the physical lower bound of the reversible, and process memory under a deployment that tolerates process death satisfies the premise for no process. The inverse data that recovery still needs after a process dies must live outside the process, the transcript keeps the generator sequence, the accumulator is a deterministic composite of that sequence in application order, and a new process that imports the transcript rebuilds the external accumulator and composes it with what the failed process had kept.
LEMMA 3 (RECOVERY LOCALIZATION). Let the effect functions of components through be pairwise independent in the sense of Definition 3, and let an arbitrary partition place them into processes. The inverse data of a component then need reside only in its own process, global recovery is any global interleaving of the per-process recoveries, and no ordering constraint and no shared state exists between processes for the sake of recovery.
Any interleaving of the local last-in-first-out sequences is a permutation of all the inverses, recovery is invariant under permutation of the applied inverses, so the endpoint is the same whichever interleaving runs. The shared mutable state of this system is entry tables whose operations are appends and deletions, which fall inside the domain the commutative keys satisfy, and the discharge mechanism of the calculus is the basis. Shared databases and quota resources pass through single-writer tools or stay outside the boundary.
LEMMA 4 (EXTERNAL RESOLUTION). The operating requirements of spatial composability are the real-time resolution of keys to providers, a single writer per key, and supply before demand with withdrawal after consumption, and their content is entirely an assignment of keys to providers, that is, a routing table.
The routing table is the representative case of a commutative key in the calculus. Registration and withdrawal form revertible updates, the table resides in the commutative part of the state space, and under the same sequence of registration events a copy maintained by broadcast is observationally equivalent to an in-memory registry. A formal model of the registry appears in the appendix.
4.4 The Theorem
THEOREM 1. An implementation over processes is a faithful implementation of the calculus and the two modeling facts when every effect that must be reversible writes its anchor to a persistent transcript at the step of occurrence, and every key admits one writer, enforced at registration.
Under the two conditions, Lemma 1 places the state in the shared sector and Lemma 2 makes the transcript a faithful carrier. Lemma
Table 2: The four lemmas and the corresponding parts of the construction.
| Lemma | Construction part |
|---|---|
| 1, orchestration externality | the model running as an ordinary dispatchable node on the bus |
| 2, carrier substitution | the append-only transcript and cold switching |
| 3, recovery localization | capabilities as independent processes, recovery data per component, persistent records in the transcript |
| 4, external resolution | the router holding only the routing table, registration as a revertible effect |
3 confines each component's recovery data to its own process and Lemma 4 moves resolution to the routing table, and an induction over the abstract trace yields an implemented trace agreeing with it pointwise under .
PROOF SKETCH. The base case holds, the empty abstract trace is implemented by the empty trace. Each assembly step uses Lemma 1 to place the state in the shared sector and Lemma 2 to make the transcript prefix the anchor record, and the pointwise agreement under holds after the settlement is recorded. Each removal step uses Lemma 3 to confine recovery to the component and Lemma 4 to move resolution to the routing table, and the pointwise agreement under follows. The full induction appears in the appendix.
The theorem admits a distributed implementation, and the practical construction is subject to three constraints, E1 every response is paired with its own call, E2 each node id carries one registration and a conflicting claim receives an explicit refusal, and E3 every observer receives the same sequence of supply-change notifications. The single-registration constraint is the single-writer clause of the theorem enforced at registration, and the common order of notifications is the supply order of Definition 6 carried by the broadcast. A deployment as a set of peer processes is admissible once the bus time scale separates from the model time scale, a millisecond hop against a first token a hundred times slower, the topology stationary at the step scale of the model.
Table 2 lists the four lemmas against the parts of the construction that satisfy them.
5 The Logos Construction
This construction moves composition and assembly out of the host process. A bus takes the place of the host. The router maintains a rebuildable routing table. The transcript and the event stream belong to no process. A plugin is a process. A message follows the full path, the harness synthesizes input from the transcript, the model answers, the router forwards the tool call, the result settles into the transcript, and the broadcast carries the change to every node. Figure 1 shows the construction.
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam

Figure 1: The Logos construction, peer processes on a bus, the router maintaining a rebuildable routing table, harnesses and tools as nodes, and the append-only transcript holding the session state needed for recovery.
5.1 The Bus
The router is a single Go process that registers nodes and forwards messages by recipient. Its three duties are registration, forwarding, and broadcast, a node registers under an id with a role and a list of provided capabilities, a call is forwarded to the recipient id the caller resolved from the table, and an event is delivered to every registered node. The router holds only its routing table, it schedules nothing and it reads no payload. A message names its recipient, an id for a direct delivery, the wildcard for a broadcast, and a missing recipient returns an explicit error to the sender. The wire protocol is NDJSON over TCP, one object per line, frames up to 64 MB, malformed lines skipped, and lossy streams are separated from control messages, which are paired and never dropped. Each connection holds a bounded outbound queue of 1024 entries with its own writer coroutine, a write timeout of five seconds disconnects the peer, a full queue drops the oldest entry of a lossy stream and counts the drop in a notice, and a full queue of control messages disconnects the peer. Delivery is layered, control messages are paired by global call ids and never dropped by the queue, and a lossy stream loses at most a prefix, the surviving sequence stays contiguous. A disconnected node re-registers, and the replay fills the gap. Every registration and every refusal returns a receipt to its sender, and a refused duplicate node id carries an explicit denial. The bus imposes no language, a tool is any process that implements the protocol, and Go, Python, and Node.js processes run as peers on one bus in this system. The bus pairs on global call ids, keeps single registration by explicit refusal, and delivers broadcasts through per-observer queues.
5.2 The Routing Table
The routing table maps a node id to a connection, together with the role and the provided capabilities. Any node can read the whole table at any time, registered or not. Registration adds a row, departure deletes it, and the online and offline broadcasts carry the
Algorithm 1 Harness loop with recovery
Require: session id, transcript 1: import the transcript, rebuild the projection 2: loop 3: synthesize input from the projection 4: call the model, stream the answer into the transcript 5: if the model asks for a tool then 6: route the call, append the result to the transcript 7: end if 8: settle outputs, broadcast the change 9: {when the process running the session dies, resume from line 1} 10: end loop
change to every node. One node id admits one row, and a conflicting claim receives an explicit refusal. Registration is a revertible effect, and a copy maintained by broadcast of registration events is observationally equivalent to the in-memory table, following Lemma 4.
5.3 The Transcript
The transcript is an append-only JSONL file owned by no process, the source of truth of the session record, and every step of every session is written to it as it happens. An entry records the round, the input, the tool uses with their results, and the streamed text. Messages shown to the model are a projection over the transcript, long tool results are pruned in the projection while the full text remains in the file, and nothing is removed from the file itself. The append-only form is the free monoid on the generators of the inverse data, the mathematical carrier of Lemma 2. The replay of a transcript is checked against four invariants, I1 entries follow a well-formed order, I2 identifiers are monotone, I3 every tool use has exactly one result, and I4 the rebuilt projection equals the messages the session showed. The settlement order is durable before visible, an effect is appended to the transcript before it is announced on the bus.
5.4 The Event Stream
An observer node records every broadcast into an append-only file, the event stream. The stream covers system behavior, the transcript covers the session, and the two stay separate. The same replay checks apply to both.
5.5 Nodes
A node is any process that conforms to the protocol, and anything the rules admit mounts as a peer. A harness runs the loop of input synthesis, model calls, and output settlement over one session, and a tool provides a capability. A node registers with one of three roles, harness, tool, or observer, and the observer receives every broadcast and announces nothing. Every process holds the same handle, and the roles differ only in the register call. Harnesses and tools count equally as residents, and the router exits when no resident remains. Algorithm 1 gives the loop.
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
5.6 Assembly, Removal, and Recovery
A capability is a process, tools mount at their own endpoints with the router unchanged. Mounting with a missing provider leaves the component in waiting, its calls answered by an explicit refusal naming the missing capability, and a later online broadcast activates it without code change on any side. A provider going offline triggers re-resolution, a replacement provider of the same capability rebinds the dependents, and a provider announcing departure waits for its confirmed dependents to leave before it withdraws. The discipline is a soft layer over the late binding of the bus. The order follows Definition 6, supply precedes consumption and withdrawal follows it. When the process running a session dies, a new process of the same id imports the transcript, rebuilds the projection, and continues the session. Recovery has no rollback and no fork, the rebuilt view equals the view the failed process held, and the steps already recorded are never repeated. The rebuilt accumulator composes with whatever the failed process had kept, following Lemma 2, and no other process participates, following Lemma 3. An outward effect, payment for example, stays outside the boundary of Definition 7, untracked and unrecovered, with withholding and compensation as its only routes.
6 Experiments
6.1 Testbed
All measurements run on one machine, an AMD Ryzen 7 7435H with 16 GB of memory under Windows 11, the router and every node as separate processes over the loopback bus, the router in Go 1.26, harnesses and tools in Python 3.13 and Node.js 24. The models in these measurements are DeepSeek V4 Flash, DeepSeek V4 Pro, GLM-5.2, GLM-5.3, Claude Opus 5, Claude Opus 4.6, GPT-Image-2, and GPT-5.4, the end-to-end and multi-agent runs use DeepSeek V4 Flash, the crash-point runs use GLM-5.2, and GPT-Image-2 is the model behind the imagegen tool. Faults arrive as kills of live processes from outside the system. Every assertion is checked against two independent on-disk sources, the transcript and the event stream, and every scenario carries a replay command.
Table 3 lists the scenarios. The comparison group composes the same session code from the reference implementation of the calculus, same faults, same injections, same criteria, and what the comparison varies is the form of residence.
6.2 Scale Separation
A bus hop costs a median of 0.215 ms over 10000 calls, with a 99th percentile of 0.377 ms, a 99.9th percentile of 0.623 ms, and a maximum of 3.045 ms. The in-process baseline is a median of 0.005 ms, so the bus costs 43 times a local call. The model side costs a median first token of 177 ms over three calls and a median full inference of 1896.8 ms, so one hop is 1/823 of the first token and 1/8822 of the full inference.
Concurrent loads of 50, 100, and 200 callers run three rounds each with zero losses, and an audit of 3500 calls from 200 concurrent callers pairs every call with its answer, with no loss, no duplication, and no misattribution. A compute-bound pair of tools, each saturating one core, finishes in 2000.8 ms on two cores against
Table 3: The measurement scenarios and their main results.
| Scenario | Model | Main result | |
|---|---|---|---|
| Bus hop latency | GLM-5.3 | median 0.215 ms over 10,000 calls | |
| Model-side latency | DeepSeek Flash | V4 | first token 177 ms, full inference 1896.8 ms |
| Router and tool kill | Claude Opus 4.6 | 20 and 10 trials, all sessions alive | |
| Cold-switch mechanism | GPT-5.4 | pure-function check 100 of 100 | |
| End-to-end resumption | DeepSeek Flash | V4 | 12 of 12 sessions |
| Crash points | GLM-5.2 | 80 of 80 sessions at four kill points | |
| Plugin assembly | DeepSeek V4 Pro | removal 10 of 10, modification 5 of 5 | |
| Multi-agent faults | DeepSeek Flash | V4 | three harnesses, two injected faults |
| Contention and adoption | GLM-5.3 | 4.00 s serialization, first call 8.4 s | |
| Conformance audit | Claude Opus 5 | 3,500 paired calls, violations zero |
4001.3 ms serialized in one host, the two-to-one gap being the host's single core.
6.3 Router Kill
Killing the router process in twenty trials leaves every node alive and every session running, the nodes reconnect through supervision, and restoration takes a median of 858 ms, every trial between 857 ms and 860 ms. The restoration window is set by the supervision polling granularity, the supervision loop polls, detects, and relaunches, and the window follows the polling loop alone. The death of the router narrows the failure domain from every session to the routing-change window, nodes keep their sessions running through direct connections.
Killing a tool process in ten trials returns errors to its callers in 0.321 ms, the provider remounts in 100.5 ms on the production grid, and the transcript replays under I1 through I4 without a bad line. For comparison, killing the whole host of the single-process configuration is detected in 149.5 ms by the external watchdog and the full stack restarts in 397.9 ms with a total outage of 547.1 ms, while the same fault here ends with the node remounted in 41.3 ms in thirty trials on the comparison grid and the other nodes unaffected.
6.4 End-to-End Resumption
Twelve sessions run under six process kills, all twelve deliver under the same criteria, no previously executed action is repeated, and the rounds after each kill are 3, 4, 2, 3, 2, and 4. A restart costs 1.36 s, following the path of Theorem 1, the transcript prefix as the anchor record and the rebuilt accumulator composed onto it. The white-box replay of the event streams passes I1 through I4 with
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam

Figure 2: The timeline of the concurrent sessions, three harnesses share one tool, the router and the tool provider killed together, the fault detected through the broadcast, the tool remounting, and the three rounds completing.
monotonically matching identifiers, and an extended run of thirty resumptions succeeds in 30 of 30 trials.
Eighty further sessions extend the coverage to four kill points of the tool-call cycle, during execution, after return but before persistence, after persistence but before announcement, and after announcement. All eighty resume and complete with no repeated effect, and the work redone after recovery equals exactly the work the transcript had not yet recorded, four rounds at the first two points, three at the third, two at the fourth.
6.5 Assembly, Adoption, and Arbitration
Removal with a tracked inverse succeeds in 10 of 10 trials with the external state remounted, in-place modification of a mounted tool succeeds in 5 of 5, isolation between sessions sharing the bus holds in 10 of 10 with a median hop of 0.243 ms, and fifteen rounds of churn among providers leave the table equal to the set of living providers in 15 of 15 trials. A tool coming online during a task is adopted autonomously, the first call arrives 8.4 s after the registry-update broadcast with no prompt naming the tool, and three such adoptions all succeed, an extended run at 10 of 10.
One registration wins among one hundred simultaneous claims of the same node id with ninety-nine explicit denials, each denial reaching its claimant, and two observers record identical supply-change sequences across thirty rounds of churn among fifty providers, the event stream alone reconstructing the final table. A duplicate node id never enters the table, and an online tool reaches its consumers through the broadcast alone.
6.6 Concurrent Sessions
Three harnesses share one tool under two injected faults. The provider of the shared tool is killed alongside the router, the fault is detected in 2.8 ms through the broadcast, the tool remounts in 1 s and the model adopts it autonomously, and the system restores service. Figure 2 shows the timeline of the two faults and the recovery.
The window costs six interim results, the three rounds complete in 9, 4, and 3 turns, and the two faulting sessions deliver with two errors each, both caught at the time. The calls inside the window reach the dead provider and return explicit errors, the loud failure of the injection, the model retries and corrects in later turns with every step on the transcript, and the three rounds deliver all results correct. Six results are recomputed and the faulting session takes 135 seconds against the 5 seconds of the untouched sessions.
Two harnesses claim the tool simultaneously, the calls serialize through 4.00 s, each answer returns to its own caller, and no false timeout occurs. The three sessions recover each from its own shard of the transcript with no coordination, Lemma 3 partitioned per session.
6.7 Single-Process Comparison
Both configurations run the same session code under the same faults. The single-process configuration composes it from the reference implementation of the calculus [1], version v0.1.0-rc.5 with 250 file fingerprints recorded, and faults arrive as process-tree kills from outside either configuration, and the criteria are the same, an interruption being a session's largest gap between consecutive outputs exceeding one and a half times its period. What the comparison varies is the form of residence, one host process versus a set of peer processes.
Restoration after provider withdrawal in the single-process configuration is serial in the number of dependents. Each dependent's setup re-runs on the shared event loop, one after another, so with 50 ms of loading work per dependent the restoration takes 250.9 ms at five dependents, 501.5 ms at ten, and 1003.0 ms at twenty, and during the whole restoration an unrelated session in the same host cannot run, frozen for 987.2 ms at twenty dependents. The loading work is controlled injection, and the measurement reads the slope of the per-dependent restoration cost across the three dependent counts. The no-load cost of the swap mechanism itself is 0.263 ms to withdraw and 0.567 ms to restore, which is 0.2 percent of the restoration at five dependents and 0.06 percent at twenty. The single-process advantage in swapping cost exists only when the components being swapped do no work, and under real loading it vanishes into the serial re-execution it must perform. The peer-process construction pays one process start, 126.3 ms measured at the twenty-dependent point, and an unrelated session in its own process runs throughout, with zero freezing.
A component whose remote resource goes offline terminates its host. The unhandled rejection from the connection attempt propagates past the plugin boundary and ends the whole process in all five trials, and repair requires redeploying the resource and cold-restarting the entire stack, 1105 ms before the session runs again. The failing node in the peer-process construction returns an explicit error to its caller and keeps running in all five trials, and repair is the resource's return, the next round resuming in 107.8 ms, since the node never died and there was nothing to restart.
The host’s death reaches every session it hosts, so the number of interrupted sessions is the number of co-resident sessions, a structural consequence of hosting sessions in one process rather than a measured trend. The five-session composition shows this law in both directions. A single hosting process turns one session’s fault into the interruption of all five sessions it hosts, in ten trials out of ten. The four sessions independent of the fault stopped with the host, the pipeline restarted at step one, discarding completed steps.
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
Table 4: The single-process reference configuration and the peer-process construction under the same faults.
| Fault | Single-process reference | Peer-process construction |
|---|---|---|
| Host killed | 149.5 ms detected, 547.1 ms total outage, every co-resident session interrupted | remount 41.3 ms in 30 of 30 trials, other nodes unaffected |
| Provider withdrawn | closure unload 0.263 ms, restore 0.567 ms | explicit error 1.02 ms, remount 80.28 ms in 10 trials |
| Provider restarted | 0.518 ms, dependents 10 of 10 reloaded | remount 94.5 ms, callers 10 of 10 untouched |
| Cascade cost | 50 ms per dependent, 987 ms freeze | one process start 126.3 ms, zero freezing |
| Remote offline | host crash 5 of 5, repair 1105 ms | node alive 5 of 5, repair 107.8 ms |
| Co-resident fault | host dies 10 of 10, 4 of 4 unrelated sessions interrupted | faulty node only 10 of 10, 0 of 4 interrupted |
| No fault | makespan 24516 ms | makespan 24722 ms, 0.8 percent gap |
and recorded progress. Peer processes turn the same fault into one node's replacement, in ten trials out of ten. Those four sessions delivered without a single gap, the pipeline completed monotonically, and the archive progress strictly advanced. Table 4 lists the two configurations side by side.
6.8 Verification
Fifteen unit tests check the replay invariants, and the replay detects a two-writer incident, five orphaned entries, and two inversions. The endpoint contract runs in two modes, executions touching nothing outside and full executions leaving a record, and passes six scenarios with nine assertions. The pure-function check passes 100 of 100 and establishes the premise of Lemma 2, the cold-switch check passes 12 of 12 and establishes Corollary 3, and the contract check verifies the runtime behavior of external resolution. I1 through I4 form an audit layer over every measurement of this section, and a replay either holds at every entry or names the entry that fails.
7 Conclusion
This paper established sufficient conditions under which the reversibility guarantee of the spatiotemporal-composability calculus survives the process boundary. The premises of the four lemmas are the hypotheses the calculus already states and the stateless interface of the model call. On these conditions it constructed Logos, where a plugin is a process, the router holds only a routing table, the session state needed for recovery lives in an append-only transcript, and the construction satisfies the lemma conditions and the three conditions of the distributed carrier.
Measurements on one machine show twelve sessions resumed through six kills and eighty further sessions through kills at the four boundaries of the tool-call cycle with no repeated effect, nodes reconnect and routing resumes after router loss, and a same-fault comparison in which one fault interrupts every co-resident session while under the peer-process construction one fault ends at one node. The commutation discipline holds as an architectural fact, the shared mutable state of this system being entry tables, the broadcast order carries the supply order, the router is a single process whose death narrows the failure domain to the routing-change window, and the append-only transcript replays the full session. Future work covers a per-key verification of the discipline, a proof of coverage for the order, a formal semantics of loss, partition, and reconnection, and the extension across machines and to larger provider sets.
References
[1] DeepSeek-AI. 2026. DeepSeek Harness: Everything is a Plugin. https://github.com/deepseek-ai/deepseek-harness. Reference implementation of the calculus, version v0.1.0-rc.5, 250 file fingerprints recorded.
[2] Xinyi Hou, Yanjie Zhao, Shenao Wang, and Haoyu Wang. 2026. Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions. ACM (2026). doi:10.1145/3796519
[3] LangChain Inc. 2024. LangGraph: Building Stateful, Multi-Actor Applications with LLMs. https://github.com/langchain-ai/langgraph. In-process graph orchestration library.
[4] Yang Li, Siqi Ping, Xiyu Chen, Xiaojian Qi, et al. 2025. AgentGit: A Version Control Framework for Reliable and Scalable LLM-Powered Multi-Agent Systems. arXiv preprint arXiv:2511.00628 (2025).
[5] Qin Liu. 2026. : A Typed Lambda Calculus for LLM Agent Composition. arXiv preprint arXiv:2604.11767 (2026).
[6] Morgan Quigley, Brian Gerkey, Ken Conley, Josh Faust, Tully Foote, Jeremy Leibs, Eric Berger, Rob Wheeler, and Andrew Y. Ng. 2009. ROS: an open-source Robot Operating System. In ICRA Workshop on Open Source Software.
[7] Yifan Shi, Wei Zhang, and Tianyi Cui. 2026. A Programming Paradigm for Spatiotemporal Composability. arXiv preprint arXiv:2608.25512. Submitted August 26, 2026. https://doi.org/10.48550/arXiv.2608.25512.
[8] Temporal Technologies Inc. 2025. Temporal Workflow Execution Platform. https://docs.temporal.io. Durable execution engine; workflows defined in code, recovery via event replay.
[9] Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Berc Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, et al. 2024. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. In First Conference on Language Modeling (COLM). arXiv:2308.08155.
A Proofs
A.1 Setup
Fix an assignment of components and records to processes and the two conditions of Theorem 1, every effect that must be reversible writes its anchor to a persistent transcript at the step of occurrence, and every key admits one writer, enforced at registration. An abstract trace is a sequence of assembly and removal steps in the state space. An implemented trace is the sequence of steps the processes actually perform. The theorem constructs, for every abstract trace, an implemented trace that agrees with it pointwise under the macrostate projection .
A.2 Proof of Lemma 1
The proof rests on the two modeling facts. By the first fact, a call of the language model is a stateless pure map, so cross-step state cannot live inside the call. By the second fact, input synthesis and output parsing are defined as operations outside the model. The shared sector is therefore the only remaining residence for cross-step state. Co-residence with the model then carries no state that
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
must stay in the model's process, and the absence of this necessity is the contrapositive, co-residence would be necessary only if the state lived inside the model, which the first fact denies, or if synthesis and parsing had to run where the model runs, which the second fact denies by defining them as external operations. Since the sector is readable from anywhere, the input is the projection of the system state to the model input and any process that reads S can synthesize it, and the model runs as an ordinary dispatchable node.
A.3 Proof of Lemma 2
The inverse data form a monoid, the composite of two maps that respect respects , pointwise equality of readouts composes to equality along the chain, and recover merely evaluates the invariant. Each of these steps is a fact of the calculus. Definition 37 requires inverses to respect , Lemma 38 supplies the machine that composites of maps respecting respect , the premise at every anchor then composes pointwise along the chain of anchors, and the readout of the accumulator equals the invariant read. Recovery through the carrier therefore equals in-place recovery under .
Three corollaries follow.
COROLLARY 1 (NECESSITY OF A RECORD). Reversibility leaves a record, a persistent carrier is the physical lower bound of the reversible, and this is the commonsense form of the Landauer principle. Process memory under a deployment that tolerates process death satisfies the premise for no process, since the process can die, so process memory fails the carrier condition in any fault-tolerant deployment.
COROLLARY 2 (DERIVATION OF THE APPEND-ONLY FORM). The algebra of the inverse data is a monoid, and the most general persistent carrier of a monoid element is the free monoid on its generators, an append-only transcript. The mathematical derivation reaches exactly the append-only replayable form. The plaintext form and the single-source form are design choices, not derivations.
COROLLARY 3 (COLD SWITCHING). Let Act be the set of recorded actions, Act* the free monoid on it, and the transcript an element T of Act*. The accumulator is determined by a deterministic map into the transformation monoid, being the composite of the recorded generators in application order, and in-place recovery evaluates on the current state . A new process imports T, replays the prefix to , rebuilds the same , composes it with what the failed process had kept, and evaluates . The two sides carry the same and , so
the undo capability crosses the process boundary, the full accumulator being the composite of the external and the in-process parts. The departure of the original process leaves the soundness invariant untouched, and under this lemma a process is a disposable auxiliary carrier.
A.4 Proof of Lemma 3
Any interleaving of the local last-in-first-out sequences is a permutation of all the inverses. Corollary 21 of the calculus asserts that recovery is invariant under permutation of the applied inverses, so the endpoint is the same whichever interleaving runs. The local storage claim and the no-coordination claim follow from the arbitrariness of the permutation. The local storage claim additionally rests on the confinement of Definition 48 and on the disjointness of supply of Definition 58. The shared mutable state of this system is entry tables whose operations are appends and deletions, which fall inside the domain the commutative keys satisfy, and the discharge mechanism of the calculus is the basis. Shared databases and quota resources pass through single-writer tools or stay outside the boundary.
A.5 Proof of Lemma 4
The operating requirements of spatial composability are each a fact of the calculus, the real-time resolution of keys to providers rests on Definitions 45 and 46, the single writer per key on Definition 58, and supply before demand with withdrawal after consumption on Theorem 63. Their content is entirely an assignment of keys to providers, a routing table. The routing table is the representative case of a commutative key in the calculus, the registration of a route or of an event listener being the representative case in the original text, and registration is a revertible effect, each provider registering with the broker through a revertible effect. The table therefore resides in the commutative part of the state space, and a copy maintained by broadcast of registration events is observationally equivalent to an in-memory registry.
Formally, let be a finite set of capability names, a finite set of peer nodes, and a discrete totally ordered set of event indices. The supply relation at is a set , the pair recording that node provides capability at . The registry is the projection of the supply relation onto capability names,
a table held outside any process, and resolution is the lookup resolve(c, t) = . Each node declares the capabilities it consumes as a set of names, never node identities, and the dependency of n on c carries one of three states, .
The registry is folded from the event log rather than given. The events are online , offline , and leaving , and under E3 every node observes one sequence, so
where apply adds the pair on an online event and removes it otherwise. Four properties follow. Externality, the dependency state is a function of the registry and the event log alone, , independent of the liveness of any process, resolution survives process death. Name binding, when one provider of c departs and another arrives, is unchanged and the dependency rebinds from active to active, no consumer restarts. Agreement, the fold of one sequence is deterministic, so every node holds the same table, for all nodes. Degradation, when is empty the dependency passes to waiting or closed and an in-flight call receives an explicit error, and the return of a provider costs one re-resolution, no restart.
The correspondence between the calculus constructs and the Logos construction is the following.
AAMAS 2027, 3–7 May 2027, Hanoi, Vietnam
Table 5: The calculus constructs against the parts of the Logos construction that realize them.
| Calculus construct | Logos realization |
|---|---|
| and the per-key provider map | the router registry, register with provides and query the routing table |
| of Definition 26 | the node online and offline broadcasts driving the tool view |
| the committed view | the routing in use, the current resolution |
| the order of Theorem 63 | the broadcast order over per-observer queues |
| the single writer of Definition 58 | the registration conflict refusal, measured |
A.6 The Construction Checklist
The Logos construction satisfies the four lemmas through the following parts. C1 through C4 are given by the lemma conditions, C5 by Lemma 1 together with Lemma 2, C6 is the direct management of the boundary of Definition 7, and C7 makes the projection computable.
Table 6: The construction parts against the lemma conditions they satisfy.
| Construction part | Satisfied condition |
|---|---|
| C1, a capability is an independent process | recovery localization, the component unbound from a host |
| C2, the router routes and registers only, holding no business state | external resolution and carrier substitution, the registry rebuilt by re-registration |
| C3, the transcript is append-only and plaintext, the source of truth of the session record | the free monoid carrier, the replayable form a derivation and the plaintext form a design choice |
| C4, cold switching resumes the same id | the composition of the rebuilt accumulator with what the failed process kept |
| C5, the model is an ordinary dispatchable bus node | orchestration externality and carrier substitution |
| C6, outward effects stay outside the boundary | Definition 7, withholding and compensation as the only routes |
| C7, every event is broadcast and replayable | the computable projection, the macrostate reconstructable from the event stream |
A.7 The Three Engineering Constraints
The cross-process execution requires three engineering constraints beyond the lemma conditions. E1 pairs every response with its own call, E2 carries one registration per node id with an explicit refusal for a conflicting claim, and E3 delivers the same sequence of supply-change notifications to every observer. The construction meets E1 through the single NDJSON protocol and the bounded queues, E2 through the registration conflict refusal, and E3 through per-observer delivery queues. The three constraints are engineering realizations, and their formalization is future work.
A.8 The Induction
A.8.1 Base Case. The empty abstract trace is implemented by the empty trace. Both sides start at the same macrostate, and the agreement holds vacuously.
A.8.2 Assembly Step. Let the abstract trace end in an assembly step. By Lemma 1 the cross-step state resides in the shared sector outside any model call, so the assembly step does not require the state to live inside the executing process. By Lemma 2 the transcript is a faithful carrier, and the step writes its anchor to the transcript at the step of occurrence, by the first condition of the theorem, the settlement order being durable before visible, the anchor lands in the transcript before the step is announced on the bus. The induction hypothesis gives an implemented trace agreeing with the abstract prefix under up to this step. The constraint E1 pairs the response of the step with its call, so the implemented trace contains exactly one step corresponding to the abstract assembly step, and the settlement recorded at the anchor keeps the pointwise agreement under after the step. The macrostate after the step is determined by the anchor alone, so any process that reads the transcript prefix reaches the same macrostate.
A.8.3 Removal Step. Let the abstract trace end in a removal step. By Lemma 3 the inverse data of the component reside in its own process, and the local last-in-first-out recovery is invariant under any interleaving of per-process recoveries, so the removal step needs no ordering constraint and no shared state with any other process. By Lemma 4 the resolution of the removed component moves to the routing table, and the routing table is maintained by registration broadcasts, a copy being observationally equivalent to an in-memory registry. The constraints E2 and E3 guarantee that the registration state and the supply-change order seen by every observer agree with the abstract resolution step. The pointwise agreement under follows from Lemma 3 for the recovered component and from Lemma 4 for the unchanged resolution state.
A.8.4 Completion. Induction over the abstract trace assembles the two step cases, and the implemented trace agrees with the abstract trace pointwise under at every step. The implementation is faithful, and the theorem follows. The admission of the deployment as a set of peer processes requires the bus time scale to separate from the model time scale, a millisecond hop against a first token a hundred times slower, and the topology stationary at the step scale of the model, under which the asynchronous contract of the application note holds throughout the induction.