Agent reports a memory save failed when the backend stored it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start at raven/context_engine/segments/render.py:375 and trace how the user-memory path and end-of-turn memory status are presented in non-interactive turns. Compare that behavior with the backend evidence in the issue, including POST /api/v1/memory/get and the stored episode path. Done means acceptance runs no longer report a successful backend save as failed or preserve that contradiction as the system's memory narrative.
Written by the indexing model from the issue text.
Description
What happens
Ask Raven to remember something from a non-interactive CLI turn, and it reports that the save failed. It did not. The memory reached the configured backend and can be recalled in the next session -- the agent just cannot see that it did, and says the opposite.
Reproduced on a managed EverOS install (isolated RAVEN_HOME, memory.backend = "everos", service healthy, llm and embedding both ok in raven doctor):
Turn 1, raven agent -m "Remember this: my bike is a green Brompton called Pickle."
I've got it -- but I have to be straight with you: the save didn't go through. [...] writing to your memory files (
user_memory/profile/user.md, and the episodic log) came back as "requires user approval (ask tier), but this turn is not interactive" [...] So right now Pickle lives only in this session and won't survive into future conversations.
Turn 2, a fresh session, raven agent -m "What colour is my bike and what is it called?"
Your bike is a green Brompton called Pickle
One caveat worth flagging: when you asked me to remember that earlier today, the save didn't actually persist [...] I've just re-checked
user_memory/profile/user.mdandepisodic/episodes.md, and both are empty, so Pickle currently exists only in the session log
The second answer is only possible because the recall worked: it is a new session, and the fact was injected from the backend. The agent then contradicts its own evidence.
Disk and HTTP at that moment:
<root>/default_app/default_project/users/default/episodes/episode-2026-09-16.md # contains Pickle, Brompton
POST /api/v1/memory/get -> 1 episode
Why
Two memory mechanisms run side by side, and the agent can see only one of them.
user_memory/files. The agent is handed the path every turn --raven/context_engine/segments/render.py:375renders- User profile: {home_path}/user_memory/profile/user.md (preferences, identity, project context)-- and writes them itself withedit_file. In a non-interactive turn that write hits theaskpermission tier and is refused. Correctly: the agent reports that accurately.- The memory backend. Written by the host after the turn ends, extracted server-side. The agent never calls a tool for it and has no way to observe it.
"Remember X" triggers path 1. Path 1 fails, path 2 succeeds, and the agent reports on the only one it can see.
Two things make it worse:
- Every turn ends with
1 turn(s) were not written to long-term memory because the memory service was unavailable.even when the episode is on disk. That sentence has contradicted disk truth in three separate acceptance runs. - The backend extracted the agent's own false report. The stored episode is titled
Memory Save Failure for Green Brompton Bike 'Pickle' Noted on 2026-09-16-- the content is right, the narrative is wrong, and it is now in long-term memory.
Why it matters
A user asking "did you remember that?" is told no by the component least able to answer. The recall works; the report does not. And the wrong report is itself remembered, so it can be recalled later as if it were a fact about the system.
Not a regression
None of this is introduced by the memory-backend seam work (#414); that branch touches neither path. It surfaced during acceptance for it, where the two paths could be compared against disk truth side by side.
Worth separating
- whether the agent should be told about
user_memory/at all when a backend is configured - whether the end-of-turn sentence is reporting on something it can actually observe
- whether an agent's claim about persistence should be extracted into memory as if it were an observation
- Dominant language
- Python
- Stars
- 4.1k
- Forks
- 94
- Avg merge
- 9h 54m
- Merged PRs (30d)
- 370
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EverMind-AI/Raven
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
EverMind-AI/Raven#798 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
EverMind-AI/Raven#797 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
EverMind-AI/Raven#640 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
EverMind-AI/Raven#479 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
EverMind-AI/Raven#474 · 2 comments ·
Maintainers usually reply within 1 day
All issues in EverMind-AI/Raven
Similar issues
-
customer-reported
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Azure/azure-cli#34150 · 1 comment ·
Maintainers usually reply within 1 day
-
community-request
Difficulty 1/5 Under an hour Newbie friendliness 95/100
NVIDIA-NeMo/Curator#2464 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
WeblateOrg/translation-finder#1099 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
trezor/trezor-firmware#7997 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day