jouledb 0.10.0

Energy-metered multi-model Rust database (0.10.0 pre-1.0 preview) — 29-crate panic-linted core/server, out-of-core .jcol analytics (100M ClickBench + 22-query TPC-H), binary JMVR SSI MVCC, pipelined pgwire, Claude/MCP Apps Studio, and RAPL receipts. `cargo binstall jouledb` fetches the binary.
jouledb-0.10.0 is not a library.

JouleDB (v0.10.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 + 22 / 22 Official TPC-H at SF=0.1), 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.

Release Quality Docs crates.io Hugging Face Embedder Website

Pre-1.0 Status & v0.10.0 Release Summary (2026-11-26): Building on our v0.6.0 external-audit remediation (v1.0.0 GA tag retracted/yanked, unrelated 1.11M-LOC joule-web crate and synthetic frontier_exam_routes.rs deleted, 81 unverified low-BPW causal LLM exports pruned from Hugging Face) and v0.7.0–v0.9.0 engine upgrades, v0.10.0 expands deny(clippy::unwrap_used) across 29 / 41 workspace crates (70.7%, including all of joule-db-server & jouledb-cli), narrows full-100M ClickBench to 2.11× geomean vs DuckDB 2.0.1 (2.03× reported_j), adds the Official 22-Query TPC-H Suite (22 / 22 exact at SF=0.1, 13 / 22 at SF=1.0), and brings pgwire Extended Pipeline to parity with Simple Query (JMVR\x01 binary MVCC codec + AST cache):

  • 29 / 41 Workspace Crates (70.7%) Enforcing deny(clippy::unwrap_used) — Including joule-db-server & jouledb-cli: Expanded non-test .unwrap() compiler denial from 7 crates in v0.9.0 to 29 / 41 crates (joule-db-server lib + bin, jouledb-cli, joule-db-core, joule-db-query, joule-db-local, joule-db-amorphic, joule-db-hdc, joule-db-viz, joule-db-branch, joule-db-ledger, joule-db-energy, joule-db-weights, and 17 domain/transport crates) with a blocking CI gate.
  • Full 99,997,497-Row (14.78 GB) Official ClickBench Narrowed to 2.11× Geomean vs DuckDB 2.0.1 (2.03× reported_j, 5.90 GB Load RSS): Bitpacked WordMask selection vectors, filtered MIN/MAX fast paths (Q7: 10.71× -> 1.04×), 90-sum SIMD slice batching (Q30: 14.26× -> 2.85×), dictionary LIKE bitsets (Q20: 6.75× -> 3.54×), and streaming 10M .jcol segment memory reduction (10M VmHWM cut 2.63× from 9,060 MB -> 3,448 MB).
  • Official 22-Query TPC-H Multi-Table Relational Suite (bench/tpch_official.py): Hash semi/anti-joins (EXISTS / NOT EXISTS), correlated scalar GROUP BY decorrelation, OR-conjunct factoring (Q19), and col_cache scan pushdown verify 22 / 22 (100%) official tpch_queries() exact at SF = 0.1 (866,602 rows) and 13 / 22 exact at SF = 1.0 (8,661,245 rows, 9.82 s Parquet load), with 8 25 s timeouts and 1 36 GB RSS cap trip candidly documented.
  • pgwire Extended Pipeline Parity + Binary JMVR\x01 MVCC Codec (oltp_pgwire_100wh.json): Cached Describe rows, direct portal.params binding, thread-local SQL AST cache, and binary JMVR\x01 MvccRecord serialization eliminate the 1.97× Extended Pipeline penalty (1,375.7 TPS Pipelined vs 1,351.6 TPS Simple at c=16, 1,440.0 TPS Simple at c=4 under shared CI load; 3,351.0 TPS uncontended, invariant_verified = true across all 5 runs).
  • Claude/MCP Apps (SEP-1865), 5-Node Multi-Host WAN Raft (elle {:valid? true}), & Release SDK Bundles: Built-in JouleDB Studio (ui://jouledb/studio.html, 50 tools), .mcpb (manifest_version: "0.3") bundles, cp39-abi3 .whl wheels, and openie-jouledb-0.10.0.tgz on GitHub Release v0.10.0. See CHANGELOG.md.

What Is Real & Verified Today (41 Workspace Crates · 737.3k LOC · 12,269 Tests)

  1. Core Storage, Binary JMVR MVCC SSI & Recovery (joule-db-core, joule-db-local):
    • Copy-on-Write B-tree pages, lock-free positional pread/pwrite, Cahill Serializable Snapshot Isolation (SSI rw-antidependency detection), index-assisted MvccTableStorage with binary JMVR\x01 WAL/MVCC serialization, O(1) PK/UNIQUE index checks and group-committed WAL durability, CRC-32 torn-WAL truncation, ALP + FSST columnar codecs, and RaBitQ 1-bit POPCNT vector quantization.
  2. Out-of-Core .jcol Columnar Analytics, Multi-Table TPC-H Joins & pgwire (joule-db-query, joule-db-server):
    • PostgreSQL v3 wire listener (psql, psycopg3 Simple & cached-Describe Extended Pipeline with thread-local AST cache), row-budgeted streaming Parquet COPY spilling 262,144-row .jcol disk segments, vectorized execute_segmented (WordMask bitsets, global_int_sum, ZoneMap pruning, 256-partition CompactI2Row / hash-reduce), decorrelated EXISTS/NOT EXISTS/IN hash joins (22 / 22 TPC-H at SF=0.1), and DBSP ZSet<T> incremental views.
  3. Claude Apps / MCP Apps Host (mcp_app_ui.rs, mcp_transport.rs):
    • Native SEP-1865 MCP Apps server over jouledb mcp --data <dir> (stdio JSON-RPC 2025-06-18) and POST /mcp (Streamable HTTP), exposing 50 tools (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.
  4. 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 via RaftNode::read_linearizable (§6.4 ReadIndex heartbeat quorum, zero WAL growth), CRC-32 raft.wal crash recovery, and both multi-host Tailscale WAN (27.58 ms RTT + SIGKILL) and local 20-link fault-injection suites verified {:valid? true} by official Clojure elle/elle 0.2.8.
  5. Energy Telemetry & .jsyn Sub-1-Bit Sentence Embeddings (joule-db-energy, joule-db-weights):
    • Bare-metal hardware counter readers (reported_j via Linux intel-rapl and macOS IOKit SMC) segregated from analytical cost models (est_j), plus pure-Rust dcharlot65-openie/all-MiniLM-L6-v2-LittleBit (1.95 MB, 0.4378 BPW, 0.9441 cosine vs FP32).

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.179 s vs 0.265 s 918 MB (2,652 MB) 43 / 43 (0 err) 43 / 43 (34 exact) 20 / 23 1.47× slower (median 1.19×) 1.97× more J
1,000,000 rows (JSON) 0.158 s vs 0.871 s 1,283 MB (1,923 MB) 43 / 43 (0 err) 43 / 43 (29 exact) 11 / 32 2.34× slower (median 2.95×) 2.50× more J
10,000,000 rows (JSON) 2.422 s vs 13.340 s 2,385 MB (3,448 MB) 43 / 43 (0 err) 43 / 43 (31 exact) 9 / 34 2.28× slower (median 2.63×) 2.22× more J
99,997,497 rows — FULL 14.78 GB (JSON) 13.866 s vs 97.835 s 5,902 MB (16,470 MB) 43 / 43 (0 err) 43 / 43 (32 exact) 7 / 36 2.11× slower (median 3.39×) 2.03× more J
  • Candid Full-100M Summary: In v0.10.0, vectorized .jcol execution v2 (5.90 GB post-load RSS; 10M peak VmHWM cut 2.63× to 3.45 GB) narrows the full 100M-row geomean latency gap vs DuckDB 2.0.1 from 4.85× (v0.8.0) -> 2.82× (v0.9.0) -> 2.11× (2.03× reported_j), beating DuckDB 2.0.1 on 7 / 43 queries at 100M rows (Q0 1.91 ms vs 5.67 ms, Q1 20.23 ms vs 41.65 ms, Q2 2.41 ms vs 61.55 ms [25.5×], Q3 2.32 ms vs 51.82 ms [22.4×], Q6 1.58 ms vs 22.07 ms [14.0×], Q29 2.40 ms vs 56.20 ms [23.4×], Q42 22.78 ms vs 34.83 ms) and sharply narrowing former tail bottlenecks (Q7 10.71× -> 1.04×, Q30 14.26× -> 2.85×, Q20 6.75× -> 3.54×, Q15 11.40× -> 4.82×, widest gap Q39 22.36× -> 14.84×). DuckDB 2.0.1 wins 36 / 43 queries (2.11× geomean, 7.06× faster Parquet load).

2. Official 22-Query TPC-H Relational Suite (tpch_queries(), 8 Tables) vs. DuckDB 2.0.1

Executed via bench/tpch_official.py over real TCP pgwire (psycopg 3.3.9, Linux rapl-package reported_j) across all 22 official TPC-H SQL queries (Q01..Q22):

Official TPC-H Scale 8-Table Parquet Load (DuckDB vs JouleDB) Exact Verified Matches Representative JouleDB 0.10.0 Query Latencies Candid Multi-Join Status vs. DuckDB 2.0.1
SF = 0.1 (866,602 rows) (JSON) 0.423 s (49.2 J) vs 4.138 s (533.4 J) 22 / 22 (100%, 0 err) Q06: 5.00 ms, Q15: 5.65 ms, Q01: 62.57 ms, Q10: 144.6 ms, Q14: 219.6 ms, Q13: 245.7 ms, Q22: 258.2 ms All 22 queries exact (3 / 22 faster at SF=0.01); DuckDB 125.5× faster geomean at SF=0.1
SF = 1.0 (8,661,245 rows) (JSON) 2.076 s (277.1 J) vs 9.816 s (1,202.3 J) 13 / 22 exact (9 capped) Q15: 70.83 ms, Q01: 84.18 ms, Q06: 336.8 ms, Q14: 2,406 ms, Q20: 2,797 ms, Q03: 2,872 ms, Q19: 3,394 ms 112.8× geomean on 13 completed; 8 hit 25 s wall cap (Q04,Q07-09,Q12,Q17-18,Q21) & 1 hit 36 GB RSS guard (Q05) on Vec<Value> joins

3. 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, measured back-to-back under shared host CI load idle_watts = 145.1 W): 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.10.0 (pgwire Simple Query, 4-RTT + fsync) 721.6 (1.21 ms) 1,440.0 (1.68 ms) 1,358.4 (2.12 ms) 1,351.6 (2.75 ms, 101.6 mJ) 11,537 (0 errors)
JouleDB 0.10.0 (pgwire Extended Pipeline, 1-RTT + fsync) 381.9 (2.26 ms) 1,105.9 (2.42 ms) 1,370.5 (2.66 ms) 1,375.7 (2.91 ms, 99.5 mJ) 10,044 (1 SI conflict)
PostgreSQL 16.16 (pgwire Simple Query, 4-RTT + fsync) 836.7 (1.07 ms) 2,132.2 (1.38 ms) 4,073.9 (1.07 ms) 5,744.9 (1.05 ms, 22.8 mJ) 30,605 (0 conflicts)
PostgreSQL 16.16 (pgwire Extended Pipeline, 1-RTT + fsync) 896.6 (0.61 ms) 2,030.0 (1.12 ms) 3,404.6 (1.44 ms) 4,720.5 (1.91 ms, 27.4 mJ) 26,462 (0 conflicts)
SQLite 3.53.1 (Embedded in-proc C API, WAL, NORMAL) 19,826.0 (0.008 ms) 33,279.6 (0.011 ms) 34,769.4 (0.015 ms) 36,085.1 (0.018 ms, 3.49 mJ) 303,731 (no TCP / fsync)
  • Candid OLTP Summary: Cached Describe rows, direct portal.params binding, thread-local SQL AST caching, and binary JMVR\x01 MvccRecord serialization eliminated the 1.97× Extended Pipeline penalty from v0.9.0 (1,375.7 TPS Pipelined vs 1,351.6 TPS Simple at c=16, and within 1.16× of PostgreSQL 16.16 at c=1; on an uncontended host in v0.9.0, Simple reached 3,351.0 TPS). PostgreSQL 16.16 remains 4.18× faster at c=16 (5,744.9 TPS) via shared-buffer page locking vs JouleDB's table-wide commit_lock.

4. 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 & Nemeses: 5 real OS raft_wan_node processes with durable raft.wal across 2 distinct physical Linux hosts (framework-128gb-0000 bare-metal + openie-core-1 Cloud Debian 12 VM, 27.58 ms median Tailscale WAN TCP RTT), cross-WAN 2/5 minority split isolating n1, 3/5 majority election (n3), real OS SIGKILL (kill -9) on n5, and raft.wal convergence (commit=68, applied=68, x=68, y=39) -> {:valid? true} (270 WAN events, :strict-serializable).

5. .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.10.0)

# 1. Install prebuilt v0.10.0 binary (macOS ARM64/x86_64; Linux x86_64 GLIBC <= 2.35, Ubuntu 22.04/24.04 & Debian 12 ready)
cargo binstall jouledb

# 2. Launch JouleDB server (HTTP :8080, TCP :8081, PgWire :8082, JWP :8083, FlightSQL :8084, MCP HTTP /mcp)
jouledb --port 8080 --data ./joule-data

# 3. Or run as a Claude Desktop / MCP Apps stdio server (50 tools + interactive ui://jouledb/studio.html)
jouledb mcp --data ./joule-data

# 4. Connect with psql, install GitHub Release Python/TS SDK artifacts, or run smoke/security self-tests
psql -h 127.0.0.1 -p 8082 -U postgres -c "SELECT version();"
jouledb self-check && jouledb trust

Honest Engineering Boundaries (Read Before Adopting)

  • Pre-1.0 research preview (v0.10.0), not a battle-tested production RDBMS: While JouleDB 0.10.0 executes 43 / 43 Official ClickBench on 99,997,497 rows (2.11× geomean vs DuckDB 2.0.1), 22 / 22 Official TPC-H at SF=0.1 (13 / 22 at SF=1.0), pgwire OLTP with invariant_verified = true, and 5-node cross-machine WAN Raft (elle {:valid? true}), mature specialized engines (DuckDB 2.0 on multi-join TPC-H & 2.11× faster 100M ClickBench; PostgreSQL 16 at c=16 OLTP; SQLite embedded WAL) remain faster for conventional single-model production workloads.
  • No external compliance certifications: jouledb trust exercises 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 in joule-db-core with 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 29 / 41 workspace crates (70.7%), including all of joule-db-server (lib + bin) and jouledb-cli; the remaining 12 / 41 crates inherit workspace warn.
  • SDK registry status: Prebuilt cp39-abi3 Python .whl wheels, TypeScript openie-jouledb-0.10.0.tgz, and Claude .mcpb bundles are published on GitHub Releases (v0.10.0); packages are not yet published to PyPI, npm, NuGet, or Maven Central.

Documentation & Links

License

Copyright (c) 2026 Open Interface Engineering, Inc. Dual-licensed under either Apache License, Version 2.0 or MIT License, at your option.