Go to file
jordan 9afb36078c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: resolve DNS hostnames in STEMEDB_SEED_NODES for k8s headless service
SocketAddr::parse() doesn't resolve DNS names. Use tokio::net::lookup_host
for k8s pod DNS (stemedb-{0,1,2}.stemedb-headless.stemedb.svc:18182).
2026-03-07 03:14:53 -07:00
.agentive-remediation
.aphoria
.cargo
.claude
.config
ai-lookup
applications fix: restore missing doc comments on aphoria DTOs (build failure) 2026-03-07 02:54:10 -07:00
batteries
cmd
community
crates fix: resolve DNS hostnames in STEMEDB_SEED_NODES for k8s headless service 2026-03-07 03:14:53 -07:00
demo/keys
docs
latent
research-requests
scripts fix: use bash for entrypoint (wait -n requires bash, not sh) 2026-03-07 01:12:31 -07:00
sdk/go
tools/grafana
uat
use-cases
.aphoriaignore
.dockerignore
.env.example
.gitignore
.jscpd.json
.woodpecker.yml
aphoria.toml
architecture.md
Cargo.lock
Cargo.toml
CLAUDE.md
clippy.toml
CONTRIBUTING.md
docker-compose.yml
Dockerfile
future-vision.md
GEMINI.md
Makefile
quickstart.md
README.md
roadmap-archive.md
roadmap.md
rustfmt.toml
scan-results-v1.json
vision.md
what-is-episteme.md

Episteme (StemeDB)

A probabilistic knowledge graph database that stores Claims, not Facts.

Append-only Merkle DAG with read-time resolution via Lenses. Think of it as "Git for Truth" - conflicting assertions coexist, resolved at query time through Consensus, Recency, Authority, or custom Lenses.


Quick Start

# Get running in under 5 minutes
make validate

# Start the server
cargo run --package stemedb-api

# Open API docs
open http://localhost:18180/swagger-ui

→ Full Quick Start Guide


Understanding Episteme

  • What is Episteme? - Concept overview and real-world examples
  • Vision - Product philosophy and "Git for Truth" principles
  • Architecture - Technical design and data structures
  • Use Cases - Consumer health, financial due diligence, AI agents

Documentation


For Developers

Getting Started

Project Management

Architecture Deep Dives


Applications

Episteme powers multiple applications:

  • Aphoria - Code-level truth linter and continuous learning system
  • Admin Dashboard - Web UI for cluster management
  • Disputed - Claim disagreement visualization

For AI Agents


Core Principles

ZERO TOLERANCE FOR MEDIOCRITY: We build enterprise-grade products that must survive in production. Panics are UNACCEPTABLE. Broken pipe errors are UNACCEPTABLE. Sloppy testing is UNACCEPTABLE. Every line of code ships to paying customers who depend on it. Test everything. Handle every error. No shortcuts. No excuses.

Technical Principles

  • Append-Only: NEVER mutate existing Assertions. Create new ones.
  • Content-Addressed: Assertion ID = BLAKE3 hash of content
  • No Unwrap: NEVER use unwrap() or expect() in production code
  • Defensive Writes: All writes go through WAL with fsync
  • Structured Logging: Use tracing (info!, warn!, error!)

→ Full Coding Guidelines


Port Scheme (181XX)

Service Port Env Var
HTTP API 18180 STEMEDB_BIND_ADDR
Cluster Gateway 18181 STEMEDB_NODE_API_ADDR
Cluster RPC 18182 STEMEDB_NODE_RPC_ADDR
SWIM Gossip 18183 via SwimConfig
StemeDB Dashboard 18188 -
Aphoria Dashboard 18189 -

Quick Reference

# Build
cargo build --workspace

# Test
cargo test --workspace --lib      # Unit tests (~3min)
cargo nextest run                 # Parallel runner (~5min)

# Lint (must pass before commit)
cargo clippy --workspace -- -D warnings
cargo fmt --check

# Run server
cargo run --package stemedb-api

# Run cluster node
cargo run --package stemedb-cluster --bin stemedb-node

Community & Support


What Makes Episteme Different?

Traditional databases force you to pick "the right answer." Episteme holds all the answers, tracks who said them and why, and lets you decide how to resolve disagreements at query time.

Traditional DB Episteme
One canonical truth Multiple competing claims
Update overwrites Append-only history
Consensus enforced at write Resolution deferred to read
Time-travel via backups Built-in temporal queries
Source tracking via app logic First-class provenance

When a Reddit community reports gastroparesis months before the FDA adds a warning label, both claims coexist in Episteme. You can query by authority tier (FDA wins), by recency (Reddit was first), or by consensus (see the disagreement).

This is critical for domains where truth is contested, evolving, or depends on perspective: health, finance, research, intelligence.


Getting Help

Question Resource
How do I... Documentation Index
Why did you... Architecture + Vision
Can I use this for... Use Cases
It's not working... GitHub Issues
I want to contribute... Contributing Guide

Get Started →