SessionBound: 将企业任务审批转化为预算化的数据库会话
FactGate: A Task-Scoped Data Gateway for AI Agents with Cumulative Exposure Accounting
AI总结:
提出SessionBound框架,将审批的企业任务转化为短期、预算化、可审计的数据库会话,通过控制平面和SessionBoundDB实现安全边界,无需LLM判断查询安全性。
摘要:
企业AI代理可用于内部分析、审计、合规审查和运营调查,但带来了困难的授权问题。经理或数据所有者可能批准一项业务任务,而代理随后在应用层之下生成开放的SQL。现有系统有助于识别代理、委托权限、治理数据产品或执行数据库策略,但并未直接将批准的企业任务转化为有边界的数据库执行上下文。SessionBound填补了这一空白。它将批准的企业任务转化为AI代理的短期、预算化且可审计的数据库会话。控制平面定义任务模板、接受任务申请、记录审批、分配预算并签发签名的任务令牌。数据库运行时SessionBoundDB将令牌绑定到会话,并强制执行安全视图、行范围、拒绝字段、操作限制、查询预算、披露预算和收据。数据库不依赖LLM来判断查询是否安全。代理可以自由生成SQL,但每次尝试都必须保持在批准的边界内。PostgreSQL原型通过了24场景验证套件。微基准测试显示,在小规模合成查询上,SessionBound的p50执行时间约为1.4-1.5毫秒,而原始PostgreSQL的p50约为0.052-0.074毫秒:相对开销较高,但绝对延迟较低。
英文摘要:
Per-query authorization does not compose across an adaptive agent's pages, retries, rewrites, and delegated subtasks, and row or query counters are order-dependent. FactGate is a release layer for immutable reporting publications that turns one approved task into a cumulative contract: three set-valued budgets over declared identities (result, positive-output dependency, and outcome facts) shared by the root task and descendants. Exact set novelty against the root-family ledger is settled atomically on one PostgreSQL snapshot before any result becomes retrievable. The guarantee is bounded release: within one root family and publication epoch, at most the approved number of distinct declared facts of each kind becomes available, whatever the admitted sequence; inference from answered or refused predicates is not bounded. Accounting is exact under declared rules over a closed fragment (connected equijoins, grouping, bounded unions, nested Views, derived-cell arithmetic) that admits 55% of 40 held-out LLM-written statements (70% of a development set adapted during construction). Ordinals, bitmaps, and a Merkle-radix set keep novelty exact at 10^7 facts. A single-host campaign (9,393 samples) charges every scripted decomposition once, keeps an adaptive trace within its budgets, and costs 21.8-144.0x a direct query; settlement takes a median 163 ms against a million-fact history at zero overlap.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。