6.1 Programmable Probabilistic Agent Computation
Editorial context, 2026-04-20: The questions, constraints, proposals, disagreements, and caveats below are reformulated from the saved research discussion. LLM recommendations remain attributed proposals, not decisions by the author or independently verified findings. Technical examples and quoted source passages retain their original wording.
Executive summary
The broad research programme in the research notes can be stated as:
How should we program, execute, inspect and verify long-running computations in which some operators are neural and probabilistic, while control, authority, state, provenance and correctness obligations are governed by symbolic semantics?
That is a defensible research framing. It is also timely. The research notes already separate neural proposal/judgement from symbolic control and ask whether probabilistic agent behaviour can live inside a deterministic, typed, durable computation model. 1 The compiler notes sharpen that further: move structural, authority, coverage, provenance and policy failures into compilation or explicit runtime obligations. 2
The saved survey concludes that the field is converging rapidly on the pieces of this architecture, but the survey did not identify a mature system that combines the whole stack. The strongest recent precedents divide roughly as follows:
ToolGate is particularly close at the operator boundary: it stores trusted world state as a typed symbolic mapping and gives each tool a Hoare-style precondition/postcondition contract; a tool cannot run unless its precondition holds, and its result cannot enter trusted state unless the postcondition verifies. 3 Agent-C adds temporal policies by translating a DSL into first-order logic and using SMT solving during generation to block actions that would violate sequencing constraints. 4 SEVerA allows individual generative calls to carry first-order output contracts and wraps the model with enforcement that ensures returned values satisfy those contracts. 5
At the systems level, Arbiter-K is perhaps the closest conceptual match to the broad research framing: its authors explicitly place a “Probabilistic Processing Unit” within a deterministic neuro-symbolic kernel, surrounded by a semantic instruction set, security context, dependency tracking, taint propagation, deterministic sinks and rollback. 6 COVENANT independently treats natural-language workflow instructions as source code, compiles them into an AST/control-flow representation, and places a controller between model proposals and state transitions. 7
The important gap is the composition. The surveyed systems usually solve one or a few of these problems:
types / contracts
temporal safety
authority / capabilities
persistent state
durable replay
provenance
concurrency / resources
program synthesis
self-modification
cost / quality optimisation
human interventionThe saved survey identified no system with a single semantics that integrates all of them. In particular, formal agent work and durable-workflow work are largely separate communities: formal systems generally reason about traces, actions and state but say little about crash recovery, retries and replay; Temporal/DBOS/LangGraph provide increasingly good durability but do not give application-specific semantic proofs for neural computations. 3, 4, 5, 8
This appears to be the research opportunity. The proposal is to formulate it as:
A programming model for effectful probabilistic computation in which neural operations are explicit typed effects; symbolic contracts constrain state transitions; temporal specifications constrain traces; provenance accompanies values; execution is durable and replayable; and logical programs can be compiled to alternative physical implementations subject to safety, quality, cost and time requirements.
One subtle point is important: much of the current “formal verification of agents” literature does not formally reason about probabilities. It abstracts the model as nondeterministic or checks the outputs/actions it produces. That is useful, but it leaves a research opening for the word probabilistic in the research framing: how should uncertainty, quality distributions and stochastic reliability become first-class program properties without pretending we can prove the semantic truth of arbitrary LLM judgements? Agent-C, ToolGate and the stateful STEAD formalisation all concentrate primarily on admissible transitions or traces; SEVerA constrains outputs but still separates hard contracts from soft learned utility. 3, 4, 5, 8
My recommendation is therefore not to make “Petri nets for agents” or “a typed agent language” the broad thesis. Those are pieces. The broader research object is the semantics and runtime of programs containing probabilistic neural operators.
Research landscape and closest precedents
The literature has changed materially during 2025-26. There is now enough adjacent work that a paper would need to position itself as an integration or semantic advance, not as the first attempt to put formal structure around agents. At the same time, the breadth of the convergence strengthens the case that there is a genuine systems/programming-languages problem here.
Comparison of the closest academic systems
Three trends stand out.
First, the LLM-as-programmer, symbolic-system-as-judge split is becoming common. PlanCompiler validates a structured plan before deterministic compilation; COVENANT interprets an explicit workflow representation around neural proposals; AutoSpec+ uses a neural model to propose formal specifications and a symbolic verifier as a deterministic critic; and SEVerA synthesises agent programs under formal constraints. 5, 7, 9, 15
Second, formalisation is moving from isolated tool calls toward persistent state and traces. ToolGate addresses the state transition locally, Agent-C handles temporal relationships among actions, and the STEAD work explicitly studies agents operating over changing relational operational data. The STEAD result is sobering: unrestricted verification is not simply a routine type-checking problem; the authors establish undecidability in the general setting and identify restricted conditions under which verification becomes decidable, with PSPACE-complete cases. 3, 4, 8
Third, database researchers are independently attacking the same architectural weakness from a different side. RUBICON replaces open-ended data orchestration with explicit algebra, wrappers, visible intermediate results and query-planning machinery. That is closely aligned with the proposal to separate logical investigation semantics from physical retrieval/LLM implementations. 10 The database notes independently arrive at essentially this boundary: build the high-level semantics/compiler and reuse databases, search engines and workflow systems as physical execution backends. 16
A useful way of seeing the research convergence is:
flowchart TD
P["Human or LLM proposes program"] --> T["Typed / effectful IR"]
T --> C["Local contracts<br/>preconditions + postconditions"]
C --> G["Control semantics<br/>CFG / dataflow / Petri-net-like IR"]
G --> R["Durable runtime"]
R --> N["Neural operator"]
R --> X["Tool / external system"]
R --> H["Human approval"]
N --> V["Runtime verification"]
X --> V
H --> V
V --> S["Typed committed state + provenance"]
S --> M["Temporal / information-flow monitors"]
M -->|valid| R
M -->|violation| Q["Reject / pause / repair / rollback"]
T --> O["Cost / quality optimiser"]
O --> R
This diagram is a synthesis of the surveyed lines of work, not an architecture claimed by any one paper. ToolGate motivates the typed committed state and local contracts; Agent-C the temporal monitor; SEVerA the guarded neural operator; Arbiter-K the deterministic kernel; Temporal/DBOS the durable execution layer; and RUBICON the logical/physical optimiser boundary. 3, 4, 5, 6, 10, 17, 18
Research gaps and recommended agenda
The strongest contribution is available at the intersections between the existing lines of work.
The semantic integration gap. ToolGate gives local state-transition contracts; Agent-C gives temporal ordering; SEVerA gives formally guarded neural calls; Arbiter-K gives a deterministic governance kernel; durable runtimes give recovery; W3C/database provenance gives lineage. None of the surveyed systems supplies one compositional semantics covering those concerns together. 3, 4, 5, 6, 23
A worthwhile theoretical target is therefore something like:
Program judgement:
Γ ; C ; P ⊢ e : T ! ε ▷ Owhere:
Γ = typed state/environment
C = capabilities / authority
P = provenance context
T = result type
ε = effects
O = generated proof/runtime obligationsCompilation produces a logical transition system plus obligations; physical operators must prove/refute that they satisfy those obligations.
The probability gap. Current formal agent systems usually verify what an LLM did or whether an output satisfies a predicate. They rarely provide semantics for a statement such as:
find_evidence
requires:
P(critical_evidence_omitted) < 0.01or:
classifier
guarantee:
recall >= .98
with confidence >= .95
on workload class WSEVerA comes closest conceptually by separating hard formal constraints from a soft learned objective. 5 A major research problem is how empirically established statistical guarantees propagate through program composition, and where they must remain runtime/evaluation claims rather than static proofs.
The durable semantics gap. Formal verification generally assumes a transition happens once. Distributed execution gives you:
started
crashed
unknown whether external system committed
retry
duplicate?Temporal and DBOS solve large parts of this engineering problem, but agent verification papers have not generally integrated durability into their formal model. 17, 18 A strong paper could formalise committed neural transitions and prove invariants under crash/replay/retry.
The verified adaptation gap. COVENANT and PlanCompiler validate generated plans; SEVerA synthesises verified agent programs. 5, 7, 9 The harder case from the research vision is:
running program P
↓
agent observes state
↓
proposes P'
↓
compiler checks delta
↓
migration of live durable state
↓
execution continues under P'That introduces program-versioning, state-migration and temporal questions: must an obligation created under P remain true after switching to P’? Can a new policy invalidate an already authorised action? Can the runtime safely delete a branch containing outstanding obligations? The saved survey identified no mature general answer in the reviewed work.
The provenance-and-epistemics gap. Existing verification focuses heavily on actions and security. Investigation introduces an additional form of correctness:
Did the result depend on the required evidence?
Was evidence omitted?
Was a source superseded?
Was the conclusion based on independent evidence?
Can every claim be traced to exact source material?Standard provenance gives the lineage vocabulary, but does not itself supply notions such as evidential sufficiency, authority or contradiction. 23, 24 This can become a domain extension of the general machine, making the investigation project a good first workload rather than a separate research direction. 51
The optimiser gap. Database systems separate logical requirements from physical execution. RUBICON is the clearest current agentic example of bringing that architecture to heterogeneous data access. 10 The broader open problem is:
subject to:
[ \begin{aligned}
&\text{safety contract} \
&\text{quality / reliability target} \
&\text{authority policy} \
&\text{privacy policy} \
&\text{budget} \
&\text{deadline}
\end{aligned} ]
while minimising expected resource cost. That is much richer than prompt optimisation and could eventually become a substantial research line of its own.
The human-computation gap. LangGraph and durable workflow systems support pauses and external intervention, but “human approval” is generally a runtime mechanism rather than a first-class formal object with identity, authority, scope, expiry and provenance. 29, 17 The visual-programming notes add a useful research angle: humans and agents could inspect and modify the same typed program/state through different projections while all changes remain part of the audited execution history. 52
The proposal is to turn those gaps into a sequence of papers rather than one enormous implementation:
Paper A
Typed/effectful probabilistic agent IR
+ contracts
+ formal semantics
+ integrated runtime prototype
↓
Paper B
Crash/replay-safe semantics for neural operations
+ durable execution
↓
Paper C
Verified dynamic modification of live agent programs
↓
Paper D
Cost/quality optimisation under semantic contracts
↓
Paper E
Human-agent programming environment
+ collaborative program/state manipulationInvestigation can provide the first difficult workload because coverage, provenance, contradiction, authority and abstention create properties ordinary customer-support benchmarks do not test.
The proposed central research question is:
Can neural inference be treated as an effectful probabilistic operator inside a typed, durable state machine, such that useful global properties of dataflow, authority, provenance and execution traces remain compositionally enforceable despite stochastic model behaviour, failures and runtime adaptation?
That framing is broad enough to cover investigation, coding, operations, support, scientific agents and multi-agent systems while still describing a concrete computer-science problem.
Proposed initial citations
Another proposal is to cite Pnueli’s temporal-logic work for the temporal foundation and W3C PROV for interoperable provenance semantics, even if they fall just outside the twelve-item “first reading” list. 21, 23
The resulting intellectual map is fairly clean:
PROGRAMMING LANGUAGES
types • effects • contracts
│
│
FORMAL METHODS ─────┼───── DATABASE SYSTEMS
temporal logic │ algebra • optimisation
model checking │ provenance • state
│
▼
VERIFIED AGENTIC COMPUTATION
│
┌─────────┴─────────┐
│ │
DURABLE SYSTEMS NEURAL COMPUTATION
replay • recovery LLMs • learned models
transactions stochastic decisions
│ │
└─────────┬─────────┘
▼
humans • tools • worldAs of 25 August 2026, the proposal is to characterise the opportunity this way: the component ideas are no longer speculative, and several 2026 papers are approaching the same boundary from different directions. The generalised, compositional machine remains open enough to support a substantial research programme. The strongest claim to pursue is therefore not that symbolic constraints around agents are new; the evidence clearly says otherwise. The stronger research claim is that these pieces can be given one programming model with compositional semantics across neural uncertainty, durable state, authority, provenance, temporal behaviour and physical execution, and that doing so produces measurable reliability benefits on long-running real agent workloads. 3, 4, 5, 8, 6, 7, 10
Sections moved during reassembly
The sections below continue in the linked notes with their original arguments retained and wording edited.
- Formal foundations and architectural synthesis
- Durable runtimes, open-source systems and industry practice
- Benchmarks, baselines and experimental design
- Patents, legal and ethical considerations
References
- Project note (user-provided). startup-operating-environment.md.
- Project note (user-provided). compiler-approach.md.
- Liu, Yanming, et al. 2026. ToolGate: Contract-Grounded and Verified Tool Execution for LLMs. Findings of ACL 2026.
- Kamath, Adharsh, et al. 2025. Enforcing Temporal Constraints for LLM Agents. arXiv:2512.23738 (Agent-C).
- Banerjee, Debangshu, Changming Xu, and Gagandeep Singh. 2026. SEVerA: Verified Synthesis of Self-Evolving Agents. arXiv:2603.25111.
- Wen, Xiangyu, et al. 2026. From Craft to Kernel: A Governance-First Execution Architecture and Semantic ISA for Agentic Computers. arXiv:2604.18652 (Arbiter-K).
- Wang, Jincheng, Min Zheng, and Tao Wei. 2026. COVENANT: Natural-Language Workflow Compilation for Aligned Agent Execution. arXiv:2607.25400.
- Mercado, Alejandro J., and Alessio Lomuscio. 2026. Formal Verification of Agentic Systems over Operational Data. arXiv:2608.03609.
- Harikumar, Pranav. 2026. PlanCompiler: A Deterministic Compilation Architecture for Structured Multi-Step LLM Pipelines. arXiv:2604.13092.
- Wenz, Fabian, Felix Treutwein, Kai Arenja, Çagatay Demiralp, and Michael Stonebraker. 2026. An Alternate Agentic AI Architecture (It’s About the Data). arXiv:2604.21413 (RUBICON).
- Khattab, Omar, et al. 2024. DSPy: Compiling Declarative Language Model Calls into State-of-the-Art Pipelines. ICLR 2024.
- Stanford NLP. stanfordnlp/dspy. GitHub repository; MIT License.
- Wang, Haoyu, Christopher M. Poskitt, and Jun Sun. 2025. AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents. arXiv:2503.18666.
- Shi, Tianneng, et al. 2025. Progent: Programmable Privilege Control for LLM Agents. arXiv:2504.11703.
- Wen, Cheng, et al. 2026. Formally Specifying the Intended Behavior of the Program: LLM-Driven Neuro-Symbolic Program Specification Synthesis. ACL 2026 System Demonstrations (AutoSpec+).
- Project note (user-provided). db-approach.md.
- Temporal Technologies. AI Agent Reference Architecture. Temporal Platform Hub.
- DBOS. AI Quickstart. DBOS documentation.
- Lucassen, John M., and David K. Gifford. 1988. Polymorphic Effect Systems. POPL 1988, pp. 47-57.
- Hoare, C. A. R. 1969. An Axiomatic Basis for Computer Programming. Communications of the ACM 12(10):576-580.
- Pnueli, Amir. 1977. The Temporal Logic of Programs. FOCS 1977, pp. 46-57.
- van der Aalst, W. M. P. 1998. The Application of Petri Nets to Workflow Management. Journal of Circuits, Systems and Computers 8(1):21-66.
- W3C. 2013. PROV Model Primer. W3C Working Group Note.
- Cheney, James, Paolo Missier, and Luc Moreau, eds. 2013. Constraints of the PROV Data Model. W3C Recommendation.
- Temporal Technologies. temporalio/temporal. GitHub repository; MIT License.
- DBOS, Inc. dbos-inc/dbos-transact-py. GitHub repository; MIT License.
- DBOS. Use DBOS With the Vercel AI SDK. DBOS documentation.
- LangChain. Persistence. LangGraph documentation.
- LangChain. Interrupts. LangGraph documentation.
- LangChain. langchain-ai/langgraph. GitHub repository; MIT License.
- Restate. restatedev/restate. GitHub repository; Business Source License 1.1, with the repository-specified change license/date terms.
- Skiadopoulos, Athinagoras, et al. 2021. DBOS: a DBMS-oriented operating system. PVLDB; DOI 10.14778/3485450.3485454.
- Debenedetti, Edoardo, et al. 2024. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents. NeurIPS 2024.
- Zhang, Hanrong, et al. 2024. Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents. arXiv:2410.02644.
- Zong, Xuanjun, Zhiqi Shen, Lei Wang, Yunshi Lan, and Chao Yang. 2026. MCP-SafetyBench: A Benchmark for Safety Evaluation of Large Language Models with Real-World MCP Servers. ICLR 2026.
- Yao, Shunyu, Noah Shinn, Pedram Razavi, and Karthik Narasimhan. 2024. -bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains. arXiv:2406.12045.
- Zhou, Shuyan, et al. 2024. WebArena: A Realistic Web Environment for Building Autonomous Agents. ICLR 2024.
- Xie, Tianbao, et al. 2024. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments. NeurIPS 2024 Datasets and Benchmarks Track.
- Jimenez, Carlos E., et al. 2023. SWE-bench: Can Language Models Resolve Real-World GitHub Issues?. arXiv:2310.06770.
- Chen, Ziru, et al. 2024. ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discovery. arXiv:2410.05080.
- Project note (user-provided). startup.md.
- Fang, Eric. 2026. AgentVerify: Compositional Formal Verification of AI Agent Safety Properties via LTL Model Checking. Preprints.org 202604.1029.
- Citibank. US20250348707A1 / US12536406B2. U.S. patent family concerning dynamic AI-agent orchestration.
- JPMorgan Chase. US12061970B1. U.S. patent concerning LLM-driven orchestration of task-specific machine-learning agents.
- JPMorgan Chase. US12399691B2. U.S. patent concerning automatic workflow generation using large language models.
- US20240289545A1. U.S. patent application concerning hierarchical plan generation/execution and dynamic control flow for LLM systems.
- Citibank. US12111754B1. U.S. patent concerning dynamic validation of AI applications against compliance requirements.
- European Commission. AI Act enters into force, 1 August 2024; see also the Commission AI Act regulatory framework for the application timeline.
- European Commission, AI Act Service Desk. Article 14: Human oversight. Regulation (EU) 2024/1689.
- Autio, Chloe, et al. 2024. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile. NIST AI 600-1.
- Project note (user-provided). investigation-lang-alg-llm-layer.md.
- Project note (user-provided). visual-programming-env.md.
Index
- Programmable Probabilistic Agent Computation
Library sources
- Dinu et al. 2024, SymbolicAI (arXiv:2402.00854)
- Wei et al. 2025, Multi-Objective Agentic Rewrites for Unstructured Data Processing (arXiv:2512.02289)