Expand description
Engine-level session management โ save, load, resume, clear.
Owns the conversation state that both TUI and headless modes need: messages, token counts, cost.
Structsยง
- Context
Head Persistence - Session-scoped durability barrier state, shared by persistent frontends.
A failed (or dropped in-flight) publication requires explicit reload/new
session before saving or scheduling more inference. Never rollback-save an
old head:
save_durablecan fail after publishing its replacement. - Conversation
State - Conversation state tracked by the engine.