Expand description
Embedded edition composition root (ADR-013): wires the application services over the redb store with synchronous in-process projection, and resolves the data directory per the ADR-012 contract. No transport, no infrastructure clients.
Structs§
- Embedded
Kernel - One opened embedded kernel: the composed service plus the store handle for operational tooling (replay, stats, compaction).
Enums§
- Resolved
Data Dir - Where the data directory came from — logged at startup so the winning resolution rule is always visible.
Constants§
- DATA_
DIR_ ENV - Explicit data directory override (ADR-012 rule 1).
- SUPPORTED_
FORMAT_ VERSION - Store format version this binary reads and writes.
Functions§
- resolve_
data_ dir - ADR-012 resolution: env override > project
.kernel/> per-user default. Pure function for testability;resolve_data_dir_from_envfeeds it from the process environment. - resolve_
data_ dir_ from_ env - Resolves from the process environment and prepares the directory: creates
it and, for project-scoped dirs, drops a self-ignoring
.gitignoreso local memory never enters version control by accident.
Type Aliases§
- Embedded
Memory Service - The KMP memory facade composed over the embedded store: every port is the
same single-file redb store, and ingest projects synchronously in-process,
which is what makes
read_after_write_readyunconditionally true.