We Query, Therefore We Compute: On Oracle Computation beyond the Machine, with an Application to Agents
Abstract
Agentic systems use large language models (LLMs) to carry out concrete tasks. Prior work often borrows abstractions such as scheduling, caching or isolation piecemeal from operating systems, so the mechanisms it builds share little common ground, and the shared view of the two forms of agentic system, Workflows and Agents, is limited. We construct an abstract machine that provides both. We treat the LLM as an Oracle and extend a two-stack pushdown automaton with one instruction, which hands the Oracle a whole stack as its query and appends the answer to that same stack. The machine thus performs two computations, the Oracle's and a Turing-complete one that we call the Priestess. A stack that the program only appends to grows autoregressively, as an agent's context does. Two symmetry breakings, S in storage and T in transitions, make a Priestess program the operating system of the programs the Oracle runs, and produce the Agent and the Workflow as the two placements of a task's program. For internally autoregressive Oracles, the two computations synchronize at the end of every answer under certain conditions, and through that synchronization we model caching and analyse scheduling. No guarantee that holds for every Oracle can fix which content crosses between the two computations, but such a guarantee does fix the boundary itself. The construction V fits the machine to a von Neumann computer. To show that it is realizable, we propose ArchNights, an extended RISC-V ISA and a Linux-style operating system implementing the machine by design. ArchNights-SE runs on gem5 as a computer system, becomes an agentic system when it runs an LLM as the Oracle, and will be open source. Agentic systems can then be designed as computer systems are. With a foundation built and a unified view, future work can share invariants and bounds, each with its conditions.
Create a lesson
Metadata
- Comments
- 86 pages, 11 figures, 17 tables
Related papers
Agent Recovery Gone Wrong: Measuring Harm Beyond Duplicate Calls
Shared title terminologycs.AIArtem Trofimov, Boris Novikov
Self-Evolving Evaluation Environments for Computer-Use Agents
Shared title terminologycs.AIWenhao Wang, Panrong Tong, Quyu Kong et al.
Beyond the Black Box: A Diagnosis-Driven Agent for Interpretable MIP Solver Tuning
Shared title terminologycs.AIYidong Luo, Weihuang Wen, Xuanhao Pan et al.
Beyond Binary Verifiable Rewards: Behavioral Self-Rewarding for SWE Agents
Shared title terminologycs.AIYiran Wu, Andrew Zhao, Yurui Chang et al.
AgentHorizon: Evaluating Agentic Judges for Long-Horizon Computer-Use Tasks
Shared title terminologycs.AIXing Han Lù, Dheeraj Vattikonda, Sina Hajimiri et al.
OOM-RL II: Reality Is an Oracle, Not a Debugger Provenance-Constrained Diagnosis in Continually Evolving Agent-Engineered Systems
Shared title terminologycs.AIKun Liu, Liqun Chen