Skip to content

fix(memory): make decay sweeps atomic - #7152

Merged
houko merged 7 commits into
mainfrom
fix/memory-decay-contract
Aug 14, 2026
Merged

houko merged 7 commits into
mainfrom
fix/memory-decay-contract

Conversation

@houko

@houko houko commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • commit SESSION and AGENT memory decay updates in one transaction
  • count and warn about active rows whose access timestamps SQLite cannot parse
  • document and test that zero TTL disables expiry for an individual scope

Verification

  • CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=/tmp/librefang-memory-decay-target cargo test -p librefang-memory decay
  • CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=/tmp/librefang-memory-decay-target cargo clippy -p librefang-memory -p librefang-types --all-targets -- -D warnings
  • CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=/tmp/librefang-memory-decay-target cargo check --workspace --lib
  • cargo fmt --all -- --check
  • git diff --check

Out of scope

  • automatically rewriting or deleting rows with malformed historical timestamps
  • changing the configured decay schedule
  • retention pruning policy changes

@github-actions github-actions Bot added the size/M 50-249 lines changed label Aug 13, 2026
@houko
houko enabled auto-merge (squash) August 14, 2026 07:24
@houko
houko merged commit 89d9376 into main Aug 14, 2026
35 checks passed
@houko
houko deleted the fix/memory-decay-contract branch August 14, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M 50-249 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant