Before you start: account, Agent, and sample
- You have connected Codex and found a real Trace, and the selected Agent is bound to your current account.
- You have diagnosis execution permission in the current space. In a team space, administrators or developers normally run checks. See members and permissions.
- Use a Trace from the SigNoz data source. If the Trace page shows both SigNoz / Langfuse, select SigNoz. With only one source, the switch is hidden; see identify the Trace source. If your record is only available through an external Langfuse source, follow the integration guide to add a suitable pipeline first.
1. Prepare a Trace with a verifiable test failure
If you already have a Codex Trace with an explicit tool failure, a readable failure status, and original output, record its ID and continue to step 2.No suitable sample yet? Copy this isolated exercise
No suitable sample yet? Copy this isolated exercise
This exercise needs Python 3 and Codex connected to AI Vision. Use a terminal to set up a temporary directory, then ask your connected Codex to run the test there. You can also use an existing Trace from a project with a verifiable test failure.Run the preparation commands below in your terminal. They create two exercise files in a new temporary directory without changing your application project:Ask Codex connected to AI Vision to open the printed directory. It contains no application data. This exercise needs Full mode to preserve original commands and output. A first installation defaults to Full; reinstalling preserves the existing mode. If you previously configured Privacy, follow the collection-mode instructions: add Expected result:
--collection-mode full to the complete connection command generated by the web page for the current space, run it, restart Codex, and start a completely new session. The web page has no mode switch. Switching modes cannot restore content already filtered out of old records.Send this task:test_timeout_required fails, test_valid_timeout passes, and the output contains AssertionError: ValueError not raised and FAILED (failures=1). The actual command exits with code 1, but the collected Trace may not include a numeric exit-code field. The failure comes from the defect deliberately left in the exercise. Confirm it before continuing.Running the preparation commands manually in a terminal does not create this Codex tool Trace. Wait for Codex to finish the turn, then find it in the platform. After the exercise, you can delete the temporary directory you created. Verify its path first and keep any exercise records you need.FAIL for test_timeout_required, ValueError not raised, and FAILED (failures=1). Tool names can vary by Agent version, so match the command and the output.
2. Run Tool Execution Results from the Trace
1
Confirm the diagnosis scope
In the Trace detail, select Run diagnosis and keep Saved diagnosers selected. The detail view checks only the open Trace. If you start from Agent Traces with several rows selected, confirm the Trace ID in the dialog. This exercise needs one Trace.
2
Select the saved diagnoser
Choose Tool Execution Results and expand Check details to make sure the rule applies to the current Agent. Select Run diagnosis. AI Vision saves the configuration and results for this run. If the rule is unavailable, check the Agent, rule, and permissions in Use existing diagnosers.
3
Wait for the result
Set Filter records → All records and verify the Trace ID. If it shows a Finding, read the reason. Right-click View quality results to keep this batch open in a new tab. Use Refresh records if read-back is incomplete. If you are unsure that the run was submitted, use Recover this request to check its status.
① Keep the quality results open in a new tab. ② Return to the run dialog and open the failed call from the result. Built-in demo, Chinese interface. Select to enlarge.
3. Open the source step and check the finding
Select View source step in the run results. The dialog closes and the relevant tool call opens. If the result does not point to a specific Span, select View original Trace, then search by the Trace ID and test command. You can also see this workflow in the sample rule exercise.- Input. Find the step that ran
python3 -m unittest test_config -vor the actual command you used. - Status and output. Verify the failure status and original error. Check the exit code if it was recorded. The status and original output are sufficient for this exercise.
- Recovery. Check later calls to see whether a retry succeeded. The Trace retains the earlier failure.
4. Submit your review and verify it was saved
Open BadCase List in the quality-results tab you kept open. Find the Tool Execution Results record by Trace ID. You can also use View diagnosis details on the same record in the run dialog. Check the diagnoser name and original evidence, choose Confirm as Valid, write your reason, and select Submit Feedback. For example:Next: fix and retest, then expand the checks
Validate the fix with a new Trace
Run the same test again and compare the original tool output and the two diagnosis batches.
Set up a team diagnosis task
Verify a small sample before deciding on the scope and schedule.
Optional: check one text requirement
To check an answer’s language or another text requirement, choose an applicable check from Run diagnosis → Specialist tests, or configure a custom LLM diagnoser. Semantic checks need a usable judge model connection in the current space. Provider charges may apply. For a first run, use a new Trace with a clear request and final answer. For example, ask the Agent to reply with exactly one line: “Check the evidence before judging.” Read the actual answer, then use the configured diagnoser on that same Trace. Compare the judgment and cited evidence with the original answer. A specialist trial displays results in its form. To find the result on the Quality Board, run the saved specialist configuration from Saved diagnosers. The available checks depend on Agent type and captured evidence. See Try one explicit requirement.If you get stuck
See Quality results and BadCases for counts and scores.
