Skip to content

Forget unpinned memories on a Shanghai nightly and Monday sweep - #1

Merged
meliwanx merged 1 commit into
mainfrom
feat/memory-nightly-pin
Oct 8, 2026
Merged

meliwanx merged 1 commit into
mainfrom
feat/memory-nightly-pin

Conversation

@meliwanx

@meliwanx meliwanx commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Nightly at 03:10 and Monday at 03:20 Asia/Shanghai, delete memories that are not pinned and were created before local midnight.
  • Pinned rows are left as stored. Memories created after local midnight, and rows with an unreadable created_at, stay.
  • The same delete is safe to run twice. A process that was down at 03:10 still sweeps on its first later tick that day.

Test plan

  • backend/tests/test_memory_consolidation.py (6 tests) passed locally
  • Full suite not run (local PostgreSQL was down)

Nightly at 03:10 and Monday at 03:20 Asia/Shanghai, delete memories that
are not pinned and were created before local midnight. Pinned rows stay
as stored. The same delete is safe to run twice.
@meliwanx
meliwanx merged commit 7a94588 into main Oct 8, 2026
1 of 2 checks passed
@meliwanx
meliwanx deleted the feat/memory-nightly-pin branch October 14, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant