Skip to main content

Architecture Overview

Briefcase AI is a polyglot platform built around a high-performance Rust core with bindings for multiple languages and a standalone HTTP API server.

System Diagram​

Component Summary​

The platform consists of five layers:

Client Layer — Applications consuming Briefcase via Python, Node.js, WebAssembly, or HTTP.

Python SDK — Pure Python package (briefcase-ai) providing OpenTelemetry-based observability, lakeFS integration, compliance reporting, RAG versioning, external data tracking, and prompt validation. Includes LangChain and LlamaIndex callback handlers plus Chroma, Pinecone, and Weaviate vector store adapters.

Rust Core — High-performance library (briefcase-core) implementing decision snapshot models, replay engine (strict/tolerant/validation-only modes), drift detection (similarity, consensus, outlier), cost tracking, and PII sanitization. Supports SQLite, lakeFS, and in-memory storage backends.

Language Bindings — PyO3 (Python), NAPI-RS (Node.js), and wasm-bindgen (WebAssembly) bindings expose the Rust core to each language ecosystem.

HTTP Server — Actix-web server exposing REST endpoints for decision CRUD, replay execution, batch replay, policy validation, and diffing.