EHDB: The Event Horizon Database

REAL

EHDB is NoETL's own storage engine: an append-only log built for the event log and the command bus. It replaced NATS as the transport between the server and the workers, and it is the substrate the platform is moving its state onto (Chapter 14).

This chapter describes ehdb v0.15.1, the version server v3.161.2 and worker v6.15.0 both pin (their Cargo.lock files name the tag). Code facts are from that tag. Facts about production come only from the dated public record in the ai-meta wiki (the Sessions-Log and Home pages) and its issues, and each carries its date.

Where EHDB sits

StoreRuns inHolds
command busthe cmdbus-writer (worker binary, host mode)every command, per pool and shard (10.3)
event busthe same process, its own engineevery noetl.event on its way to the materializers and the gateway
embedded event-log tierthe serverthe server's own EHDB store, with retention and archive
chain storethe servereach execution's events linked by prev_event_id (13.7)

Sections

The docs and the code disagree in places

Some of ehdb's own documents at v0.15.1 describe an older state than its code. For example, docs/spec/durability-window.md says there is no age-based seal trigger, but crates/ehdb-l0/src/part.rs:530-536 seals on age. This chapter follows the code and says where it does.

EHDB's sibling store

ehgraph, the graph database for topology, shares EHDB's change-log design but none of its code or data. 15.1 sets out which of Postgres, EHDB and ehgraph is authoritative for what.

Check your understanding