arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12863cs.PLcs.AIcs.CR
收藏

基于语言的代理控制

Language-Based Agent Control

Department of Computer Science and Engineering(计算机科学与工程系)

Timothy Zhou, Loris D'Antoni, Nadia Polikarpova

AI总结:

本文提出语言基于代理控制(LBAC),一种新的代理应用编程模型,结合编程语言和语言基础安全技术,确保代理控制的正确性。LBAC通过要求代理生成在周围框架代码上下文中类型正确的程序,从而在执行前拒绝不安全程序,实现统一的策略应用。

摘要:

本文介绍语言基于代理控制(LBAC),一种新的代理应用编程模型,将编程语言和语言基础安全技术应用于代理控制问题。传统编程中,静态类型和运行时检查的结合已被用于确保正确类型程序满足用户指定的策略,包括访问控制、信息流、数据溯源等。LBAC的核心思想是通过要求代理生成在周围框架代码上下文中类型正确的程序,从而将这些保证扩展到代理应用中。不安全程序在执行前被类型检查器拒绝,允许策略在整个应用中统一应用,包括代理生成的行为和开发人员编写的框架。同时,LBAC保留了显著的表现力:代理可以执行任意无副作用的计算并递归调用子代理,这些子代理保留完整的工具访问权限,但受相同或更严格的策略限制。我们通过三个案例研究展示了LBAC:通过文件系统能力实现I/O沙箱、数据溯源和信息流控制。

英文摘要:

This paper introduces language-based agent control (LBAC), a new programming model for agentic applications that brings techniques from programming languages and language-based security to the problem of agent control. In conventional programming, combinations of static typing and runtime enforcement have long been used to guarantee that well-typed programs satisfy user-specified policies, including policies for access control, information flow, data provenance, and more. The key idea behind LBAC is to extend these guarantees to agentic applications by requiring agents to generate programs that are themselves well-typed in the context of the surrounding scaffolding code. Unsafe programs are rejected by the typechecker before execution, allowing policies to apply uniformly across the entire application, including both agent-generated behavior and developer-written scaffolding. At the same time, LBAC preserves substantial expressiveness: agents may perform arbitrary side-effect-free computation and recursively invoke subagents, which retain full tool access subject to the same--or potentially more restrictive--policies. We demonstrate LBAC with three case studies: I/O sandboxing via filesystem capabilities, data provenance, and information-flow control.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑