Certified Execution Harness for Agentic AI: Safe and Least-Intrusive Petri-Net Supervisory Control Between Reasoning and Action
Abstract
This paper studies the problem of safe tool execution for large language model (LLM) agents under prompt injection. Using Petri nets, we formalize the execution harness between the LLM and its tools as a supervisory control problem, in which marks represent capabilities, approvals and budgets. Since a transition fires only if the marks it needs are present, an injected request whose preconditions are unmet or already spent is refused regardless of its wording. Treating tool outcomes as uncontrollable, we enforce safety by the conventional maximally permissive supervisor, and this safety transfers to the running system under four assumptions. Moreover, to capture an agent that may propose again after a refusal, we introduce the notion of a replanning closed loop, in which each retry costs an inference call. We show that, in this loop, the conventional supervisor can be arbitrarily more intrusive than a stricter safe one. Furthermore, for a given proposer model, the maximally permissive least-intrusive supervisor is characterized as a value-threshold refinement of the conventional one. Under precise conditions, this refinement orders two concurrent actions by at most one monitor place. On an autonomous release agent, we find by synthesis that safe deployment requires a step that the supervisor can refuse after a rollout starts.
Create a lesson
Metadata
- Categories
- cs.AI, cs.SY, eess.SY
- Comments
- 17 pages, 9 figures, 2 tables. Extended version of a paper submitted for publication
Related papers
Layer-Level Control of Language Model Execution in Agent Frameworks
Shared title terminologycs.AIRan Guan, Yiqi Lin, Xiangxi Tian et al.
Improving the Improver: Semantic PID Control for Medical Agent Self-Improvement
Shared title terminologycs.AIDexia Chen, YiLong Hu, Wenqi Zhong et al.
Beyond Self-Critique: Epistemic Convergence Control for Multi-Agent Research Verification
Shared title terminologycs.AIChrisantus Eze
Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning
Shared title terminologycs.AILorenzo Bacchiani, Mario Bravetti, Giovanni Pau et al.
More: Mode-Optimized Reasoning with Self-Adaptive Effort for Self-Evolving Agents
Shared title terminologycs.AIDianxing Shi, Dingjie Fu, Tianyu Lei et al.
Learning When to Collaborate: Selective Multi-Agent Medical Reasoning via Uncertainty-Aware Routing
Shared title terminologycs.AIJiacheng Hou, Xueliang Cui, Dan Lu et al.