TruthKeeper Documentation
TruthKeeper is a curated memory architecture for LLMs with dependency-aware truth maintenance. It tracks claims with justification chains, detects when knowledge becomes stale, and maintains full audit trails for compliance.
Quick Start
Get up and running in 5 minutes
Core Concepts
Understand claims, dependencies, and verification
API Reference
Complete REST API documentation
Integration Guide
Connect TruthKeeper to your AI workflow
What is TruthKeeper?
TruthKeeper treats LLM memory as a living system that requires continuous maintenance. Unlike traditional RAG systems that retrieve information without staleness awareness, TruthKeeper:
- Tracks claims with states: SUPPORTED, OUTDATED, CONTESTED, HYPOTHESIS
- Monitors dependencies between claims and external sources
- Propagates changes when sources are modified
- Verifies claims using multiple strategies (NLI, AST analysis, corroboration)
- Escalates to humans when blast radius exceeds thresholds
Key Concepts
Claims
A claim is an atomic fact stored in TruthKeeper. Each claim has:
content: The factual assertionstate: Current verification stateconfidence: Score from 0.0 to 1.0evidence: Links to supporting sourcesdependencies: Other claims or sources this depends on
Dependencies
Dependencies create a graph of relationships. When a source changes, TruthKeeper traverses this graph to identify all affected claims. Three types:
- HARD: Claim is invalid if source changes
- SOFT: Claim may need review if source changes
- DERIVED: Claim was computed from source
Verification
Claims are verified using pluggable strategies:
- MiniCheck: Natural language inference for fact-checking
- AST Verifier: Code-aware verification using abstract syntax trees
- Multi-Source: Corroboration across multiple sources
Architecture Overview
┌──────────────────────────────────────────────────────────────────┐
│ AI Coding Agent │
│ (Claude Code, Cursor, etc.) │
└──────────────────────────────────────────────────────────────────┘
│
▼
┌──────────────────────────────────────────────────────────────────┐
│ TruthKeeper Core │
├──────────────────────────────────────────────────────────────────┤
│ • Claim State Machine • Dependency Graph • Blast Radius │
│ • Cascade Engine • Bi-temporal Store • Human Review │
└──────────────────────────────────────────────────────────────────┘
│
┌───────────────┴───────────────┐
▼ ▼
┌───────────────────────────┐ ┌───────────────────────────────────┐
│ PostgreSQL + pgvector │ │ SQLite (Offline) │
│ (Production) │ │ (Local Development) │
└───────────────────────────┘ └───────────────────────────────────┘Getting Started
Ready to try TruthKeeper? Head to the Quick Start guide to get up and running.