NOMOS makes written policies safer for tool-using agents
NOMOS: Compiling Written Policies into Statically Verified Tool-Call Gates for LLM Agents · arXiv:2610.11030
In plain words
NOMOS is a compiler and runtime gate for software agents that use tools under written policies. It turns policy sentences into rules, checks whether those rules can work with the available tools, and blocks calls using facts from user turns and real tool results.
Only the extraction step uses a large language model; the checks and live decisions are deterministic.
In airline and retail task tests, the gate sharply reduced actions that broke the tested policies. Airline task success improved, but retail's raw task success did not significantly change.
The research
If a language model extracts a rule incorrectly, a deterministic enforcer will follow the mistake exactly. Can a system make these gates operable without asking another model to judge every call, while also detecting rules that are structurally valid but reject legitimate work? NOMOS addresses that design question for tool-using agents.
NOMOS adds static rule repair, deterministic fact-based call blocking, and transcript replay to make extracted policy gates operable and screen harmful bindings.
First, NOMOS checked extracted rules against tool schemas and static tables, then replayed them on recorded undefended runs.
An independent checker measured policy-breaking calls among tool calls that changed data: with the gate, rates fell from 66.3% to 2.6% on airline and from 30.8% to 6.9% on retail.
Airline task success improved significantly when estimated over two to four trials per task; retail raw task success did not. The evidence supports safer execution, not universal task improvement, because refused calls and missing compiled clauses shape the measured result.
The conclusion is limited to the tested policies, tools, and evaluators: unencoded clauses can remain unenforced, structured tool data is trusted, and the gate controls tool calls rather than text. The study did not establish behavior in unseen domains or under poisoned records.
What the evidence shows
- Why naive extraction fails
NOMOS is a four-pass compiler and deterministic runtime gate for turning written policies into rules for tool-using language-model agents. The paper starts from a practical failure: an extracted rule can be syntactically plausible yet make authentication impossible, require approval for read-only work, or refer to data a tool does not accept. The central question is whether those failures can be screened before the rule controls calls.
- What the compiler checks
The compiler separates extraction from enforcement. Its Resolve pass treats candidate rules as data and checks tool existence, enabling tools, writable scope, argument compatibility, and contradictions using schemas and static tables.
It repairs or rejects candidates, while a separate stability vote filters inconsistent extractions. At runtime, NOMOS makes deterministic allow-or-block decisions from user turns and real tool results, excluding the agent's own claims.
- Why two checks matter
The counts show why the separation matters. In production compilations, structural checks removed or repaired 36.7% of airline candidates and 13.2% of retail candidates, before stability filtering left 10 and 5 enforced rules.
In a separate frozen-pool ablation, removing all verification produced mostly inoperable emitted rules: 8 of 14 in airline and 3 of 5 in retail. These are operability results, not task-success results.
- Safety versus task success
In τ²-bench, a test suite where agents complete simulated airline or retail tasks and the score records whether the final simulated state is correct, an independent checker measured policy violations among tool calls that changed data.
The gate reduced those rates sharply in both domains. Airline task success also improved significantly for two to four repeated trials per task, but retail raw task success did not significantly change, so safety and task performance are related but not identical outcomes.
- How far the evidence travels
The comparisons narrow the claim. On the 50 airline tasks, a local 26B compilation was not significantly worse than hand-written or frontier-model rule sources under the same gate, although equivalence was not established.
In banking attack tests, reusing the same compiled rules with a second agent model reduced attack success to zero in both tested models. These results support transfer within the tested settings, not model-independent or domain-wide guarantees.
Deep
- Original paper authors
- Min-Young Yu, Tony Kim, Jang Won Choi
- Submitted to arXiv
- License
- arXiv non-exclusive