mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-20 10:03:37 +00:00
`Memory.read_only` was enforced only on `remember()` and `remember_many()`. Two other paths still mutated the backing store: - `update()` re-embedded the supplied content and wrote the record back. - `recall()` refreshed `last_accessed` through `touch_records()`, so simply reading a read-only memory left a persistent trace. Both now respect the flag, so a read-only Memory leaves stored records unchanged. `update()` returns the existing record untouched rather than raising, matching the silent no-op behaviour of `remember()`. Explicit deletion through `forget()`/`reset()` is deliberately unaffected. Claude-Session: https://claude.ai/code/session_01HkDjVYVzHFEj5re9B8JH9p Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Vidit Ostwal <110953813+Vidit-Ostwal@users.noreply.github.com>