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

Memory erase swallows cleanup errors with no retry, so derived data can be left behind

Đang mở
#462 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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

Từ ngày 22/10/2026.

  • #503 của @rahul05ranjan — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, databases

Hướng nghiên cứu

Start with erase() in sentient/memory/facts.py around lines 953–955, then find the hourly memory upkeep entry point and its tests. Trace the listed cleanup steps and how upkeep is scheduled before choosing where failed work should be recorded. Done means a test makes one cleanup step fail once and confirms the next upkeep run removes the derived data.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: memory bug priority: P2 size: S

Raised by CodeRabbit on #453, but it predates that PR. erase() in sentient/memory/facts.py (~953-955) catches and drops errors from its cleanup steps (vectors, links, summaries, MEMORY.md/USER.md, insight evidence) with no retry. If one step fails (a locked file, a transient DB error), the memory row is gone but some derived data stays, and nothing ever tries again. This affects manual deletes and #441's expiry.

Fix: record failed cleanup steps (for example a small pending_erase table, or a retry list that the hourly memory upkeep drains) and retry them until they succeed. Log them plainly.

Done when: a test that makes one cleanup step fail once shows the derived data is removed on the next upkeep run.

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

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.