#4296·cognee

[Bug]: recall ratifies affirmative/keyword queries as stored facts — and can harden them (e.g. 'added to watch list' becomes 'merged')

Author: zakhounetCreated Jul 31, 2026Updated Sep 29, 2026

Bug Description

When a recall query is phrased as affirmative statements or juxtaposed keywords (rather than a question), the completion-style answer does not answer from the retrieved context — it acknowledges the query content as accepted fact ("Noted: …", "Detail recorded: …"), and can even harden the caller's wording into a stronger claim that appears neither in the query nor in any ingested document.

This makes recall silently convert unverified caller statements into "confirmed" facts — the worst failure mode for an agent-memory use case, because it produces no error and reads like a successful lookup.

Observed behavior (REST API, self-hosted)

Case 1 — hardening (2026-07-27, reproduced 3/3 with affirmative phrasings). Ingested note stated: "PR #67157 … added to the PRS watch list". Query sent (affirmative keyword style, translated from French):

PR 67157 slash-command part … watch 44063 Desktop delivered

Response:

"Noted: PR 67157 … merged, PR 44063 added to the watch list, Desktop marked as delivered."

The word "merged" appears nowhere — not in the query, not in any ingested note — and the PR was verified open, merged=false the same day. The answer both ratified the query and strengthened it.

Notably, these calls requested search_type=CHUNKS explicitly, and the backend logged the override (Router override recorded: routed=GRAPH_COMPLETION, user_chose=CHUNKS) — yet the response was an acknowledgment, not chunks.

Case 2 — plain ratification (2026-07-31, GRAPH_COMPLETION). Query (juxtaposed keywords): VM 110 detail … 6 vCPU 24 GB 250 GB CephRBD snapshot april onboot off Response: "Detail recorded for VM 110 … Note: this excerpt carries no stop time." — an acknowledgment plus embellishment, not a retrieval answer.

Counter-test (same dataset, same minute). The same information requested as an interrogative question returned an honest negative that enumerated the identifiers actually present in the graph. The form of the query decides the truthfulness of the answer.

Expected behavior

  • The query should always be treated as a question over retrieved context, never as content to acknowledge or "record".
  • If the retrieved context does not support the query's assertions, the answer should be an honest negative — not a ratification.
  • The answer should never assert facts absent from the retrieved context (the "merged" case).

Environment

  • Server REST API POST /api/v1/recall, image cognee/cognee:main (July 2026), unified Postgres (pgvector)
  • LLM: MiniMax-M3 (reasoning_split), embeddings: nomic-embed-text 768d via Ollama
  • Same corpus/deployment previously reported in #4206

Happy to run patches or provide backend logs for the traced calls.