Aegis OS:用于消除自主编码代理中授权疲劳的事务型多租户操作系统运行时
Aegis OS: A Transactional Multi-Tenant Operating System Runtime for Eliminating Authorization Fatigue in Autonomous Coding Agents
AI总结:
Aegis OS是基于Rust的事务型多租户代理OS运行时,通过MCP和A2A协议提供服务,将授权边界转移到事务工作空间,大幅减少编码代理的确认提示,降低攻击成功率,高效处理仓库克隆与合并冲突。
摘要:
自主编码代理(如Google Antigravity(agy)、Anthropic Claude Code(claude)和OpenAI Codex CLI(codex))会在工作站和云主机上执行多步骤软件工程工作流。现有代理环境面临安全-自主困境:操作员必须在两种选项中选择,一是每步操作确认提示,这会在45%-57%的工具调用中中断工作流并引发授权疲劳;二是无限制执行(--yolo / --dangerously-skip-permissions),这会将主机文件、SSH/云凭证和API令牌暴露给提示注入和幻觉风险。此外,编辑共享工作树的并发代理会相互覆盖更改,而通过LLM上下文窗口内联传递大型工件会产生高令牌开销。我们提出Aegis OS(aegis-os),这是一个用Rust编写的事务型多租户代理操作系统运行时,通过Model Context Protocol(MCP)和Google Agent2Agent(A2A)协议对外提供服务。Aegis OS将授权边界从单个工具调用转移到事务型工作空间边界。每个代理运行在内核强制的OS沙箱中(macOS的Seatbelt和Linux的Bubblewrap,采用默认拒绝的--tmpfs $HOME隔离和Unix套接字出口桥),该沙箱由写时复制(CoW)影子工作空间(APFS clonefile;单打开Linux FICLONE重链接)、具有L7方法/路径范围秘密注入和出站数据丢失防护(DLP)的身份固定HTTP出口代理,以及具有内容可寻址存储(CAS)的A2A IPC总线提供支持。在52个编码代理会话的1500次受控调用和28087次真实调用中,Aegis OS将提示减少了94.19%-99.88%(受控)和90.7%-97.9%(真实会话,1.12%的提示注入率(IPR)),在macOS和Linux上,将8个类别80次攻击的攻击成功率从100.0%降至0.0%,在APFS上以6.3毫秒克隆1000个文件(78.1 MB)的仓库,在btrfs上为15.6毫秒,并且捕获了10/10的语法和语义合并冲突。
英文摘要:
Autonomous coding agents such as Google Antigravity (agy), Anthropic Claude Code (claude), and OpenAI Codex CLI (codex) execute multi-step software engineering workflows on workstations and cloud hosts. Existing agent environments face a Security-Autonomy Dilemma: operators must choose between per-action confirmation prompts, which interrupt workflows on 45%-57% of tool calls and induce authorization fatigue, or unconfined execution (--yolo / --dangerously-skip-permissions), which exposes host files, SSH/cloud credentials, and API tokens to prompt injection and hallucination risks. Furthermore, concurrent agents editing a shared working tree clobber one another's changes, while passing large artifacts inline through LLM context windows incurs high token overhead. We present Aegis OS (aegis-os), a transactional, multi-tenant Agent Operating System Runtime in Rust exposed via the Model Context Protocol (MCP) and Google Agent2Agent (A2A) protocol. Aegis OS shifts the authorization boundary from individual tool calls to transactional workspace boundaries. Each agent runs inside a kernel-enforced OS sandbox (macOS Seatbelt and Linux Bubblewrap with default-deny --tmpfs $HOME isolation and a Unix-socket egress bridge) backed by a Copy-on-Write (CoW) shadow workspace (APFS clonefile; single-open Linux FICLONE reflinks), an identity-pinned HTTP Egress Proxy with L7 method/path-scoped secret injection and outbound DLP, and an A2A IPC bus with Content-Addressable Storage (CAS). Across 1,500 controlled calls and 28,087 real calls across 52 coding-agent sessions, Aegis OS reduces prompts by 94.19%-99.88% (controlled) and 90.7%-97.9% (real sessions, 1.12% IPR), lowers attack success rate across 80 attacks in eight categories from 100.0% to 0.0% on macOS and Linux, clones 1,000-file (78.1 MB) repos in 6.3 ms on APFS and 15.6 ms on btrfs, and catches 10/10 syntactic and semantic merge conflicts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。