跳到正文
arXiv cs.AI· Milad Sikaroudi·· 4 小时前AI 评分55

Concordat 论文提出用类型化会话协议在运行时约束 LLM 智能体行为

Concordat: Typed Sessions for LLM Agents

AI 导读

arXiv 论文 2610.37461 提出 Concordat,一个把智能体建模为有限状态协议接口的 Python 库,运行时只暴露当前状态下合法的工具,越权调用在被执行前拒绝,人类专属决策只能被请求。

正文 · 原文

View PDF HTML (experimental)

Abstract:Agents built on large language models are increasingly allowed to take consequential actions: cancelling bookings, issuing refunds, changing accounts. The rules that govern those actions, such as "obtain the customer's explicit confirmation before changing anything", are usually stated in the prompt and followed only as reliably as the model chooses to follow them. We present Concordat, a Python library that treats an agent as an object whose interface is a finite-state protocol, in the spirit of typestate and session types, and enforces that protocol on the model at run time. On every turn the model is offered only the tools that are legal in the current protocol state, calls outside that set are rejected before they have side effects, decisions reserved for humans can only be requested, and token and tool-call budgets are charged and split linearly across handoffs. Protocols are checked when they are defined, and a subclass of an agent is rejected if it could bypass its parent's protocol, a behavioural form of Liskov substitution. We evaluate a Concordat agent against the standard agent of tau-bench on its 50 airline tasks, adding simulated customers who pressure the agent to skip confirmation. The standard agent made changes without the required "yes" in 13 of 50 tasks with gpt-4.1 and in 29 of 128 task-runs with Claude Haiku 5.5; the Concordat agent made none, with no significant difference in task success. tau-bench's own reward did not detect most of these violations. Concordat is open source.
Comments: 11 pages, 1 figure, 1 table. Code, benchmark harness and results: this https URL
Subjects: Artificial Intelligence (cs.AI); Multiagent Systems (cs.MA)
ACM classes: D.2.4; D.3.3; I.2.7
Cite as: arXiv:2610.37461 [cs.AI]
  (or arXiv:2610.37461v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.37461

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Milad Sikaroudi [view email]
[v1] Tue, 27 Oct 2026 16:00:26 UTC (15 KB)

来源:arXiv cs.AI · arxiv.org