dejadb-core 1.0.0

Core .mg format, canonical serialization, content addressing, and grain types for DejaDB.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# dejadb-core

Core `.mg` format, canonical serialization, content addressing, and grain types for DejaDB.

`dejadb-core` is the foundation of the DejaDB workspace. It defines the OMS
grain types (Fact, Event, Observation, and the rest), the `.mg` binary format,
and the canonical serialization used to compute each grain's SHA-256 content
address. Canonical serialization is frozen — NFC normalized, sorted compact
keys, defaults omitted — so an identical grain always hashes to the same
address, which is what makes memories immutable and content-addressed. Every
crate above it in the stack (store, CAL, context) builds on these types.

Part of [DejaDB](https://github.com/AreevAI/dejadb) — an embedded memory engine for AI agents. See the [architecture overview](https://github.com/AreevAI/dejadb/blob/main/ARCHITECTURE.md).

Licensed under MIT OR Apache-2.0.