Skip to content

Comments

feat(memory): P2 memory improvements — autosave, snapshot, response cache#755

Merged
bug-ops merged 4 commits intomainfrom
epic/memory-p2
Feb 23, 2026
Merged

feat(memory): P2 memory improvements — autosave, snapshot, response cache#755
bug-ops merged 4 commits intomainfrom
epic/memory-p2

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 22, 2026

Summary

Implements P2 improvements from epic #740:

Security

  • Per-chunk scrub_content() redaction in streaming path (SEC-04)
  • Blake3 hash with length-prefix encoding to prevent boundary ambiguity (SEC-02)
  • TTL overflow capped at 1 year via saturating_add (SEC-03)
  • Export warning when redact_credentials is enabled (SEC-05)
  • Snapshot version check on import (SEC-06)

Test plan

  • 2505 tests pass, 9 skipped
  • Autosave: save_only branch, min-length boundary, role filtering
  • Snapshot: round-trip, empty DB, corrupt JSON, partial overlap, version mismatch
  • Cache: hit/miss, TTL expiry, cleanup, streaming bypass, length-prefix hash
  • cargo clippy --workspace -- -D warnings clean
  • cargo +nightly fmt --check clean

Closes #748, closes #749, closes #750
Part of #740

…ache

Add autosave assistant responses to semantic memory with configurable
min-length threshold (#748). Implement memory snapshot export/import
via CLI subcommand with version check and duplicate resolution (#749).
Add SQLite-backed LLM response cache with blake3 hashing, TTL expiry,
and background cleanup (#750). Include per-chunk streaming redaction,
length-prefix hash encoding, and comprehensive test coverage.
@github-actions github-actions bot added documentation Improvements or additions to documentation memory Persistence and memory rust core dependencies enhancement New feature or request size/XL labels Feb 22, 2026
@bug-ops bug-ops linked an issue Feb 22, 2026 that may be closed by this pull request
10 tasks
Add autosave assistant, memory snapshot export/import, and LLM
response cache to mdbook docs, CLI reference, configuration
reference, and crate READMEs.
@github-actions github-actions bot added the llm LLM provider related label Feb 22, 2026
Add streaming redaction content test, autosave min_length boundary
tests, cache write end-to-end test, and fix import skipped counter
for existing conversations.
@bug-ops bug-ops enabled auto-merge (squash) February 23, 2026 00:09
Add commented examples for vector_backend, token_safety_margin,
redact_credentials, autosave, response_cache, temporal_decay, MMR,
and skill prompt_mode.
@bug-ops bug-ops merged commit c2ed922 into main Feb 23, 2026
23 checks passed
@bug-ops bug-ops deleted the epic/memory-p2 branch February 23, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config core dependencies documentation Improvements or additions to documentation enhancement New feature or request llm LLM provider related memory Persistence and memory rust size/XL

Projects

None yet

1 participant