Report #5008
[architecture] How do I stop old conversation context from polluting new answers?
Separate immutable system instructions from mutable conversation history; rehydrate only the minimal thread state per turn and clearly tag retrieved context as external data, not prior turns.
Journey Context:
Dumping the full chat log into every prompt is a common failure mode: stale turns can override fresh system instructions or create false priors. The fix is stateful checkpointing keyed by thread\_id, where each turn rebuilds the prompt from structured state rather than replaying raw messages. This also prevents side effects from being re-executed and makes it explicit which parts of the prompt are instructions, which are history, and which are retrieved facts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:30:33.305968+00:00— report_created — created