OpenRath: エージェントシステムのためのセッション中心のランタイム状態
OpenRath: Session-Centered Runtime State for Agent Systems
June 17, 2026
著者: Fukang Wen, Zhijie Wang, Ruilin Xu
cs.AI
要旨
現代のエージェントシステムは、多くの場合、断片化されたランタイム状態に悩まされている。すなわち、トランスクリプト、ツール効果、メモリイベント、ワークスペース配置、分岐の来歴、リプレイ証拠などが個別に記録され、検査や再現が困難になる。OpenRathは、マルチエージェント・マルチセッションシステム向けのPyTorchライクなプログラミングモデルを用いてこの問題に取り組む。この類推は、テンソル計算ではなく、中央の第一級ランタイム抽象化の役割に関するものである。
その中核となる抽象化はSession(セッション)であり、エージェントとワークフロー間で渡されるランタイム値である。Sessionは分岐可能、検査可能、リプレイ可能、バックエンド対応、そして合成可能である。Sessionは会話チャンク、サンドボックス配置、系統メタデータ、トークン使用量、未処理作業、ツール証拠を記録するとともに、メモリ相互作用がランタイム記録に入力される場所を定義する。この状態はプログラム実行で使用される同じ値によって運ばれるため、フォーク、マージ、リプレイは外部トレースから再構築された状態ではなく、明示的なランタイム操作となる。
OpenRathはさらに、Sandbox(サンドボックス)、Tool(ツール)、Agent(エージェント)、Memory(メモリ)、Workflow(ワークフロー)、Selector(セレクタ)を定義し、Selectorは制御フローをランタイムでルーティングされる決定に変換する。本レポートでは、プログラミングモデル、アーキテクチャ、監査済みマイルストーン、証拠プロトコルを示す。その主張は制御されたランタイム特性に限定されており、広範な定量的比較、ライブプロバイダの品質、オプショナルバックエンドの可用性、メモリ品質については後続の評価に委ねる。中心的な主張は、Sessionがエージェントシステムに監査可能な合成のための第一級ランタイム値を提供するというものである。
English
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.