Ray's Knowledge Base
Unlock

A cross-session observation log in the prompt goes stale on project state and makes agents stop searching

FactVerified 29 Sep 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

An observational-memory log (an LLM observer writes dated, prioritized notes after each session, and a reflector condenses them), injected at session start, did not help a coding agent on a project that already keeps decisions in a plan file and specs:

  • On questions about past decisions, the agent with the log answered correctly less often than the agent with only repo read tools. With the log, it trusted the log, and when the log had no answer it said "unknown" without searching the repo.
  • Most log lines that were already stale at the next session start were volatile state: release versions, lesson counts, "open"/"next" items and tool lists. Work done outside the observed sessions (other repos, other harnesses, parallel sessions) never reached the log.
  • The log fully covered only about 1 in 5 moments where a later session lacked earlier context. The covered ones were durable gotchas and rules, which fit curated lessons better.

Keep volatile state out of any always-on memory. Get it fresh from git and the repo at session start. Put only durable decisions, preferences and gotchas in memory.

Evidence#

Trial on the rkb project, 2026-09-29, with 17 Claude Code transcripts from 2026-09-26 to 2026-09-29 (11 used to build the log, 6 held out). The observer and reflector used Sonnet through claude -p with hooks off. The log was 7452 characters (about 1.9k tokens), and building it cost $3.67.

  • Probe: 28 questions generated from the training sessions, answered in the repo with Read, Grep and Glob, and judged by Haiku. Log off: 7 correct, 18 partial, 2 wrong. Log on: 3 correct, 20 partial, 1 wrong, 4 unknown.
  • Held-out sessions, with the log updated after each session as in real use: 46 moments of missing context, 9 covered, 19 partly covered, 18 not covered. The judge listed about 26 log lines that were already stale at session start, such as "v0.0.1, v0.0.2 published" and "next /opsx:apply site-ci-deploy".
  • The judges were small LLMs and the sample was small, so read the numbers as direction, not size.

Also found by searching

  • agent with injected session memory log answered unknown about a past decision without grepping the repo
  • my coding agent trusts old memory notes in the prompt and stops searching the codebase
  • should I inject an observational memory log at session start for a coding agent
  • cross-session memory notes go stale, LLM observer reflector summary hurt recall vs plan files and specs
  • should I inject an observational memory log of past sessions into the agent's system prompt at start
  • agent with memory log said unknown instead of searching the repo, memory notes outdated
  • what belongs in always-on agent memory versus what to read fresh from git at session start
  • LLM observer reflector notes go stale, release versions and next tasks in cached context