Cairnmind Documentation
Every guide below is compiled straight from the repository’s canonical Markdown files at build time, with internal cross-references preserved and searchable via Ctrl K.
Getting Started
Installing Cairnmind
Step-by-step installation for Linux, WSL2, macOS Apple silicon, native Windows PowerShell, Docker, and optional Ollama models.
How Cairnmind Is Built
System architecture: ArcadeDB storage, Hybrid RAG + GraphRAG, Tree-sitter + SCIP code graph, local models, and repository layout.
Upgrading Cairnmind
Step-by-step release upgrade guide for Cairnmind: logical backups, schema safety snapshots, native Windows transitions, and legacy DevBrain migrations.
Core Workflows
Workflow, Plans, Checks & CI Scan
Versioned plans, named check profiles, code fingerprints, evidence states, brief, impact, symbol-anchored evidence, and serverless CI scan.
Terminal Workspace & Inspector
Using the multi-pane tmux + Textual cockpit on POSIX, the standalone Windows workspace, memory inspector, and keyboard shortcuts.
API, Models & Connections
Local knowledge service HTTP API, Ollama and OpenAI-compatible model profiles, Copilot SDK connections, sensitivity classes, and third-party MCP tools.
Memory & Security
Portable & Team Memory
Portable project snapshots (.memory/cairnmind/), Git-tracked published team memory, secrets gating, and import workflows.
Memory & Security Contracts
Formal rules for human confirmation, portable memory format v1, published memory format v1, sensitivity classes, and the secrets gate.
Clients & Workspaces
Operations & Deployment
Storage, Backups & Maintenance
Data directory layout, checksummed logical backups, staged restore, single-writer store locks, pruning, and maintenance.
Deployment, Docker & Kubernetes
Running ArcadeDB in containers, connect-only installations, two-machine remote database trials, and Kubernetes manifests.
Release Gate & Qualification
Cairnmind release gate: three green main runs, adversarial core attack rounds, 10-tester major gate, and 7-day RC freeze.
Contracts & Evaluations
1.0.0 Stable Contract
What Cairnmind guarantees not to break across 1.x releases: CLI --json, MCP tools, persistent formats, safety invariants, and preview boundaries.
Implementation Contracts & Limits
Architecture taxonomy, resume packet schema v2, guarantees vs. non-guarantees, known limits, and out-of-process extension surfaces.
ArcadeDB Storage Contracts
Formal ArcadeDB 26.11.1 storage contract: schema ownership, named-parameter HTTP DAL transactions, graph identity, and single-writer enforcement.
Workflow & Launcher Contracts
Session launcher protocol, read-before-write ACK rules, task verification gates, external degraded MCP sessions, and structured tool schemas.
Explicit Evaluations
Six real-model evaluation harnesses: golden recall, portable memory, conversation extraction, repository Q&A, prompt injection, and answer replay.
Measured Evaluation Results
Full repository evaluation logs, Ollama native vs. /v1 path comparisons, absent-question refusal series, and prompt-injection measurements.
Changelog
Complete Cairnmind release history: breaking changes, contract additions, evaluation milestones, and platform fixes across every published version.