Which traces qualify
A trace needs a readable task. More recorded evidence helps Hue generate specific evaluators:- Content. Capture the request, reply, tool arguments and results when available. A trace without a readable task cannot become a case.
- The request and reply. Record the user’s request as the request span’s input and any available reply as its output; see Traces and spans.
- App calls. Record each tool call on its own span, with what Hue needs to recognize the app each call reached.
Create a case in Hue
- Open the trace in Traces and choose Create case. When the button is unavailable, its tooltip says why.
- Optionally answer Did the agent complete the task correctly? Choose Yes to accept the recorded outcome, or No to describe What should have happened? Leave feedback unset to generate evaluators from the task and recorded evidence.
- Optionally include the conversation’s earlier turns as context, and choose the eval set the case joins, or a new one.
- Choose Build case. Hue saves the source evidence and generates the evaluators.
- Check the generated case. Its page shows the task, the evaluator and, for a case with a World, the World it starts from. Hue publishes the case when its source and evaluator definitions are valid. World preparation, replay and fidelity comparisons do not block creation.
- Run your agent against it. After publication, the case’s Run section offers Save eval-set version and a command to copy into your agent’s project.
Answer-only cases
An answer-only case runs without a World instance. Hue keeps the task and selected earlier context, then generates checks from the task, recorded evidence and any outcome feedback you supply. Its Answer outcome evaluator includes the required Answers the task judge: a run passes only when the required checks and that judge pass, an empty answer fails, and an unavailable or undecided judge makes the result Inconclusive. A readable task can become a case without an original reply. Available file evidence stays with the case.Cases with a World
When the trace’s user has a World, the case links it at the trace’s start time, even while that World is still preparing. Creation never waits for a World, and a case without one is answer-only. Each run pins the World evidence it starts from, and every execution in the run starts a fresh instance, so each attempt begins with the same data and the evaluators grade its changes. The linked World holds what the user’s traces established before that time, so a new user’s first trace links a World without the records that trace read; Worlds from traces explains how trace evidence shapes the World. Some older World cases answer a call to a tool Hue doesn’t simulate from the trace’s recording: a repeated call, with the same name and arguments, gets the recorded answer, and any other call gets an error rather than an invented answer. Such a case checks less of your agent’s behavior than one whose apps Hue simulates.Files in a case
A case keeps its own copies of the images, documents and audio its trace recorded: files a Hue SDK uploaded, files attached without the SDK, and files a record holds inline as adata: URL or base64 part. The copies stay with the case after the trace is deleted or the case is edited. Hue copies up to 32 files of up to 25 MiB each, in the image, audio, video and PDF types the trace view previews and in Word, PowerPoint, Excel, JSON, text and CSV. A file the trace holds only as a remote reference has no bytes to copy.
The judges Hue pins when it publishes a case see PNG, JPEG, WebP, GIF and PDF files that the agent was given or produced, or that the case keeps as evaluator-only references. They see up to 8 files of 4.5 MB each and 20 MiB in all. Past those bounds, a judge sees a file’s name, type and size only. Judges that earlier cases pinned keep reading text only.
Create a case with your coding agent
With a Read and write connection to the Hue MCP server, a coding agent can run the same steps. On an organization connection, every call takes the case’s project asproject_id.
- Choose the trace.
search_traceswithuser, a window andinclude_case_eligibility: truemarks which of a user’s traces can become cases, orget_case_conversion_eligibilitychecks one trace, optionally from aroot_span_id. Each answer carries the tracerevisionto build from and the reason a trace cannot be used.grading: "answer"withworld: { status: "answer_only", gaps }means the case grades the answer alone and gets no World;gapsnames the tool calls no simulated app serves and why.add_case_conversionrepeats both on the created case. A missing or preparing World doesn’t prevent creation. - Create the case. Call
add_case_conversionwithtrace_id, the checked revision asexpected_trace_revisionand anidempotency_key. Correctness feedback is optional: addrun_was_correct: trueto accept the recorded outcome, oroutcome_intentto describe the expected outcome. Keep feedback within 4,000 characters. - Check the result. Poll
get_case_conversionuntil it reportsstatus: "published"or a reason that stopped the build.include_content: truereturns the task and evaluators. Creation does not run replay or require correctness approval. - Evaluate. Run the agent against the published case with
hue eval, orlaunch_runfor an online worker.
publish_when_ready: false, edit the draft with update_case_conversion and publish with publish_case_conversion once get_case_conversion reports ready: true. The case_from_trace MCP prompt runs these steps, and MCP tools lists each tool’s arguments.