The year/Independent research

Paper 2606.19409

OpenRath: Session-Centered Runtime State for Agent Systems

Published
Jun 2026
Research lab
Independent
Citations
0
GitHub
1.1K stars

01 In brief

Summary

OpenRath addresses the hidden-runtime-state problem in multi-agent systems by introducing Session, a first-class runtime value that carries conversation chunks, lineage, sandbox placement, tool evidence, memory events, and usage.

The programming model, inspired by PyTorch's architecture, defines objects like Agent, Workflow, Tool, Memory, Sandbox, and Selector, all preserving a Session -> Session contract.

Sessions are branchable, inspectable, replayable, and backend-aware, making fork, merge, and replay explicit operations.

The report details the runtime architecture, multi-agent design, and implementation milestones, with an audit-first release protocol using evidence packets and a claim ledger.

Claims are scoped to deterministic runtime properties; broad benchmarks, live-provider quality, and memory quality are deferred.

Limitations include no safety claims, optional OpenSandbox support, and memory as an intended but unverified plane.

The central thesis is that Session provides auditable composition for agent systems.

02 From the paper

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.