Aletheia

Aletheia (Ἀλήθεια, Greek goddess of truth and a-letheia — “un-forgetting / unconcealment”) is a provenance-bound incremental epistemic knowledge compiler and submodular context runtime for AI agents.

extends llm-wiki compares llm-wiki-vs-rag

Summary

  • EXTRACTED: Aletheia compiles plain Markdown sources into a content-addressed Intermediate Representation (PageIR, SectionSpan, ClaimRecord, TypedEdge) stored in Normalized Compact Catalog v3 (wiki/catalog.json).
  • EXTRACTED: Unlike prompt-only LLM Wiki templates or chunk-based RAG pipelines, Aletheia computes Tarjan SCC-safe Merkle dependency digests (merkle_sha256), audits cross-page epistemic contradictions and supersession chains, and optimizes retrieval budgets via monotone submodular marginal gain.
  • EXTRACTED: Aletheia exposes a zero-dependency JSON-RPC 2.0 Stdio MCP server (aletheia mcp), a unified CLI (aletheia), an Obsidian-compatible local vault layer, and a Quartz static publishing pipeline.

Core Subsystems

  1. Incremental Merkle Compiler — incremental-merkle-compilation (src/aletheia/compiler.py)
  2. Epistemic Verifier & Belief Lifecycle Engine — epistemic-contradiction-and-drift (src/aletheia/verifier.py)
  3. Submodular Budgeted Context Packager — submodular-context-packaging (src/aletheia/packager.py)
  4. Protocol-Native MCP & Dual-Stack Publishing — aletheia-architecture (src/aletheia/mcp_server.py, site/)