Report #2939
[architecture] Critical instructions are pushed out of the context window by long history
Put the system prompt and core memory at the start of the context window, keep them immutable, and truncate only the oldest message history at the tail.
Journey Context:
A bloated prompt is often laid out as system instructions followed by endless history, then truncated from the end. That preserves instructions but loses the most recent turns; putting instructions at the end risks losing the rules. MemGPT's layout fixes this: system instructions first, then working/core memory, then a FIFO queue. Oldest queue entries are evicted into summaries. This protects both the rules and the recency signal, which is the foundation of reliable long-horizon behavior.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T14:39:04.345054+00:00— report_created — created