R183 · Agent architecture › Governance of agent state

TrustGraph: access control before the model reads

Read the original

Authors André Lindenberg (shared)

agent-governanceknowledge-managementretrievalmcpopen-sourcesemantic-layer

Source: André Lindenberg, LinkedIn post, 2026-11-20 (post); trustgraph-ai/trustgraph (Apache-2.0, about 2.9k stars, policy filtering new in release 2.10). Context: Snowflake announced Business Ontology this month and Databricks made Genie Ontology generally available; TrustGraph positions itself as the self-hosted, standards-based alternative. Claims below come from the project README; no independent benchmarks.

TL;DR

TrustGraph is an open-source "ontology runtime": it extracts a knowledge graph from documents, guided and checked by your OWL ontology, stores it as RDF with provenance, and serves it to agents over MCP, SPARQL, REST and GraphRAG. The idea worth taking away is where access control sits. Policies written as SHACL-AF shapes are evaluated per node on every query, so restricted facts are filtered out of the result before any model sees them. Redacting a model's answer afterward is not access control, because the model has already read the data and can paraphrase, infer or leak it.

Architecture

Three stages, all on W3C standards:

  1. Extract (OntologyRAG). A similarity selector picks the relevant slice of the ontology for each chunk (with a bypass for small ontologies). The LLM emits triples, which are validated against domain, range and subclass constraints; triples that violate them are rejected. Entity types are stored with the graph embeddings so vector search can filter by type. Schema-free GraphRAG and hybrid BM25-plus-vector DocumentRAG with cross-encoder reranking are also available.

  2. Ground (context graph). Knowledge is stored as RDF (including RDF-star) in named graphs, with PROV-O lineage from document to page, chunk and edge. Query-time reasoning traces for GraphRAG, DocumentRAG and agent queries go into a separate named graph and are themselves queryable.

  3. Govern (SHACL-AF policies). Policies live in their own named graph. Each graph query is evaluated node by node against a per-request user context and gets one of three results: Allowed, Filtered or Violation. The same policies apply across REST, SPARQL and GraphRAG, and every evaluation emits a structured audit event. With no policies loaded the system runs in open mode.

Around that: guided traversal (seed nodes, per-hop restrictions by type, relationship, named graph or language), an agent orchestrator (ReAct, plan-then-execute, supervisor), an MCP server with bearer-token auth, small fast classifiers for decision scoring, and portable bundles for moving a workspace between deployments. It runs as a set of containers on Pulsar or RabbitMQ, Cassandra, Qdrant and S3-compatible storage. The README is explicit that it checks OWL constraints but is not a full OWL reasoner.

Tradeoffs

Failure modes to watch

Review checklist

Cited in field guides

Connections

See R183 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.