OpenRath: Session-Centered Runtime State for Agent Systems

Fukang Wen, Zhijie Wang, Ruilin Xu

arXiv:2606.19409 · 2026-06-23 공개 · arXiv · PDF

multi-agent session-centered runtime-state pytorch-like session-abstraction workflow-composition tool-evidence sandbox-placement

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.

한국어 요약

한 줄 요약

OpenRath는 다중 에이전트 시스템에서 런타임 상태를 명시적으로 관리하기 위해 `Session`이라는 첫 번째 클래스 런타임 값 중심의 프로그래밍 모델을 제시한다.

핵심 기여도

핵심 아이디어

기존 다중 에이전트 시스템은 런타임 상태가 분산되어 있어 재현과 검토가 어려웠다. OpenRath는 PyTorch의 텐서 개념을 런타임 상태 관리에 적용한 `Session`이라는 첫 번째 클래스 런타임 값을 도입함으로써 이 문제를 해결한다. `Session`은 브랜치 가능, 검사 가능, 재생 가능하며, 런타임 내에서 모든 작업이 이 값을 통해 전달되고 변형된다. 이는 런타임 경로를 외부 로그에서 재구성하는 대신, 런타임 연산 자체로 명시적으로 관리할 수 있게 한다. 핵심 통찰은 런타임 상태를 프로그램 내부 값으로 유지함으로써 검증 가능성과 조합성을 높일 수 있다는 점이다.

기술적 접근법

주요 결과

의의 및 한계

OpenRath는 다중 에이전트 시스템의 런타임 상태를 명시적으로 관리함으로써 검증 가능성과 조합성을 향상시킨다. 이는 릴리스 검토, 디버깅, 감사, 체계적 평가를 용이하게 하며, 향후 연구 및 산업 적용에 기초를 제공한다. 그러나 본 연구는 정량적 성능 비교, 라이브 제공자 품질, 선택적 백엔드 가용성, 메모리 품질 평가 등을 후속 평가에 남겨두고 있어, 실용적 성능 검증은 제한적이다. 또한, `Session` 기반 모델이 모든 런타임 상태를 포괄적으로 관리할 수 있는지에 대한 평가도 필요하다.

실용적 활용

OpenRath는 복잡한 다중 에이전트 시스템에서 런타임 상태를 명시적으로 관리해야 하는 연구 및 산업 환경에 적용 가능하다. 특히, 릴리스 검토, 디버깅, 감사, 체계적 평가가 필요한 시스템에서 유용하며, 툴 로그, 메모리 저장소, 워크스페이스 상태 등을 통합 관리해야 하는 상황에 적합하다.