AI and the World's Hard Problems · Theoretical computer science · arXiv · 2026-11-10
Symbolic Temporal Supervision of LLM Agents Using Contracts

LLM agents that call tools can cause harmful, irreversible outcomes through hallucinations or adversarial manipulation. ContrAgent models agent behavior as traces of tool calls and specifies required behavior with assume-guarantee contracts in LTL over finite traces, compiled to deterministic finite automata that gate actions online and evaluate traces offline. Across four benchmarks it is competitive with LLM-judge, classifier and guardrail baselines, gives deterministic and reproducible verdicts, and in online mode has orders-of-magnitude lower per-call latency.