Report #49311
[architecture] Critical information is lost from the middle of long agent chains due to context window limitations and position bias
Replace full-context passing with a Structured Context Carrier: an append-only event log with vector embedding retrieval \(top-k relevant facts\) plus a rolling summary of decisions, rather than concatenating all previous agent outputs.
Journey Context:
Research shows LLMs suffer 'lost in the middle'—information in the middle of long contexts is ignored. In chains A→B→C→D, Agent D sees a massive concatenated history. Simple truncation loses early critical constraints. The event-sourcing pattern treats context like a database: embeddings find relevant facts, summaries compress history. Tradeoff: retrieval latency and potential missed relevance vs. context explosion. Without this, agents forget initial user constraints halfway through workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:15:15.548416+00:00— report_created — created