feat(memory): Acon guidelines provider, session digest, crossover context strategy#2309
Merged
feat(memory): Acon guidelines provider, session digest, crossover context strategy#2309
Conversation
…text strategy (#2201, #2289, #2288) Add three memory enhancements to zeph-memory and zeph-core: - guidelines_provider field in CompressionGuidelinesConfig wires the ACON guidelines updater to a named [[llm.providers]] entry; falls back to primary when empty (#2201) - Session digest: SQLite migration 046 adds session_digest table (one row per conversation, upsert via ON CONFLICT DO UPDATE); LLM-based distillation runs at session shutdown and persists key facts + outcomes; digest is injected at context assembly as a fixed top-of-context block before per-turn memory slots; redact_sensitive() applied before storage; config via [memory.digest] block (enabled, provider, max_tokens, max_input_messages); TUI spinner shown during generation (#2289) - Crossover context strategy: ContextStrategy enum (full_history | memory_first | adaptive) added to MemoryConfig; allocate_with_opts() deducts digest tokens before percentage splits; memory_first mode drains conversation history first then inserts memory messages; adaptive switches at crossover_turn_threshold turns (default 20); config via context_strategy and crossover_turn_threshold fields in [memory] (#2288) Closes #2201, #2289, #2288
This was
linked to
issues
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
guidelines_providerfield in[memory.compression_guidelines]wires the ACON compression-guidelines updater to a named[[llm.providers]]entry; falls back to primary when emptysession_digestSQLite table (migration 046); injected as a fixed top-of-context block at next session start;redact_sensitive()applied before storage; controlled via[memory.digest]config block; TUI spinner shown during generationContextStrategyenum (full_history|memory_first|adaptive) in[memory];memory_firstdrains conversation history before inserting memory messages;adaptiveswitches atcrossover_turn_thresholdturns; digest budget deducted before percentage splitsTest plan
cargo +nightly fmt --checkpassescargo clippy --workspace --features full -- -D warningspassescargo nextest run --workspace --features full --lib --bins— 6853 passed, 22 skippedON CONFLICT DO UPDATE(not INSERT OR REPLACE) — row ID stable across upsertsMemoryFirstdrain runs before memory message insertion inassembly.rsredact_sensitive()called on digest before SQLite bind insession_digest.rsCloses #2201, #2289, #2288