Repository navigation
feat(memorize): delete input log entries with memories - #617
Conversation
ba94423 to
4782613
Compare
|
Updated: if input-log cleanup fails after the memory deletion, the request |
gloryfromca
left a comment
There was a problem hiding this comment.
Blocking: make session-log cleanup cancellation-safe and stop suppressing purge cleanup failures.
I reviewed the repository rules (CLAUDE.md and all path-scoped rules), the complete origin/main...HEAD diff, surrounding delete/add/purge callers, retry and cancellation behavior, the input-log history, backward compatibility/default changes, test changes, and the service/bootstrap architecture boundaries. I found two concrete privacy-deletion failures inline.
Verification: all lint, formatting, import-architecture, repository-policy, datetime, singleton, and OpenAPI gates pass. The 81 focused input-log/session-delete/purge tests pass. A broader unit run was interrupted after 5m29s at 1,248 passed / 4 skipped / 10 failed; all 10 failures were the environment's missing declared NLTK corpora, and after installing them with the repository's documented downloader command, that complete 13-test tokenizer module passed. No tests were weakened or skipped to obtain these results.
The second half of EverMind-AI#537. A /memory/delete that names a session removes that session's lines from every daily file in the scope; a purge removes the .input_log directories covered by its root/app/project scope. Both are best-effort for deletion ordering: a session delete reports success even if log cleanup fails, while purge retries its step. The log is now enabled by default, per the issue plan. Reading it through the API remains out of scope. Refs EverMind-AI#537.
4782613 to
9b4ec0e
Compare
|
Fixed both in 9b4ec0e:
72 targeted tests and lint pass. |
gloryfromca
left a comment
There was a problem hiding this comment.
No blockers; this can merge as far as I am concerned.
The new revision fixes both prior blockers: input-log cleanup is now part of the cancellation-safe supervised deletion, and purge cleanup failures propagate into the existing retry classification. I replied to and resolved both threads.
I reviewed the full origin/main...HEAD diff and the delta from 4782613d5b20, repository rules, delete/add/purge callers and lifecycle behavior, relevant history, default/backward-compatibility impact, test changes for weakening/skips, and service/bootstrap architecture boundaries. I found no new issue worth raising.
Verification: 87 focused unit/integration tests passed, including the new cancellation and purge-failure regressions. Ruff check/format, all 14 import-architecture contracts, repository policy gates, datetime and singleton checks, and OpenAPI drift check all passed.
Summary
The second half of #537, now that #611 has landed.
/memory/deletewithsession_idremoves that session's lines from everydaily JSONL file;
.input_log/directories;memorize.input_log.enabledflips totrueby default;A session deletion reports success even if log cleanup fails; purge keeps
its normal retry semantics because its log removal is part of the step.
Refs #537.
Area
Verification