Memory-off /v1 turns: memory_remember's answer can echo the user's name and stored memories
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 42/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 716
- フォーク
- 132
- 平均マージ
- 16時間 34分
- マージ済み PR(30日)
- 215
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
existence-master/Sentient のほかの issue
-
Telegram/Discord: tapping "Local only" in the /model list should ask too, and "/model Local only no" should cancel対応中かも @bernalalexis-try が 14 日前に担当しました。 オープンarea: channels enhancement good first issue priority: P2 size: S
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
existence-master/Sentient#457 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
area: devices good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
existence-master/Sentient#96 ·
メンテナーはふだん 1 日以内に返信
-
Flaky: test_voice_note_is_transcribed_and_answered misses the sendVoice reply under load対応中かも @PruthviRajSolase が今日担当しました。 オープンflaky
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
existence-master/Sentient#546 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Deleting a memory with a broken stored field fails in the REST route対応中かも @Ankit874396 が 3 日前に担当しました。 オープンarea: memory bug good first issue priority: P2 size: S
existence-master/Sentient#539 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Second look on qwen3:8b lets a code step that also empties a file through対応中かも @sahilphad07-sudo が 8 日前に担当しました。 オープンarea: engine bug priority: P2 size: S
existence-master/Sentient#518 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
existence-master/Sentient の issue をすべて見る
似ている issue
-
Import errors are swallowed: PerthImplicitWatermarker silently becomes None対応中かも @JonRC が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
resemble-ai/Perth#23 ·
-
correction metadata
難易度 2/5 1時間未満 初心者へのやさしさ 65/100
acl-org/acl-anthology#10753 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
earthtojake/text-to-cad#758 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 70/100
DataTalksClub/faq#545 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信