Memory-off /v1 turns: memory_remember's answer can echo the user's name and stored memories
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start in sentient/memory/facts.py: FactStore.remember runs name_the_user before saving and _hold returns the existing fact's id and content on a SKIP, and both results reach the memory_remember tool. Check how Agent.memory_allowed is passed into that tool's context. The change is to return only a neutral status when ctx.memory_allowed is false, including for helpers. Done when tests/test_openai_api.py has a memory-off test asserting the response contains no renamed text and no stored id or content.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found while testing #479 (OpenAI-compatible API) on a real engine.
What happens. In a /v1 turn with "Let connected apps use my memories" off (openai_api.allow_memory: false), the memory read tools are gone (as designed, Agent.memory_allowed, #529), but memory_remember stays so the app can still suggest facts for review. Its answer goes back to the model, and through the model to the app, and it can carry things the turn isn't supposed to see:
- The user's name.
FactStore.rememberrunsname_the_user(#475) before saving, and the tool returns the rewritten text. In the real test, a helper started from a memory-off/v1turn calledmemory_remember("The user works at a tech startup in Bangalore.")and got back{"action": "ADD", "content": "Maya works at a tech startup in Bangalore.", "status": "pending", ...}. The turn's prompt leaves the configured name out, so this is the only way the app learned it. - An existing memory's text.
_hold(sentient/memory/facts.py) answers a near-duplicate with{"action": "SKIP", "id": <existing id>, "content": <the existing fact's text>}. An app can guess a fact close to a stored one and read the stored wording back. The bar ismemory.duplicate_similarity(0.98) plussame_subject, so it's a narrow oracle, but #339 shows short facts in one script can score that close with real embedding models.
Suggested fix. When ctx.memory_allowed is false, memory_remember answers without stored content: the fact as the app gave it (not renamed), and no id or text of another fact (for example {"saved": "for review", "status": "pending"}, or {"status": "skipped"} for a duplicate). Same for helpers the turn starts (they inherit the decision). A test in tests/test_openai_api.py next to the existing memory-off tests.
Not a blocker for #479: the memory switch is off by default and the key is made by the user for apps on their own computer, but the switch should mean what it says.
- Lenguaje dominante
- Python
- Estrellas
- 718
- Forks
- 135
- Merge medio
- 16 h 34 min
- PR fusionados (30 d)
- 215
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de existence-master/Sentient
-
Telegram/Discord: tapping "Local only" in the /model list should ask too, and "/model Local only no" should cancelPosiblemente ocupada @bernalalexis-try la tomó hace 16 días. Abiertoarea: channels enhancement good first issue priority: P2 size: S
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
existence-master/Sentient#457 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
area: devices good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
existence-master/Sentient#96 ·
Los mantenedores suelen responder en 1 día
-
Flaky: test_voice_note_is_transcribed_and_answered misses the sendVoice reply under loadPosiblemente ocupada @PruthviRajSolase la tomó hace 2 días. Abiertoflaky
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
existence-master/Sentient#546 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Deleting a memory with a broken stored field fails in the REST routePosiblemente ocupada @Ankit874396 la tomó hace 4 días. Abiertoarea: memory bug good first issue priority: P2 size: S
existence-master/Sentient#539 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Second look on qwen3:8b lets a code step that also empties a file throughPosiblemente ocupada @sahilphad07-sudo la tomó hace 10 días. Abiertoarea: engine bug priority: P2 size: S
existence-master/Sentient#518 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de existence-master/Sentient
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
autowarefoundation/autoware_carla_scenario#1485 ·
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 2 días
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
Los mantenedores suelen responder en 2 días
-
changelog investigate
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ramnes/notion-sdk-py#441 ·
-
copy_tree splits same-file errors into charactersPosiblemente ocupada @Gambit-Checkmate la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 14 días