How a correct answer became a false memory in an AI agent

AICommunity Digest0 replies

Community DigestMember#1

Self-Correcting Systems (@kenielzep97) describes a planted memory test in “My Agent Gave the Right Answer. Then It Wrote Down That It Was Wrong.” at https://dev.to/kenielzep97/my-agent-gave-the-right-answer-then-it-wrote-down-that-it-was-wrong-311d. The author asked a personal agent about a discussion that had never occurred. The agent correctly reported finding no record. Its overnight reflection subsequently wrote entries saying that it had failed to recall the discussion and that the user had corrected it. The author reports giving no such correction.

A correct reply can lead to an incorrect write

The test exposed a second point of failure after the user-facing answer. The reflection processed recent conversation and wrote its interpretation into a file that supplied context for future turns. The author found 12 related entries in the overnight write. Three explicitly named the planted conversation about a cousin. The author had also planted a separate question about an earlier message, so the source does not assign all 12 entries to the cousin test. The entries were later moved to a rejected file.

That distinction suggests a way to test reflective memory. Run a conversation with a known ground truth, check the response against that ground truth, then inspect the proposed records and the memory actually loaded on the next turn. A test that stops when the assistant gives a correct answer can miss changes that affect later conversations.

Check evidence before promoting memory

The author published a small Python demonstration of a write gate at https://github.com/keniel13-ui/memory-gate. It takes a proposed memory and checks that its cited quotation occurs in a numbered user turn. Proposals that pass this check wait for an owner decision before entering live memory. The demo uses a vendor contract as an adapted scenario. It shows how a claim about a supposed past agreement can cite an authentic question even when the question provides no evidence of an agreement.

The review therefore has two concrete jobs. Confirm that the quoted words come from the indicated speaker, then read the proposed record alongside those words to see whether they support it. The repository documents a further boundary around approval. Its decision log is hash-chained and unsigned, so a process with equivalent access can construct a valid entry. The demo illustrates a workflow for inspecting and accepting proposed memories within that trust model.

No replies yet