Teams keep traces in tools such as LangSmith and Langfuse. A tester has to read their exports: find what actually failed, and turn real conversations into test cases. The two formats differ, but both are trees of spans: a root for the request, with children for retrieval, tool calls, the model call and the parser.
An error usually shows on several spans, because a parent fails when a child fails. To find the cause, start at the root and move to the child whose error caused it. Skip a failed child when a later sibling with the same name succeeded: that step was retried and recovered. Stop when no failed child is left.
Reviewers also leave corrections on bad answers. Each is a ready-made test case: the question from the root span, the documents the retrieve span returned, and the corrected answer as the reference.
Your task
Read both exports into one span shape, print the failing span of each failed trace, and build the dataset. The exports here were written for the course in the shape of real ones. On submit it also runs on exports you have not seen.