Bicameral MCP — Architecture Deep Dive
A provenance-aware decision layer for your codebase
The Problem
Every team makes decisions in meetings, PRDs, Slack threads. The disconnect creates five SDLC friction points:
Core value: drift detection — knowing a 3-week-old decision is now inconsistent with what shipped.
Three Use Cases — Shipped Today
Auto-Grounding
Design Principle
A deterministic core that any model can reason over. Confidence-scored edges bridge natural language decisions to code, turning probabilistic grounding into auditable, version-controlled knowledge.
The Challenge
Everyone holds a piece of the truth. Drift is invisible until it's expensive.
The Solution
CocoIndex Materialization
Two fundamentally different data sources — an append-only decision log and a branching git DAG — are incrementally ingested by CocoIndex and materialized into a unified SurrealDB decision graph.
| CocoIndex Property | How It Applies |
|---|---|
| Fingerprint-based change detection | Decision log: replay only after watermark offset. Code: re-index only changed files by mtime |
| Multi-source composition | Two flows with different update cadences (append-only vs DAG) → unified decision graph |
| Content-addressed identity | Code regions identified by SHA-256 hash — immune to rename, reformat, rebase |
| Behavior versioning | Grounding algorithm improves? Bump version → force re-materialization |
On startup / after git pull: read watermark → glob new events + changed files → incrementally replay into ledger — idempotent & incremental
Complete Architecture
Bicameral is the companion for building quality software in the age of AI.
Preparing for a new paradigm of software development.