Context: 通过可组合沙盒程序、声明式连接和结构化交互实现主动目标导向智能
Context: Proactive Goal-Directed Intelligence via Composable Sandboxed Programs, Declarative Wiring, and Structured Interaction
AI总结:
提出Context架构,通过可组合沙盒程序、声明式连接和结构化交互实现主动目标导向智能,并证明其在成本、正确性和效率上的优势。
摘要:
我们提出Context,Magarshak架构的智能层,用主动目标导向智能体取代被动查询-响应聊天机器人,无需等待用户提示即可推进共享任务。该架构基于三个相互增强的机制。编写时上下文组装通过Groker智能体预计算丰富的类型化属性,将交互上下文组装为图状态的确定性纯函数;上下文块在语义变化之间的轮次中字节相同,实现近100%的KV缓存重用。可组合沙盒智慧程序形成一个受管理的库,包含LM生成的命令式程序,通过类型化流关系声明式连接到目标类型,通过阶段排序组合,并在交互时执行而无需进一步调用LM。主动目标流状态机通过检查图状态并发出结构化交互内容(选项数组、治理功能、澄清提示)驱动对话走向终止状态,无需等待用户输入。我们证明了六个形式化结果:上下文稳定性定理,将每轮LM成本限制为语义变化率的函数;程序组合正确性定理;声明式连接正确性定理;主动主导定理,证明主动智能体在期望轮数到终止状态上弱主导被动智能体;协调开销消除与质量保持,建立多方目标聊天中的帕累托改进;以及跨平台投票一致性定理。已在开源Qbix/Safebox/Safebots栈中实现。
英文摘要:
We present Context, the intelligence layer of the Magarshak Architecture, which replaces reactive query-response chatbots with proactive goal-directed agents that advance shared tasks without waiting for user prompts. The architecture rests on three mutually reinforcing mechanisms. Write-time context assembly precomputes enriched typed attributes via Groker agents, assembling interaction context as a deterministic pure function of graph state; context blocks are byte-identical across turns between semantic changes, enabling near-100% KV-cache reuse. Composable sandboxed wisdom programs form a governed library of LM-generated imperative programs declaratively wired to goal types via typed stream relations, composed via phase ordering, and executed at interaction time without further LM calls. Proactive goal stream state machines drive conversations toward terminal states by inspecting graph state and emitting structured interaction content (option arrays, governance affordances, clarification prompts) without awaiting user input. We prove six formal results: the Context Stability Theorem, bounding per-turn LM cost as a function of semantic change rate; a Program Composition Correctness Theorem; a Declarative Wiring Soundness Theorem; the Proactive Dominance Theorem, proving proactive agents weakly dominate reactive agents on expected turns-to-terminal-state; Coordination Overhead Elimination and Quality Preservation, establishing Pareto improvements in multi-participant goal chats; and a Cross-Platform Vote Consistency Theorem. Implemented in the open-source Qbix / Safebox / Safebots stack.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。