We Query, Therefore We Compute: On Oracle Computation beyond the Machine, with an Application to Agents
cs.AI
Submitted: 2026-10-07
Updated: 2026-10-07
Comments: 86 pages, 11 figures, 17 tables
Code: https://github.com/n8n-io/n8n
License: http://creativecommons.org/licenses/by-nc-sa/4.0/
The gist: Agentic systems use large language models (LLMs) to carry out concrete tasks.
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.
Sources
- $\lambda_A$: A Typed Lambda Calculus for LLM Agent Composition
- Provable Coordination for LLM Agents via Message Sequence Charts
- The LLMbda Calculus: AI Agents, Conversations, and Information Flow
- Architecting AgentOS: From Token-Level Context to Emergent System-Level Intelligence
- AgentOS: From Application Silos to a Natural Language-Driven Data Ecosystem
- Agent Operating Systems (AOS): Integrating Agentic Control Planes into, and Beyond, Traditional Operating Systems
- The Agent Operating System (AOS): A Reference Operating Architecture for Distributed Agentic Systems
- Quine: Realizing LLM Agents as Native POSIX Processes
- Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity
- Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live
- LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference
- The gem5 Simulator: Version 20.0+
- Are you going to finish that? A Practical Study of the Partial Token Problem
- Leyline: KV Cache Directives for Agentic Inference
- Ask the Tool, Don't Guess: Agent Tool Calls Hold Their Progress, and the Serving System Should Read It
- Hydragen: High-Throughput LLM Inference with Shared Prefixes
- KAIJU: An Executive Kernel for Intent-Gated Execution of LLM Agents
- Memory Augmented Large Language Models are Computationally Universal
- LongFuncEval: Measuring the effectiveness of long context models for function calling
- DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems