Context Window Problems
More context is not automatically better. Treat context as a constrained engineering budget.
Diagnose
Measure prompt size, completion size, retrieved chunks, repeated history, and the model's available budget. Then compare quality as context is reduced.
Fix → Verify → Prevent
Prefer relevant, ranked evidence over indiscriminate retrieval. Verify quality and cost together, then enforce context budgets in tests and observability.