Expand description
Structured replacement for the old Markdown-backed native memory store. All existing entry points share root/store.sqlite3 with the Context Lens. MEMORY.md paths are legacy anchors, NOT an alternative source of truth. Capture is candidate-only. Human review is through authenticated Lens routes.
Structs§
Enums§
Functions§
- native_
prompt_ block - Compose the user-memory prompt block for the native store resolved from a
memory path. Single seam used by the engine, the TUI system-prompt
builder, and the context report so all three describe the same bytes.
Returns
Nonewhen memory is disabled, the path is not a nativememory/global/MEMORY.mdlayout, or there is nothing worth injecting. The block is acodewhale.memory.context.v1envelope: memory entries are untrusted evidence, never instructions. - native_
prompt_ block_ traced - The engine’s session-boundary variant: identical bytes plus a durable
preparedcontext receipt under the session’s trace, so the Context Lens can show what was assembled for it. Diagnostics and previews keep usingnative_prompt_block— a receipt is only meaningful when it names a real session. The receipt never gates the packet.