mlsanityData to 7 Oct 2026

TRACE: TRajectory Attribution for Automated Context Engineering

arXiv 2608.09153 ↗First posted 10 Aug 2026cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Production AI agents fail when their context sources -- system prompts, knowledge bases, tool descriptions, and procedural skills -- contain errors or gaps. Current maintenance relies on manual log review and ad-hoc debugging, creating a scalability bottleneck as interaction volume grows. We present TRACE (TRajectory Attribution for Automated Context Engineering), an automated feedback loop that mines historical agent trajectories to diagnose and remediate context failures. Our key insight is that trajectories are rich with implicit dissatisfaction signals -- user corrections, rephrasing, abandonment cues -- that reveal precisely where context sources failed, without explicit feedback collection. Unlike model fine-tuning, TRACE operates on the context layer, enabling rapid iteration without retraining. We make four contributions: (1) a trajectory mining framework that systematically extracts diagnostic information from historical agent executions; (2) multi-component causal attribution that extends textual gradients from monolithic prompt optimization to heterogeneous context sources (skills, knowledge bases, tools, prompts); (3) exploratory verification, where agents actively read context sources to distinguish content gaps requiring CREATE from stale content requiring UPDATE, achieving 96% operation accuracy; and (4) a reusable simulation methodology and verifiable benchmark addressing the absence of open datasets for context debugging, with a six-category fault taxonomy, ground truth annotations, and a cross-layer verification protocol. On 60 dissatisfaction traces spanning three complexity tiers (up to 16 execution nodes), TRACE achieves 72.7% root cause attribution and 82% end-to-end fix effectiveness, showing that over 80% of context-layer failures can be automatically diagnosed and remediated by mining historical trajectories, an overlooked resource in production systems.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 14 of its 22 references that are in the map. First posted on arXiv 10 Aug 2026.

Builds on

14 of 22 references.

References · 14

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
  3. 2023GAIA: a benchmark for General AI Assistantscited by 1,084
  4. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
  5. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  6. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
  7. 2024TextGrad: Automatic "Differentiation" via Textcited by 250
  8. 2025SiriuS: Self-improving Multi-agent Systems via Bootstrapped Reasoningcited by 41
  9. 2024Inverse Constitutional AI: Compressing Preferences into Principlescited by 39
  10. 2023PACE: Improving Prompt with Actor-Critic Editing for Large Language Modelcited by 20
  11. 2024CriSPO: Multi-Aspect Critique-Suggestion-guided Automatic Prompt Optimization for Text Generationcited by 18
  12. 2024How to Correctly do Semantic Backpropagation on Language-based Agentic Systemscited by 18
2 more
  1. 2025Towards Adaptive Memory-Based Optimization for Enhanced Retrieval-Augmented Generationcited by 9
  2. 2025DRIFT: Learning from Abundant User Dissatisfaction in Real-World Preference Learningcited by 5

Built on by

Not cited yet.