NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Keep the Process, Change the Supplier: Runtime Governance for Tool-Using AI Agents

Deepak Waghmare, Shaad SufiarXiv 2026

Imagine you’ve hired a highly capable, yet slightly erratic, personal assistant. You tell them to "buy 100 shares of Apple." They walk out the door, and then... silence. Ten minutes later, they haven't returned. Did they buy the shares? Did their phone die? If you send a second assistant to do the same task, you might end up owning 200 shares—a costly mistake.

This is the "uncertain outcome" problem in the world of AI agents. When an agent (like an LLM) calls a tool (an API, a database, a service), the connection can drop at the worst possible moment: after the action was taken but before the agent received the confirmation.

In their paper, "Keep the Process, Change the Supplier," Deepak Waghmare and Shaad Sufi introduce the Open Process Control Plane (OPCP). It’s a specialized "safety net" runtime designed to sit between the AI agent and the tools it uses, ensuring that business rules are followed and "double-buying" doesn't happen, even when the internet goes sideways.

TL;DR

AI agents are great at proposing actions, but they are terrible at managing the messy reality of executing them. This paper introduces OPCP, a governance layer that separates an agent's request from the actual execution, preventing unauthorized actions and duplicate effects (like double-charging a credit card) when systems fail or suppliers change.

What Problem Does This Paper Address?

Current AI research focuses heavily on making agents "smarter"—better at reasoning and planning. But in a production environment, "smart" isn't enough; you need "reliable."

The authors identify a critical gap at the execution boundary. When an agent decides to use a tool, several things must happen that the agent shouldn't necessarily control:

  1. Authorization: Is the agent actually allowed to spend this much money?
  2. Data Privacy: Is the agent accidentally sending sensitive user data to a third-party tool?
  3. Supplier Selection: If one API is down, can we swap to another without the agent needing to "re-think" its entire plan?
  4. The "Lost Reply" Problem: If a tool executes an action but the confirmation is lost, how do we prevent a duplicate action during a retry?

Methods

The authors built and tested OPCP, which acts as a mediator. As shown in Figure 1, every "capability call" from an agent passes through four business-controlled stages:

The OPCP mediation flow: Input Projection, Authority Gate, Eligibility, and Selection.
  1. Input Projection: Filters the agent's request to ensure only permitted fields are sent to the tool.
  2. Authority Gate: Checks the request against hard-coded business policies (e.g., spending limits).
  3. Eligibility: Filters potential tool providers based on compliance (e.g., "must be a GDPR-compliant server").
  4. Selection: Chooses the best available provider (routing).

Crucially, OPCP maintains a persistent state. It remembers what it tried to do. If the system crashes mid-call, OPCP can look at its logs upon restart and realize, "Wait, I already sent this request to Supplier A; I shouldn't try again with Supplier B."

Datasets

The authors didn't test this on a "dataset" in the traditional machine learning sense. Instead, they created a rigorous empirical testbed:

  • 2,400 fault episodes: They simulated various failures (timeouts, malformed replies, refusals) across different policies.
  • 60 process-termination episodes: They literally killed the software process at different stages of execution to see if it could recover without errors.
  • 19,000 timed calls: To measure how much "lag" (latency) this governance layer adds.
  • Note: They explicitly did not use a live LLM for these tests. They used "scripted requests" to isolate the performance of the plumbing from the unpredictability of the agent.

Key Insights and Ideas

  • Uncertainty is not Failure: The most profound insight is that a "timeout" is an unknown state, not a "no." Treating it as a "no" and retrying elsewhere is how you get duplicate effects. OPCP handles this by stopping and asking for manual reconciliation if it can't be sure what happened.
  • Idempotency is a Team Sport: To truly prevent duplicates, you need two things: the runtime must remember the "key" for the request, and the tool supplier must be idempotent (meaning if they see the same key twice, they don't perform the action twice).
  • The Safety-Availability Tradeoff: You can have a system that is always "up" (high availability) but occasionally makes mistakes, or a system that "stops" when it's confused (high safety). OPCP leans toward safety.

Key Results

The experiments showed that OPCP is remarkably robust compared to a "retry-all" strategy:

  • Zero Duplicates: In 600 tested episodes, OPCP resulted in zero "cross-supplier" duplicates (where two different companies both executed the same charge).
  • Recovery: As seen in Figure 2, OPCP successfully recovered from definite failures without creating duplicates, whereas simpler "retry" logic failed the safety test every time a reply was lost after a commit.
Figure 2: Fault-policy outcomes for all 12 scenario families. Each cell is a count out of 50 variants. Left: episodes with more than one committed effect, regardless of supplier. Right: final responses acknowledging success. The conservative composition matches OPCP; acknowledged completion alone is not a safety metric. These deterministic scenarios do not estimate deployment failure rates.
  • The Cost of Governance: Safety isn't free. Using "best-score" routing (choosing the best supplier) takes about 1.4 milliseconds, compared to just 0.26 milliseconds for a simple "pinned" route. While that sounds fast, the latency scales up as you add more suppliers or larger data payloads (see Figure 4).
Figure 4: Scaling measurements on one workstation. Markers are medians of ten round medians; error bars are 95% block-bootstrap intervals over rounds. Left: candidate-pool size with a fixed check input. Right: transaction input size with a single supplier. Both axes use logarithmic scales. Workloads and uncertainty units are described in Section 3.5.

Limitations and Future Work

The authors are very honest about what this paper doesn't do:

  • No Real Agents: Since they used scripts, we don't know if a real LLM would get "confused" by the way OPCP handles uncertainty.
  • The "Prompt" Problem: Even if you can technically swap Supplier A for Supplier B, the agent's prompt might be specifically tuned for Supplier A's quirks. Swapping the "plumbing" might still break the "logic."
  • Local vs. Global: These tests were run on a single workstation. In a real-world distributed system (with servers all over the globe), network lag and complex "split-brain" scenarios would be much harder to manage.

In short, OPCP is a blueprint for the "boring" parts of AI—the parts that make sure the bank account stays balanced and the rules stay followed, even when the "brilliant" AI agent is having a bad day.

Summary updated

BibTeX
@misc{waghmare2026keep,
  author = {Deepak Waghmare and Shaad Sufi},
  title = {{Keep the Process, Change the Supplier: Runtime Governance for Tool-Using AI Agents}},
  year = {2026},
  eprint = {2611.26966},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26966},
}
Figure