hebel. today · 21 November 202663 / 80
Agentic Engineering · Context Engineering
Tracing agent failures through the full execution stack
Paweł Huryn suggests that AI product managers diagnose system failures by categorizing them into retrieval, context, or generation errors. When a support copilot incorrectly claims a 60-day return policy instead of the actual 30-day…
From 2 newsletters · 1 min read · one thing to try
Paweł Huryn suggests that AI product managers diagnose system failures by categorizing them into retrieval, context, or generation errors (Paweł Huryn from The Product Compass). When a support copilot incorrectly claims a 60-day return policy instead of the actual 30-day limit, the failure often originates in the retrieval stage if the system fetches an outdated policy document. If the correct information exists in the retrieved data but fails to reach the model, the issue lies in how the system chunks or assembles context. When the model receives accurate policy text but still generates an incorrect answer, the failure occurs during the generation phase due to prompt misinterpretation or conflicting instructions (Paweł Huryn from The Product Compass).
To enable this systematic diagnosis, developers keep a trace of every question, retrieved passage, tool result, and final answer. This audit trail allows teams to follow a failure back to the specific point where information was lost or misused. The Product Compass emphasizes that a confident summary smoothing over conflicts creates new problems, so the trace must preserve disagreements and leave unanswered questions visible.
Beyond diagnosis, teams improve performance by managing context as an evolving playbook. The Agentic Context Engineering (ACE) framework, accepted at ICLR 2026, uses a Generator-Reflector-Curator architecture to accumulate task-specific heuristics and decision rules without modifying model parameters (Lina Faik from The AI Practitioner). This approach avoids the brevity bias and context collapse common when repeatedly rewriting instructions, allowing agents to learn from execution feedback both offline and after deployment (Lina Faik from The AI Practitioner).
Try today · 30 min
Create a diagnostic log for your agent that captures the raw retrieval results and the final prompt context sent to the model.
Start by logging the specific document chunks returned by your RAG pipeline before they are truncated or formatted for the LLM.