Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Superseded memories are kept forever: let them expire or be cleaned up

Đã đóng
#441 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@wpyaoxueros đang làm issue này rồi.

Từ ngày 17/10/2026.

  • #453 của @wpyaoxueros — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

area: memory enhancement good first issue priority: P2 size: S

Since #436 (#152), a memory replaced by a newer one (for example "lives in Pune" after "moved to Bengaluru") is kept as superseded history instead of being deleted. It's left out of prompts and only listed when asked for. Nothing ever removes it, though, so they pile up, and a user who wants something gone has to find the old version too.

Idea:

  • a config option such as memory.keep_superseded_days (default 180, 0 = forever), with a description so Settings shows it;
  • the nightly memory job deletes superseded memories older than that, through the same cascading delete #436 added (vectors, links, summaries, insights' evidence);
  • deleting a current memory offers to delete its earlier versions too.

Where: sentient/memory/facts.py (states and cascading delete from #436), the nightly job in sentient/memory/dreaming.py, and config/schema.py.

Done when: a superseded memory older than the setting is gone after the nightly run, along with everything derived from it, and current memories are untouched. Add tests for both.

Ngôn ngữ chính
Python
Star
710
Fork
125
Merge trung bình
5 giờ 15 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của existence-master/Sentient

Tất cả issue của existence-master/Sentient

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.