JouleDB (v0.9.0 — Pre-1.0 Research Preview)
An experimental energy-metered multi-model database in Rust (Apache-2.0 OR MIT) exploring Copy-on-Write SSI storage, out-of-core .jcol vectorized columnar analytics (43 / 43 Official ClickBench at 100M rows), PostgreSQL pgwire SQL, multi-host WAN TCP Raft ReadIndex consensus, Claude/MCP Apps Studio UI (SEP-1865), 10,240-bit Amorphic VSA storage, and .jsyn sub-1-bit sentence embeddings.
Pre-1.0 Status &
v0.9.0Release Summary (2026-11-26): Building on ourv0.6.0external-audit remediation (v1.0.0GA tag retracted/yanked, unrelated1.11M-LOCjoule-webcrate and syntheticfrontier_exam_routes.rsdeleted, 81 unverified low-BPW causal LLM exports pruned from Hugging Face) andv0.7.0–v0.8.0storage/analytical upgrades,v0.9.0ships native Claude/MCP Apps (SEP-1865), 1.72× faster full-100MClickBench, 3.0× fasterpgwireExtended Pipeline OLTP, and multi-host WAN Raftelleverification:
- Claude Apps & MCP Apps (
SEP-1865Interactive Studio +.mcpbBundles): Built-in JouleDB Studio (ui://jouledb/studio.html,text/html;profile=mcp-app) served directly from thejouledbbinary overjouledb mcp --data <dir>(stdio) andPOST /mcp(50tools incl.db.studio), plus one-click Claude Desktop.mcpb(manifest_version: "0.3") bundles and an Antigravity plugin (deploy/antigravity-plugin/).- Full
99,997,497-Row (14.78 GB) Official ClickBench Accelerated1.72×(4.85× -> 2.82×Geomean vs DuckDB2.0.1,15.48 GBPeakVmHWM): Added zero-I/O segmentglobal_int_summetadata (Q2, Q3, Q29), dynamicAtomicI64Top-K ZoneMap bound pruning (Q19, Q23, Q24, Q26), zero-Arc<str>RawTextSlicetext distinct/grouping (Q5, Q12, Q33, Q34), and 256-partitionCompactI2Rowin-place sort-reduce — cutting100M-groupQ327.24× (17.42 s -> 2.41 s), lowering100MpeakVmHWM5.26 GB (20.74 GB -> 15.48 GB), cutting100Mgeomeanreported_j1.75× (4.25× -> 2.43×), and beating DuckDB2.0.1on8 / 43queries at100Mrows (13 / 43at1M,12 / 43at10M,21 / 43at100k).pgwireExtended Query StaticDescribe&100-Warehouse OLTP (3.01×Faster Pipelined TPS): Added static AST/catalogdescribe_sql_staticOID inference andDROP TABLEindex metadata cleanup — raisingpsycopgExtended Pipeline throughput 3.01× (593.7 -> 1,790.0 TPSatc=8,1,703.3 TPSatc=16;3,351.0 TPSSimple Query atc=16,invariant_verified = trueacross all 5 engine modes vsPostgreSQL 16.16&SQLite 3.53.1).- 5-Node Multi-Host Cross-Machine WAN/Tailscale TCP Raft + Official Clojure
elle 0.2.8({:valid? true}): Executed 5 real OSraft_wan_nodeprocesses across 2 distinct physical Linux hosts (framework-128gb-0000bare-metal +openie-core-1Cloud Debian 12 VM,27.58 msmedian WAN TCP RTT) with cross-WAN2/5leader isolation, real OSSIGKILL(kill -9), andraft.walcrash recovery ->{:valid? true}(270events,:strict-serializable).- Prebuilt Python Wheels & TypeScript Tarball on GitHub Releases: Attached
cp39-abi3.whlwheels (macOS ARM64 & Linuxmanylinux_2_34_x86_64),openie-jouledb-0.9.0.tgz, and.mcpbbundles to GitHub Releasev0.9.0(not yet published to PyPI/npm/NuGet). SeeCHANGELOG.md.
What Is Real & Verified Today (41 Workspace Crates · 735.2k LOC · 12,272 Tests)
- Core Storage, MVCC
SSI& Recovery (joule-db-core,joule-db-local):- Copy-on-Write B-tree pages, lock-free positional
pread/pwrite, Cahill Serializable Snapshot Isolation (SSIrw-antidependency detection), index-assistedMvccTableStoragewithO(1)PK/UNIQUE index checks and group-committed WAL durability,CRC-32torn-WAL truncation,ALP + FSSTcolumnar codecs, andRaBitQ1-bitPOPCNTvector quantization.
- Copy-on-Write B-tree pages, lock-free positional
- Out-of-Core
.jcolColumnar Analytics,pgwire& Incremental Views (joule-db-query,joule-db-server):- PostgreSQL v3 wire listener (
psql,psycopg3Simple & static-DescribeExtended Pipeline modes), row-budgeted streaming ParquetCOPYspilling262,144-row.jcoldisk segments (I8/I16/I32/I64narrowing,global_int_sum+ ZoneMap headers, compactu8/u16/u32local dictionaries, CRC-32 integrity), two-phaseWHERE-firstpreadsegment execution + 256-partitionCompactI2Row/ Radix-64GROUP BY, andDBSPZSet<T>incremental view algebra.
- PostgreSQL v3 wire listener (
- Claude Apps / MCP Apps Host (
mcp_app_ui.rs,mcp_transport.rs):- Native
SEP-1865MCP Apps server overjouledb mcp --data <dir>(stdioJSON-RPC2025-06-18) andPOST /mcp(Streamable HTTP), exposing50tools (db.studio,db.query,db.schema,db.amorphic.*,db.synapse.*,db.branch.*,db.ledger.*) and a zero-CDN interactive JouleDB Studio (ui://jouledb/studio.html,text/html;profile=mcp-app) for Claude Desktop, Claude Web, VS Code, Goose, and Antigravity.
- Native
- 5-Node Multi-Host WAN & Local TCP Raft Consensus (
raft.rs,raft_transport.rs,examples/raft_wan_node.rs):- Quorum write commit via
RaftNode::propose_and_commit(§5.4.2), quorum linearizable reads viaRaftNode::read_linearizable(§6.4ReadIndexheartbeat quorum, zero WAL growth),CRC-32raft.walcrash recovery, and both multi-host Tailscale WAN (27.58 msRTT +SIGKILL) and local 20-link fault-injection suites verified{:valid? true}by official Clojureelle/elle 0.2.8.
- Quorum write commit via
- Energy Telemetry &
.jsynSub-1-Bit Sentence Embeddings (joule-db-energy,joule-db-weights):- Bare-metal hardware counter readers (
reported_jvia Linuxintel-rapland macOSIOKit SMC) segregated from analytical cost models (est_j), plus pure-Rustdcharlot65-openie/all-MiniLM-L6-v2-LittleBit(1.95 MB,0.4378 BPW,0.9441cosine vsFP32).
- Bare-metal hardware counter readers (
Reproducible External Evaluations (bench/)
1. Full Official ClickBench (hits.parquet, 99,997,497 Rows, 105 Columns, 43 Queries) vs. DuckDB 2.0.1
Executed via bench/clickbench_official.py over real pgwire (psycopg 3.3.9) on framework-128gb-0000 (AMD Ryzen AI Max+ 395, 128 GB RAM, Linux rapl-package reported_j):
Official hits.parquet Scale |
Parquet Load (DuckDB vs JouleDB) |
JouleDB Load RSS (VmHWM Peak) |
Queries Succeeded | SQL-Valid Match (Exact) |
Faster (JouleDB / DuckDB) |
Geomean Latency (JouleDB / DuckDB) |
Geomean Energy (reported_j) |
|---|---|---|---|---|---|---|---|
100,000 rows (JSON) |
0.326 s vs 0.409 s |
927 MB (2,719 MB) |
43 / 43 (0 err) |
43 / 43 (35 exact) |
21 / 22 |
1.31× slower (median 1.04×) |
1.65× more J |
1,000,000 rows (JSON) |
0.257 s vs 1.363 s |
1,246 MB (1,959 MB) |
43 / 43 (0 err) |
43 / 43 (29 exact) |
13 / 30 |
2.42× slower (median 3.22×) |
2.34× more J |
10,000,000 rows (JSON) |
1.459 s vs 12.568 s |
2,163 MB (9,060 MB) |
43 / 43 (0 err) |
43 / 43 (29 exact) |
12 / 31 |
2.52× slower (median 3.88×) |
2.47× more J |
99,997,497 rows — FULL 14.78 GB (JSON) |
16.497 s vs 86.068 s |
6,204 MB (15,483 MB) |
43 / 43 (0 err) |
43 / 43 (31 exact) |
8 / 35 |
2.82× slower (median 3.42×) |
2.43× more J |
- Candid Full-
100MSummary: Inv0.9.0, out-of-core.jcolsegment execution (6.20 GBpost-load RSS,15.48 GBkernelVmHWMpeak — down5.26 GBfromv0.8.0) narrows the full100M-row geomean latency gap vs DuckDB2.0.1from4.85×to2.82×(2.43×reported_j), cuts100M-groupQ327.24× (17.42 s -> 2.41 svs DuckDB1.06 s), and beats DuckDB2.0.1on8 / 43queries at100Mrows (Q01.51 msvs9.36 ms,Q21.60 msvs8.93 ms,Q31.84 msvs12.77 ms,Q61.24 msvs7.33 ms,Q1931.32 msvs42.46 ms,Q282,912 msvs3,443 ms,Q292.27 msvs13.68 ms,Q4212.00 msvs23.70 ms). DuckDB2.0.1wins35 / 43queries (2.82×geomean,5.22×faster Parquet load), with JouleDB's widest ratio onCASE WHEN-groupedQ39(519.3 msvs23.2 ms,22.4×).
2. Head-to-Head 100-Warehouse TCP pgwire OLTP vs. PostgreSQL 16.16 & SQLite 3.53.1
Executed via bench/oltp_pgwire.py (oltp_pgwire_100wh.json, rapl-package reported_j): 100,000 accounts (100 warehouses), 50% indexed point read, 30% durable BEGIN; UPDATE accounts ...; INSERT INTO history ...; COMMIT (fsync=on, synchronous_commit=on), 20% warehouse COUNT/SUM across 1, 4, 8, 16 concurrent TCP clients:
Engine & Wire Protocol (invariant_verified = true on all 5) |
c = 1 TPS (p50) |
c = 4 TPS (p50) |
c = 8 TPS (p50) |
c = 16 TPS (p50, mJ/txn) |
Committed Writes |
|---|---|---|---|---|---|
JouleDB 0.9.0 (pgwire Simple Query, 4-RTT + fsync) |
522.2 (0.34 ms) |
954.5 (0.97 ms) |
2,125.1 (1.04 ms) |
3,351.0 (1.07 ms, 24.3 mJ) |
16,647 (0 errors) |
JouleDB 0.9.0 (pgwire Extended Pipeline, 1-RTT + fsync) |
260.0 (0.57 ms) |
871.9 (1.58 ms) |
1,790.0 (2.07 ms) |
1,703.3 (2.09 ms, 75.7 mJ) |
10,973 (1 SI conflict) |
PostgreSQL 16.16 (pgwire Simple Query, 4-RTT + fsync) |
3,505.0 (0.17 ms) |
2,957.2 (0.21 ms) |
6,100.7 (0.12 ms) |
10,815.9 (0.38 ms, 9.13 mJ) |
55,902 (0 conflicts) |
PostgreSQL 16.16 (pgwire Extended Pipeline, 1-RTT + fsync) |
1,291.4 (0.08 ms) |
2,666.5 (0.20 ms) |
5,607.2 (0.30 ms) |
8,634.4 (0.68 ms, 14.7 mJ) |
43,602 (0 conflicts) |
SQLite 3.53.1 (Embedded in-proc C API, WAL, NORMAL) |
33,431.1 (0.006 ms) |
56,406.6 (0.008 ms) |
55,520.2 (0.011 ms) |
60,263.4 (0.012 ms, 2.18 mJ) |
506,957 (no TCP / fsync) |
- Candid OLTP Summary: Static AST/catalog
describe_sql_staticOID inference +DROP TABLEindex metadata cleanup raised JouleDB Extended Querypipeline()throughput 3.01× (593.7 -> 1,790.0 TPSatc=8,1,703.3 TPSatc=16,2.50×more committed writes), while Simple Query reaches3,351.0 TPSatc=16(0errors,invariant_verified = true).PostgreSQL 16.16remains3.23×faster atc=16(10,815.9 TPS) due to shared-buffer page-level locking vs JouleDB's table-widecommit_lock.
3. 5-Node Multi-Host Cross-Machine WAN/Tailscale TCP Raft (ReadIndex) + Official Clojure elle 0.2.8
Executed via bench/raft_multihost_wan.py, examples/raft_wan_node.rs, and bench/elle_check.clj:
- Cross-Machine WAN Topology: 5 real OS
raft_wan_nodeprocesses with durableraft.walacross 2 distinct physical Linux hosts (framework-128gb-0000bare-metaln1..n3+openie-core-1Cloud Debian 12 VMn4..n5) over encrypted Tailscale WAN (27.58 msmedian TCP RTT,p95 28.65 ms). - Nemeses: Cross-WAN
2/5minority split (["n1", "n4"]vs["n2", "n3", "n5"]) isolating initial leadern1-> stale write &ReadIndexread rejected ->3/5majority electsn3(term2,24committed ops) -> real OSSIGKILL(kill -9) on cloud noden5(16ops committed during crash) ->raft.walrestart & 5-node convergence (commit=68, applied=68, x=68, y=39across all 5 nodes). - Official
elle/elle 0.2.8Verdict (raft_wan_multihost_elle_verdict.txt):{:valid? true}(rw-register,:strict-serializable,270WAN events; local 20-linktests/raft_tcp_elle_fault_injection.rsalso{:valid? true}).
4. .jsyn (JSYN-v1) Fidelity vs. Compression Curve
| Model / Layer | BPW |
Shrink vs FP16 |
Measured Fidelity vs Upstream | Guidance |
|---|---|---|---|---|
all-MiniLM-L6-v2-LittleBit (6L Encoder) |
0.438 |
22.2× (1.95 MB) |
0.9441 embedding cosine vs FP32 |
Recommended for semantic search & TriModal RRF |
Gemma-4-E2B q_proj (r = 8..128) |
0.028–0.166 |
564×–96.6× |
0.271–0.455 output cos (KL 3.87–2.72) |
Experimental only — not a drop-in causal LLM (retracted from HF) |
Inkling-2-Mini w13 (128-Exp MoE, r = 8..128) |
0.023–0.134 |
701×–120× |
0.113–0.350 output cos (KL 2.91–2.59) |
Experimental only — not a drop-in causal LLM (retracted from HF) |
Quickstart (v0.9.0)
# 1. Install prebuilt v0.9.0 binary (macOS ARM64/x86_64; Linux x86_64 GLIBC <= 2.35, Ubuntu 22.04/24.04 & Debian 12 ready)
# 2. Launch JouleDB server (HTTP :8080, TCP :8081, PgWire :8082, JWP :8083, FlightSQL :8084, MCP HTTP /mcp)
# 3. Or run as a Claude Desktop / MCP Apps stdio server (50 tools + interactive ui://jouledb/studio.html)
# 4. Connect with psql, install GitHub Release Python/TS SDK artifacts, or run smoke/security self-tests
&&
Honest Engineering Boundaries (Read Before Adopting)
- Pre-1.0 research preview (
v0.9.0), not a battle-tested production RDBMS: While JouleDB0.9.0executes all43 / 43Official ClickBench queries on99,997,497rows (2.82×geomean vs DuckDB2.0.1,15.48 GBpeakVmHWM),3,351 TPSSimple /1,790 TPSPipelinedpgwireOLTP, and 5-node cross-machine WAN Raft (elle{:valid? true}), mature specialized engines (PostgreSQL 16at10.8k TPSc=16,DuckDB 2.0at2.82×faster100Mgeomean,SQLiteembedded WAL) remain faster for conventional single-model production workloads. - No external compliance certifications:
jouledb trustexercises technical security primitives in code (external_audit_performed = false). No third-party SOC 2, ISO 27001, HIPAA, PCI-DSS, NIST CMVP, or FedRAMP audit has been conducted. - Exact compiler safety lint scope:
#![deny(unsafe_code)]is set injoule-db-corewith 1#![allow(unsafe_code)]module (crates/joule-db-core/src/storage/mmap_extent.rs).#![cfg_attr(not(test), deny(clippy::unwrap_used))]is enforced in 7 core crates (joule-db-core,joule-db-branch,joule-db-ledger,joule-db-local,joule-db-energy,joule-db-weights,joule-db-query, plus#![deny(clippy::unwrap_used)]ondisk_col_segments.rsandmcp_app_ui.rs); the workspace-wide lint level iswarn. - SDK registry status: Prebuilt
cp39-abi3Python.whlwheels, TypeScriptopenie-jouledb-0.9.0.tgz, and Claude.mcpbbundles are published on GitHub Releases (v0.9.0); packages are not yet published to PyPI, npm, NuGet, or Maven Central.
Documentation & Links
- Website: https://jouledb.org (Claude & MCP Apps · Benchmarks · Honest Boundaries · Security Controls & Bridges ·
.jsynFidelity) - Online Book (
mdBook): https://openie-dev.github.io/jouledb (Claude & MCP Apps Guide) - Verified
.jsynSentence Embedder & Benchmark Dataset: https://huggingface.co/dcharlot65-openie - Architecture Whitepaper (
v0.9.0):docs/WHITEPAPER-JOULEDB-2026-11.md .jsynBinary Specification:docs/JSYN-LIVING-WEIGHTS-SPEC.md- Benchmark Scripts & Raw JSON/EDN Outputs:
bench/
License
Copyright (c) 2026 Open Interface Engineering, Inc. Dual-licensed under either Apache License, Version 2.0 or MIT License, at your option.