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

ContextNest:自主AI智能体的可验证上下文治理

ContextNest: Verifiable Context Governance for Autonomous AI Agent

PromptOwl, LLC(PromptOwl公司);Goizueta Business School, Emory University(埃默里大学戈伊苏埃塔商学院);IBM Research(IBM研究院)

Misha Sulpovar, Benn R. Konsynski, Qaish Kanchwala, Gabe Goodhart

AI总结:

提出ContextNest,一种在检索前提供上下文治理的开放规范,通过版本链、哈希校验和审计追踪确保知识可验证性,实验表明其在防过时攻击和检索确定性上优于传统方法。

摘要:

自主AI智能体越来越依赖外部知识存储,但大多数检索流程仅提供相关性,而不提供关于来源、版本身份、完整性、可追溯性或时间点重建的持久保证。我们将此形式化为上下文治理,并提出了ContextNest,这是一个用于治理的AI可消费知识库的开放规范和参考实现。ContextNest并不取代检索增强生成(RAG);它在检索之下提供治理层,在检索系统操作之前确定哪些工件是批准的、当前的、可归属的和完整性验证的。该规范结合了带元数据的类型化Markdown文档、确定性集合代数选择器、contextnest:// URI引用、SHA-256哈希链版本历史、图级检查点、通过模型上下文协议(MCP)的实时数据源节点,以及智能体上下文消费的审计追踪。这些机制使组织能够重建哪些知识版本影响了智能体输出,以及这些版本在被消费时是否具有AI资格。我们报告了两个受控实验的首个实证结果。在隔离治理与检索失败模式的过时版本攻击中,治理选择严格帕累托支配BM25稀疏检索,在输入令牌成本约三分之一的情况下,答案质量通过率更高(97%对93-90%)。在包含1,060个文档的语料库上的检索确定性实验中,确定性选择器和BM25在重复相同查询时返回稳定的文档集(Jaccard系数1.0),而密集+HNSW基线在80%的查询上是不确定的(平均Jaccard系数0.611,最差情况0.210)。这些结果表明,上下文治理解决了仅靠检索质量无法设计的故障模式。我们在开放许可下发布了核心引擎、CLI和MCP服务器。

英文摘要:

Autonomous AI agents increasingly depend on external knowledge stores, yet most retrieval pipelines provide relevance without durable guarantees of provenance, version identity, integrity, traceability, or point-in-time reconstruction. We formalize this as context governance and present ContextNest, an open specification and reference implementation for governed AI-consumable knowledge vaults. ContextNest does not replace Retrieval-Augmented Generation (RAG); it supplies the governance layer beneath retrieval, determining which artifacts are approved, current, attributable, and integrity-verified before retrieval systems operate over them. The specification combines typed Markdown documents with metadata, deterministic set-algebraic selectors, contextnest:// URI references, SHA-256 hash-chained version histories, graph-level checkpoints, source nodes for live data through the Model Context Protocol (MCP), and audit traces of agent context consumption. These mechanisms let organizations reconstruct which knowledge versions informed an agent output and whether those versions were AI-eligible when consumed. We report first empirical results from two controlled experiments. In a stale-version attack isolating the governance-versus-retrieval failure mode, governed selection strictly Pareto-dominates BM25 sparse retrieval, with higher answer-quality pass rate (97% versus 93-90%) at about one-third the input-token cost. In a retrieval-determinism experiment over a 1,060-document corpus, deterministic selectors and BM25 return stable document sets across repeated identical queries (Jaccard 1.0), while a dense+HNSW baseline is non-deterministic on 80% of queries (mean Jaccard 0.611, worst case 0.210). These results suggest that context governance addresses failure modes retrieval quality alone is not designed to resolve. We release a core engine, CLI, and MCP server under open licenses.

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

↑