Downloads · 30 days
0
benthomasson/ddia-expert
ddia-expert is a machine learning model from benthomasson. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Expert knowledge base for Designing Data-Intensive Applications reference implementations. Contains 1,405 justified beliefs extracted from working Python implementations of the algorithms and data structures described…
Downloads · 30 days
0
Access
Public
Updated May 31, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md3.3 MB · 80%
From the Hugging Face model README
Expert knowledge base for Designing Data-Intensive Applications reference implementations. Contains 1,405 justified beliefs extracted from working Python implementations of the algorithms and data structures described in Martin Kleppmann's DDIA.
This is an External Epistemic Memory (EEM) — a model-agnostic knowledge base that any LLM can use via the reasons CLI or tool calling. Unlike a LoRA or fine-tune, this knowledge is not baked into model weights. It is external, inspectable, correctable, and works with any model.
| Metric | Value |
|---|---|
| Total beliefs | 1,405 |
| Status | 1,405 IN / 0 OUT |
| Premises (observations) | 1,224 |
| Derived (justified conclusions) | 181 |
| Nogoods (contradictions) | 0 |
| Retraction rate | 0% |
| Max derivation depth | 7 |
| Topic | Beliefs |
|---|---|
| wal | 177 |
| btree | 79 |
| bitcask | 55 |
| lsm | 55 |
| sstable | 49 |
| compaction | 46 |
| range | 42 |
| hash | 40 |
| index | 40 |
| page | 40 |
| event | 36 |
| fsync | 36 |
| scan | 36 |
| recovery | 32 |
| merge | 31 |
| commit | 31 |
| hint | 30 |
reasons init
reasons import-json network.json
reasons search "write-ahead logging"
reasons explain storage-crash-recovery-has-no-safe-path
reasons show raft-partition-creates-dual-hazard
Any LLM agent that can call reasons search, reasons show, and reasons explain can use this knowledge base. The agent does not need to be told it is an expert — the knowledge base speaks for itself.
| Node | Summary |
|---|---|
storage-crash-recovery-has-no-safe-path | No storage engine has a fully safe crash recovery path: compaction lacks atomicity, WAL replay ignores corruption |
end-to-end-correctness-requires-unmet-storage-guarantees | End-to-end distributed correctness is unachievable: protocol-layer weaknesses combine with storage gaps |
raft-partition-creates-dual-hazard | Network partitions create a compound safety hazard in Raft: isolated leader silently accepts writes |
protocol-safety-validated-only-under-synchronous-model | Distributed protocol safety properties are validated exclusively under synchronous simulation |
gossip-failure-detection-governs-cluster-correctness | Gossip-based failure detection is the single correctness bottleneck for the distributed cluster |
hash-index-is-memory-bound-by-design | Hash index storage is fundamentally memory-bound: every key must reside in RAM |
orset-tombstones-grow-monotonically | OR-Set tombstones only grow, creating unbounded memory pressure |
two-wal-designs-in-repo | The repo contains both logical WAL (keyed operations) and physical WAL (raw page images) with different recovery semantics |
derived-system-consistency-requires-flush-and-old-values | Derived systems require flush ordering and old-value capture for consistency |
storage-has-no-self-healing-at-any-layer | Storage engines degrade monotonically during normal operation with no rebalancing or self-repair |
Built from exploration of benthomasson/ddia-implementations — Python reference implementations of algorithms from Designing Data-Intensive Applications by Martin Kleppmann, covering storage engines, replication, partitioning, transactions, consensus, and derived data systems.
| File | Description |
|---|---|
network.json | Full belief network (machine-readable, portable) |
reasons.db | SQLite database (gitignored, regenerate with reasons import-json network.json) |
CLAUDE.md | Agent instructions for using this knowledge base |
mit