Memory-off /v1 turns: memory_remember's answer can echo the user's name and stored memories
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 42/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 716
- Fork
- 132
- Merge medio
- 16h 34m
- PR unite (30g)
- 215
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di existence-master/Sentient
-
Telegram/Discord: tapping "Local only" in the /model list should ask too, and "/model Local only no" should cancelForse già presa @bernalalexis-try l’ha presa 14 giorni fa. Apertaarea: channels enhancement good first issue priority: P2 size: S
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
existence-master/Sentient#457 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
area: devices good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
existence-master/Sentient#96 ·
I maintainer di solito rispondono entro 1 giorno
-
Flaky: test_voice_note_is_transcribed_and_answered misses the sendVoice reply under loadForse già presa @PruthviRajSolase l’ha presa oggi. Apertaflaky
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
existence-master/Sentient#546 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Deleting a memory with a broken stored field fails in the REST routeForse già presa @Ankit874396 l’ha presa 2 giorni fa. Apertaarea: memory bug good first issue priority: P2 size: S
existence-master/Sentient#539 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Second look on qwen3:8b lets a code step that also empties a file throughForse già presa @sahilphad07-sudo l’ha presa 8 giorni fa. Apertaarea: engine bug priority: P2 size: S
existence-master/Sentient#518 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di existence-master/Sentient
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
aws/sagemaker-python-sdk#6554 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
huggingface/diffusers#15170 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] LLM conflict check ignores MNEMOSYNE_LLM_MAX_TOKENS, so reasoning models return empty repliesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
mnemosyne-oss/mnemosyne#1325 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement meshtastic-2.8
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
pskillen/meshflow-api#459 ·