ContextNest: Verifiable Context Governance for Autonomous AI Agent
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 33 references that are in the map. First posted on arXiv 2 Jul 2026.
Builds on
9 of 33 references.
References · 9
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2018Datasheets for Datasetscited by 1,386
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
- 2018Model Cards for Model Reportingcited by 1,080
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
- 2019Passage Re-ranking with BERTcited by 645
- 2020A Survey on Knowledge Graphs: Representation, Acquisition and Applicationscited by 643
- 2023Benchmarking Large Language Models in Retrieval-Augmented Generationcited by 312
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026AI Agents Do Not Fail Alone:The Context Fails First
- 2026Context Kubernetes: Declarative Orchestration of Enterprise Knowledge for Agentic AI Systems
- 2026AGL-1: The Enterprise AI Governance Layer as a Control Plane for Trusted Enterprise Intelligence
- 2026CARGO: Context-Aware Retrieval-Gated Evaluation of Agentic AI in Production
- 2026ElephantBroker: A Knowledge-Grounded Cognitive Runtime for Trustworthy AI Agents
- 2026Governed Memory: A Production Architecture for Multi-Agent Workflows
- 2026Addressable Recall Compaction for Long Context-Window Control in AI Agents
- 2026Reasoning Provenance for Autonomous AI Agents: Structured Behavioral Analytics Beyond State Checkpoints and Execution Traces