When LLM agents fail at complex tasks, you need to trace which error actually caused the failure—not just find any mistake—because long trajectories have multiple errors with different downstream impacts.
TrajDebug is a framework for identifying critical errors in long agent trajectories by tracing error lifecycles and determining which mistakes actually caused final failures. It uses history compression and evidence-based analysis to handle scattered context, then tracks whether errors were resolved or led to terminal failure.