Architecture Overview & Unified Data Flow
Theory of Operation
- Fingerprint content. The WRL Chunker fragments every parsed document and live payload and fingerprints each fragment. See Characterization and the WRL Chunker.
- Link the copies. Fingerprints are indexed in the Roaring Bitmap Index (
.rbix). Fragments with the same fingerprint form one equivalence class across sources. - Collect context from every copy. Identity and metadata connectors supply owners, ACLs, groups, and timestamps. NER, driven by the configured labels, enabled ontologies, and enabled compliance frameworks, attaches entities. The graph holds
(:Entity {id,text,label})nodes linked byTAINTSto the Edges they occur in. - Resolve versions (beta). Two Stage IDF Stale Source Clustering builds version DAGs and assigns
freshness_rank. See Freshness and Stale Clustering. - Decide at inference time. Compiled Rego runs in process with the fragment context, the Human Principal (
obo.user), and the declared purpose. Metapolicies resolve multisource conflicts. See Metapolicies and Governance. - Record the decision. Each adjudication emits an Audit V2 receipt with the affected regions, determining policy, caller identity, and purpose.
CONSOLE FUNCTIONAL PROOF
/admin/contextGraphNeo4j Context Graph & Ontological Provenance ExplorerAssertion Verified: Proves that identical sentence bytes in two different documents carry distinct meaning and governance verdicts depending on their ontological neighborhood (:Region NER rollup, LNKD-{xor}-{count} equivalence class, and CORI provenance).
Content is Finite; Context is InfiniteMorgan Company Ambiguity DisambiguatedLNKD-{xor}-{count} Equivalence ClassesDecision E7 :Region NER Rollup

4. End to End Data Flow Walkthrough
Plane 2: Synchronous SDK & Gateway Interception Flow
- Zero Code Instrumentation (
pycaber.auto): Callingimport pycaber.autoactivates thepycaberautomatic instrumentation hooks (native enginepycaber._native, bundled in thepycaberwheel) across 15 HTTP/WebSocket/gRPC frameworks (FastAPI, Flask, Django, Starlette, AIOHTTP, Tornado, Quart, Falcon, Bottle, Pyramid, Sanic, Litestar, Grpcio, Websockets, Requests/HTTPX) and 5 AI/agent frameworks (LangChain/LangGraph, LlamaIndex, CrewAI, AutoGen, OpenAI/Anthropic/MCP clients). - Streaming WRL Characterization: Request and response payloads stream through
streaming_core::WrlProcessorat76.6 MiB/sper core, extracting 64 bitChunkIdfingerprints and exact[start_byte, end_byte)coordinates. - OBO Identity & Protocol Detection:
caber_identityandcaber_authextract On Behalf Of (obo.user) JWT/HMAC delegation chains across A2A, MCP (tools/call,resources/read), and LLM API boundaries, binding every tool invocation and completion to the initiating human principal.
5. Architectural Pillar & Package Mapping
| Architectural Pillar | Rust Crates (PyCaber/crates/) | Active Python Packages (PyCaber/python/) | Storage Backends & Queues | Runtime Binaries & Listeners |
|---|---|---|---|---|
| Transport, Discovery & Coordination | caber_transport, coordinator, caber_hub, ingest_stage, caber_mcp | pycaber_connector, pycaber_types | SQLite (Fold), PostgreSQL + AWS SQS (Split), shared-storage | caber-hub (/v1/dependencies), caber-core (QueueIngestor on csi-s3event-q) |
| Fingerprinting, WRL & RBIX Indexing | streaming_core, roaring_index, rocksdb_storage, base_utils | pycaber (PyO3 bindings) | RocksDB (roaring_index.db 13 CFs), .rbixb + .json sidecars | caber-core (in memory + RocksDB reader), caber-cli |
| Document Parsing & Zero Shot NER | ingest_core, document_parser_client, content_typer, sys_config | pycaber_parser (markdown_runner.py, gliner2_runner.py, docling_runner.py) | shared-storage (ParserCache/, redirect-{hash}/) | scripts/parser_service.py (:8765 GLiNER2, :8766 Docling), document_parser_container |
| Lineage, Context Graph & Governance | graph_builder, caber_governance, caber_auth, caber_identity, caber-core | pycaber (native engine pycaber._native; pycaber_graph, pycaber_graph_lib, pycaber_ingest decommissioned into caber-core) | Neo4j (bolt://neo4j:7687), OpenSearch (csi_doc_graph, csi_audit_trail) | caber-core (HTTP :8080, gRPC :50051, Redis Pub/Sub, QueueIngestor) |
