This document explains how the optional TypeScript engine maps onto the protocol-first Deja Vu workflow.
The protocol stays the same whether or not the engine is present.
Protocol behavior:
- read summary memory first
- load only the minimum detailed records needed
Engine-assisted behavior:
- call
recall() - use
summaryIfLoadedas the first prompt injection - load
chunksIfLoadedonly for strong matches or deeper follow-up work
Protocol behavior:
- decide whether new information is durable
- update the canonical memory files
Engine-assisted behavior:
- mirror durable records into engine storage with
addMemory()orupdateMemory() - keep Markdown records as the authoritative human-readable source
Protocol behavior:
- write new summaries or decisions
- mark older records as superseded
Engine-assisted behavior:
- lower retrieval priority or delete obsolete engine-backed detail records if the host chooses
- keep compaction policy in the host workflow, not inside the engine core
- Start with Markdown-only Deja Vu.
- Stabilize the project rules and memory layout.
- Add the optional engine when recall volume or memory depth justifies it.
- Preserve the same workflow and canonical Markdown records.
The engine accelerates Deja Vu. It does not redefine Deja Vu.