arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.27299cs.LG
收藏

从推理路由到代理编排:基于跨层验证的声明性策略编译

From Inference Routing to Agent Orchestration: Declarative Policy Compilation with Cross-Layer Verification

McGill University(麦吉尔大学)

Huamin Chen, Xunzhuo Liu, Bowei He, Xue Liu

AI总结:

本文扩展了非图灵完备的策略语言,从单请求路由到多步骤代理工作流,通过跨层验证确保策略一致性,提升可审计性和可验证性。

摘要:

Semantic Router DSL 是一种非图灵完备的策略语言,用于生产环境中的请求级 LLM 推理路由:内容信号(嵌入相似性、PII 检测、 Jailbreak 评分)通过加权投影和优先级排序的决策树选择模型、执行隐私策略并生成结构化审计追踪——所有操作均源自单一声明性源文件。先前工作已建立了概率谓词的无冲突编译,并将 DSL 定位在 Workload-Router-Pool 推理架构中。本文将该语言扩展到多步骤代理工作流——从推理网关到代理编排再到基础设施部署的完整路径。DSL 编译器会生成经过验证的决策节点,用于编排框架(LangGraph、OpenClaw)、Kubernetes 资源(NetworkPolicy、Sandbox CRD、ConfigMap)、YANG/NETCONF 负载以及协议边界网关(MCP、A2A)——所有内容均源自同一源文件。由于语言非图灵完备,编译器保证了全面的路由、无冲突的分支、参照完整性以及与决策逻辑结构耦合的审计追踪。由于信号定义在目标之间共享,阈值变化从推理网关传播到代理网关再到基础设施资源,仅需一次编译步骤——消除了跨团队协调作为策略漂移的主要来源。本文基于四个支柱——可审计性、成本效率、可验证性和可调性,并在每层确定验证边界。

英文摘要:

The Semantic Router DSL is a non-Turing-complete policy language deployed in production for per-request LLM inference routing: content signals (embedding similarity, PII detection, jailbreak scoring) feed into weighted projections and priority-ordered decision trees that select a model, enforce privacy policies, and produce structured audit traces -- all from a single declarative source file. Prior work established conflict-free compilation for probabilistic predicates and positioned the DSL within the Workload-Router-Pool inference architecture. This paper extends the same language from stateless, per-request routing to multi-step agent workflows -- the full path from inference gateway to agent orchestration to infrastructure deployment. The DSL compiler emits verified decision nodes for orchestration frameworks (LangGraph, OpenClaw), Kubernetes artifacts (NetworkPolicy, Sandbox CRD, ConfigMap), YANG/NETCONF payloads, and protocol-boundary gates (MCP, A2A) -- all from the same source. Because the language is non-Turing-complete, the compiler guarantees exhaustive routing, conflict-free branching, referential integrity, and audit traces structurally coupled to the decision logic. Because signal definitions are shared across targets, a threshold change propagates from inference gateway to agent gate to infrastructure artifact in one compilation step -- eliminating cross-team coordination as the primary source of policy drift. We ground the approach in four pillars -- auditability, cost efficiency, verifiability, and tunability -- and identify the verification boundary at each layer.

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

↑