OpenRath: Session-Centered Runtime State for Agent Systems

📅 2026-06-17
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of fragmented runtime states in existing agent systems, which hinders unified tracking, reproduction of conversations, tool invocations, and memory operations. To overcome this, the paper proposes treating the Session as a first-class runtime abstraction and introduces a PyTorch-inspired programming model that explicitly supports operations such as fork, merge, and replay for the first time. A Selector mechanism enables dynamic, runtime routing of control flow. Built around core components—including Session, Sandbox, Agent, and Memory—the system provides cohesive management of session state, uniformly capturing dialogue segments, sandbox context, provenance metadata, and token usage. This design facilitates auditable, traceable composition and replay of multi-agent interactions.
📝 Abstract
Modern agent systems often suffer from fragmented runtime state: transcripts, tool effects, memory events, workspace placement, branch provenance, and replay evidence are recorded separately and become difficult to inspect or reproduce. OpenRath addresses this issue with a PyTorch-like programming model for multi-agent, multi-session systems. The analogy concerns the role of a central first-class runtime abstraction, not tensor computation. Its core abstraction is Session, the runtime value passed between agents and workflows. A Session is branchable, inspectable, replayable, backend-aware, and composable. It records conversation chunks, sandbox placement, lineage metadata, token usage, pending work, and tool evidence, while defining where memory interactions enter the runtime record. Since this state is carried by the same value used in program execution, fork, merge, and replay become explicit runtime operations rather than states reconstructed from external traces. OpenRath further defines Sandbox, Tool, Agent, Memory, Workflow, and Selector, with Selector turning control flow into runtime-routed decisions. This report presents the programming model, architecture, audited milestones, and evidence protocol. Its claims are limited to controlled runtime properties, while broad quantitative comparisons, live-provider quality, optional-backend availability, and memory quality are left for follow-on evaluation. The central thesis is that Session provides agent systems with a first-class runtime value for auditable composition.
Problem

Research questions and friction points this paper is trying to address.

agent systems
runtime state
session
reproducibility
state fragmentation
Innovation

Methods, ideas, or system contributions that make the work stand out.

Session
Runtime State
Multi-Agent Systems
Replayability
Composable Abstraction