Concordat Enforces Typed Session Protocols on LLM Agents at Runtime
Concordat is an open-source Python library that treats an LLM agent as a finite-state protocol in the spirit of typestate and session types, and enforces that protocol at runtime. Each turn offers only tools legal in the current state, rejects out-of-protocol calls before side effects, allows human decisions only as requests, and charges token and tool-call budgets that split linearly across handoffs. Protocols are checked when defined, and a subclass is rejected if it could bypass its parent protocol. On tau-bench airline tasks with simulated customers pressuring agents to skip confirmation, a standard agent made changes without the required yes in 13 of 50 tasks with gpt-4.1 and 29 of 128 task-runs with Claude Haiku 5.5, while the Concordat agent made none, with no significant difference in task success; tau-bench’s reward missed most violations.
It reports a concrete runtime enforcement method that stopped confirmation violations prompt-only agents still made, with measured results on a standard agent benchmark.
Comments & Questions (0)
No comments yet
Be the first to comment!