Check permissions and source history before retrieved content reaches the model.
Try the free preview · Read the docs · Caber website
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.
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.
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.
- 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.
- 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.
- 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).
- 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, or withhold the fragment before it reaches the model.
- 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.
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.
Caber follows the OpenTelemetry model for zero-code Python instrumentation. Configure the Caber connection and start the application with caber-run.
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.0To enable instrumentation in code, import pycaber.auto before HTTP or agent framework libraries.
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 policypycaber 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.
| Property | Value | Status |
|---|---|---|
| Fragment Granularity | 40 byte floor; 160 byte mid ceiling; 768 byte coarse ceiling | Implemented (WRL chunker production defaults) |
| Copy Detection After Edits | 99% for passages of 512 bytes or more; 95% for 256 to 512 bytes | Measured 20 Sep 2026 |
| Chunker Throughput | 76.6 MiB/s per core, chunk scan only, 20 MB input | Measured 21 Sep 2026 |
| Policy Evaluation Path | Rego compiled to Wasm, hosted in process (wasmtime); no network or database call | Implemented |
| SDK Added Delay, No Policy | p95 0.88 to 1.27 ms across HTTP, agent tool call, and WebSocket turn | Measured 5 Nov 2026 (wheel 0.2.5421, Apple M1 Max) |
| Inline Decision Budget | 200 ms end to end | Design budget |
| Stale Call Accuracy | 99.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 chunker 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.
| Agent Frameworks | Models & Vector Stores | Protocols & Identity | Data 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 with Roaring bitmaps for fingerprints, OpenSearch for events and content, and a graph database such as Neo4j for context.
- System Architecture Guide.
- Integrations Catalog.
- PyCaber SDK Guide.
caber-coreCompose Guide.- CaberUserConsole Guide.
agentgov-mimicandagentic-tools.
Copyright 2026, Caber Systems, Inc.