Report #95853
[architecture] Retrieved long-term memories are injected at the beginning of the prompt, overriding or confusing the system prompt's strict instructions.
Inject retrieved memories after the system prompt but before the current user message, or append them as a distinct, clearly labeled block \(e.g., ... \). Ensure the system prompt explicitly instructs the agent on how to weigh conflicting information.
Journey Context:
LLMs exhibit recency bias and primacy bias. If memories are dumped into the system prompt, they might contradict core persona instructions. If dumped right before the user message, they might override the actual current request. Structuring the prompt with clear XML tags and explicit instructions \(e.g., 'If memories conflict with the current user request, follow the current request'\) mitigates context pollution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:28:21.161702+00:00— report_created — created