Skip to content

Active Data Use Control for Agentic AI

Check permissions and source history before retrieved content reaches the model.

The Problem ​

An agent's access should reflect the user asking the question.

Caber checks retrieved content before it reaches the model, using the requesting user's identity, source permissions, and version history.

It addresses three common failures:

  • Data leaks. Block access to one copy, and agents find another.
  • Stale answers. A stale passage reads the same as a current one.
  • Overbroad agent access. A shared service account gives users access beyond their own permissions.

Caber links matching fragments across sources, enforces policy at instrumented retrieval and tool boundaries, and records the evidence behind each decision.

Caber Console trace showing sentence level redaction with stale and duplicate results (dark mode)Caber Console trace showing sentence level redaction with stale and duplicate results (light mode)

Figure 1: One agent retrieval in the Caber Console. Caber strikes the sentences the requesting user's policy restricts (red) and passages duplicated across returned versions (blue), flags stale versions, and delivers the rest of each result to the model.


Technical Approach ​

A relevant passage can still be restricted or stale. An AI model cannot enforce permissions it was never given. Caber connects retrieved fragments to their known occurrences and source metadata so policy can be enforced before the content reaches the model.

Caber implements this in five stages.

  1. Identify fragments. Split files, messages, and payloads into overlapping, content defined fragments roughly a sentence long, with a 40 byte minimum. Fold ASCII case and collapse whitespace runs before fingerprinting so identical normalized bytes produce the same fingerprint.
  2. Link occurrences. Match fingerprints across documents, API payloads, and agent tool calls, independent of file identity, location, or labels. Report byte ranges for matching spans. Overlapping fragments preserve matches outside edited regions. Matching uses normalized bytes without embeddings, so a paraphrase with no surviving 40 byte run cannot match.
  3. Attach source context. Record each occurrence’s source owner, ACL, timestamps, and version in the context graph. Cluster documents by shared fragments and order each cluster into a version history (beta).
  4. Enforce policy. At retrieval time, evaluate compiled Rego in process using the fragment’s context, the user the agent acts for, and the request purpose. Release, mask, replace, redact, or withhold the fragment before it reaches the model.
  5. Trace use. The SDK ties observed fragments to instrumented application, tool, and API calls and their identities, and audits each policy decision. Caber links delivered fragments to model outputs with TAINTS relationships (beta) and records the evidence for each link, whether the output cites the source, reproduces a fragment, or the source was present in model context. The links exclude withheld fragments and also cover data the same user read earlier in the trace or session.

Architecture ​

Caber architecture (dark mode)Caber architecture (light mode)

Figure 2: Caber architecture. Three sources of context (instrumented callers, storage and event connectors, and identity connectors) feed one core, which decides in the caller's process and records relationships in a context graph.

The SDK instruments applications without changes to agent logic and evaluates Rego compiled to WebAssembly in the caller's process. The indexing engine identifies fragments, and connectors supply enterprise metadata and identity. The context graph records relationships among fragments, sources, principals, policies, and observed operations.

The Architecture Overview describes each numbered component in Figure 2.


Getting Started ​

Caber follows the OpenTelemetry model for zero code Python instrumentation. Configure the Caber connection and start the application with caber-run.

bash
export CSI_API_KEY="your-api-key"
export CSI_CABER_HOST="https://your-caber-instance.example.com"

caber-run python app.py
caber-run uvicorn myapp:app --host 0.0.0.0

To enable instrumentation in code, import pycaber.auto before HTTP or agent framework libraries.

python
import pycaber.auto  # must come before HTTP and agent framework imports

import requests
from langgraph.prebuilt import create_react_agent
# Tool calls, retrievals, and API responses are now captured and checked against policy

pycaber intercepts the calls an application makes through common HTTP clients (requests, httpx, aiohttp, and urllib3), WSGI and ASGI servers, WebSocket clients, and gRPC clients and servers. It also captures tool, retriever, and memory calls in LangChain, LangGraph, CrewAI, LlamaIndex, and AutoGen without changes to agent logic. For custom functions exposed to agents, the @pycaber.tool decorator attaches policy metadata. Author policies in the Caber admin console and deploy them to caber-core.


Performance & Sizing ​

PropertyValueStatus
Fragment Granularity40 byte floor; 160 byte mid ceiling; 768 byte coarse ceilingImplemented (Caber Fingerprinter defaults)
Copy Detection After Edits99% for passages of 512 bytes or more; 95% for 256 to 512 bytesMeasured 20 Sep 2026
Fingerprinter Throughput76.6 MiB/s per core, chunk scan only, 20 MB inputMeasured 21 Sep 2026
Policy Evaluation PathRego compiled to Wasm, hosted in process (wasmtime); no network or database callImplemented
SDK Added Delay, No Policyp95 0.88 to 1.27 ms across HTTP, agent tool call, and WebSocket turnMeasured 5 Nov 2026 (wheel 0.2.5421, Apple M1 Max)
Inline Decision Budget200 ms end to endDesign budget
Stale Call Accuracy99.8% of stale calls correct (17,047,191 of 17,080,334)Simulated 27 Oct 2026, clusters of 2 to 40 versions (beta)

Copy detection measures whether the fingerprinter finds a copied passage after shifting, splicing, rewrapping, or reformatting. Stale call accuracy measures the share of versions flagged as stale that were stale in the simulation. SDK delay measures instrumentation overhead with no matching policy and on behalf of identity disabled. The 200 ms budget is a design target.


Ecosystem Integrations ​

Agent FrameworksModels & Vector StoresProtocols & IdentityData Sources (Connectors)
• LangGraph
• LangChain
• LlamaIndex
• CrewAI
• AutoGen
Calls detected and typed (beta):
• OpenAI, Anthropic
• AWS Bedrock
• Google (incl. Vertex AI)
• Cohere, Mistral
• Groq, Together, Fireworks, DeepSeek, Perplexity
• Self hosted endpoints (e.g., vLLM, by configuration)
• Pinecone*, Weaviate*, Chroma*
• Model Context Protocol (MCP)
• A2A (beta)
• gRPC / protobuf, WebSocket
• OIDC / JWT identity providers
• AWS SigV4, SPIFFE, mTLS
• AWS S3 / MinIO
• Google Cloud Storage*
• Azure Blob*
• PostgreSQL, MySQL, SQLite
• File systems
• CloudTrail, Kafka*, API polling

* On the near term roadmap.

Self host Caber with Docker Compose, including a single host trial. caber-core uses RocksDB index files for fingerprints, OpenSearch for events and content, and a graph database such as Neo4j for context.


Quick Navigation ​