Memory erase swallows cleanup errors with no retry, so derived data can be left behind
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 702
- 派生
- 113
- 平均合并
- 5 小时 8 分钟
- 30 天内合并 PR
- 171
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
existence-master/Sentient 的其他 Issue
-
area: channels enhancement good first issue priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 78/100
existence-master/Sentient#457 ·
维护者通常 1 天内回复
-
area: desktop bug good first issue priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 82/100
existence-master/Sentient#454 ·
维护者通常 1 天内回复
-
area: desktop bug priority: P2 size: S
难度 2/5 1-3 小时 新手友好度 82/100
existence-master/Sentient#440 ·
维护者通常 1 天内回复
-
area: desktop bug
难度 2/5 1-3 小时 新手友好度 78/100
existence-master/Sentient#426 ·
维护者通常 1 天内回复
-
area: memory bug flaky
难度 2/5 1-3 小时 新手友好度 76/100
existence-master/Sentient#422 ·
维护者通常 1 天内回复
查看 existence-master/Sentient 的全部 Issue
相似的 Issue
-
Issue Triage-Needed
难度 2/5 1-3 小时 新手友好度 68/100
pulp/pulp_container#2581 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
521xueweihan/HelloGitHub#4040 ·
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
ClanGenOfficial/clangen#6313 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug(trainer): CustomTrainer func_args with non literal values fail inside the TrainJob可能已有人在做 @avanishkasar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复