> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# From review to continuous diagnosis

> Turn confirmed issues into application fixes and tests on new Traces, then check subsequent runs with a scheduled team task.

**After manual review, make a targeted fix or adjust the check, then inspect a new execution.** The platform saves feedback; it does not automatically modify your Agent, adjust diagnosis rules, or train a model. This page shows how to turn one BadCase into a verifiable improvement and set up ongoing checks.

Before starting, complete a [diagnosis from a Trace](https://aivision.mintlify.site/en/guides/diagnosis.md) or a [small manual task](https://aivision.mintlify.site/en/guides/diagnosis-tasks.md), then [submit feedback and read it back](https://aivision.mintlify.site/en/guides/quality.md#review-one-badcase).

## 1. Choose the next action from your review

| Review result | Next action | How to verify completion |
| - | - | - |
| Confirmed | Fix instructions, code, tools, or execution flow in your Agent project. Keep the problem Trace and diagnosis evidence. | Run a similar real task to obtain a new Trace; check the same conditions and the actual deliverable. |
| False positive | Check for overlooked retries, missing context, or overly strict conditions. Authorized members can edit custom configurations. Built-in source definitions cannot be edited directly; adjust the task's selected checks or report the issue with evidence. | Use both a normal sample and a problem sample in diagnoser debugging or a specialist trial, then update the production task. |
| Cannot judge | Add context, original artifacts, or verification records; collect a new Trace if necessary. Return to the original record when enough evidence is available. | Identify the Trace and step supporting the judgment; leave the result unknown when evidence is missing. |
| Skip for now | Record an owner, reason, and review date in your own task tracker, then return to the record. | Have a concrete follow-up action; skipping does not mean the issue is resolved. |

Feedback stores the review status, remark, reviewer, and time. It does not change the original `bad` to `good` or automatically recalculate the original batch's quality score. If the score does not rise after you mark a false positive, that does not mean feedback was lost. Reopen the same record to verify its saved status first.

Keep a line in your own issue tracker or notes: `Problem Trace ID → check name/configuration → original evidence → review result → change made → new Trace ID → retest observations`. You maintain this improvement record; the platform does not automatically create a training dataset or a repair task from it.

## 2. Verify an application fix with a new Trace

Continue the `timeout` exercise from [your first diagnosis](https://aivision.mintlify.site/en/guides/diagnosis.md). Keep the original Trace, diagnosis batch, and failure output. After the repair, verify the same test in a new Trace. Compare the check definition and configuration version used by both runs.

**1. Fix the issue and collect a new Trace**

Use a new turn in your connected Agent to fix the validation and run the test again. You can copy the prompt below. In Agent Traces, confirm the new Trace ID, the test command, both passing tests, and the original `OK` output.

**2. Run the same diagnoser on the new Trace**

Open the new Trace. Select **Run diagnosis → Saved diagnosers**, choose the same **Tool Execution Results** diagnoser, and wait for the result. The current run uses the saved definition, while the earlier batch retains its original configuration and verdict. Record any configuration changes between the two runs.

**3. Compare the evidence and verdicts**

Open the quality-results tab from your first run and use **View quality results** for the new run. Verify the Trace ID, check name, and batch for each result. On the Quality Board, open **BadCase List** and set the verdict filter to **All** to see `good` results. In the run dialog, you can also use **Filter records → All records**. Compare the original status and output in both Traces.

> [accordion] Copy the prompt for the repair exercise
>
> ```text theme={null}
> Use the same temporary exercise directory. In config.py, only change validate to check for a missing timeout.
> Raise ValueError("timeout is required") when timeout is missing, and otherwise return its value unchanged.
> Keep test_config.py unchanged. Run python3 -m unittest test_config -v on its own after the edit.
> Preserve the edit, tool status, and test output. Include the exit code if the tool reports one.
> ```

| Evidence | Earlier run | What to verify after the repair |
| - | - | - |
| Trace | Original Trace ID | A new Trace ID. |
| Original test output | `test_timeout_required` shows `FAIL`, with `ValueError not raised` and `FAILED (failures=1)`. | Both tests pass and the output contains `OK`. If recorded, the exit code is `0`. |
| Tool Execution Results | A `bad` runtime finding for the failed tool. | The same rule should report `good` if no other known tool call failed. |

**If you changed the diagnoser**, use a healthy sample and a problem sample to debug it, then start a fresh batch with the current configuration. Keep historical results for comparison. To check whether the Agent verified a code change, choose a single Trace that records both the file change and its subsequent validation.

### Check again with the same team task

When a team task found the issue, confirm that its sampling and data window cover the new Trace. Open **Diagnosis → Diagnosis Jobs** and find the task. Use **Trigger Now** for an enabled manual task or wait for the next scheduled run. In **Execution History**, open the new batch and check **Scope of this batch**, then expand **View check definitions** to verify which rule ran. The time filter on the Quality Board controls which results you browse. The task configuration controls which Traces the run reads.

<video controls playsInline preload="none" poster="/assets/walkthrough/en/diagnosis-retest.webp" src="https://mintcdn.com/aivision/ZEwXG9qC_6SHqrLa/assets/walkthrough/en/diagnosis-retest.mp4?fit=max&auto=format&n=ZEwXG9qC_6SHqrLa&q=85&s=71059cc37b2e66f9c9952a3f6a70b1e2" aria-label="Trigger a diagnosis task again and open the new batch in Execution History">
  The video runs an existing team diagnosis task and finds the new batch in Execution History.
</video>

Trigger the same task again and check its new batch in Execution History. Demo data, Chinese interface.

The example batch shows three selected Traces and the expanded check name and version. If you see **Scanned scope not recorded**, use the task configuration and trigger time to calculate the [data window](https://aivision.mintlify.site/en/guides/diagnosis-tasks.md#understand-the-data-window). Check whether the results include the new Trace ID.

## 3. Schedule checks that you have already validated

Team-space administrators and developers can manage these tasks. In a personal space, continue running saved diagnosers from a Trace. Only personal managed tasks explicitly enabled and configured by the platform run automatically; new deployments do not create them by default.

First complete a small manual acceptance check using [Create a diagnosis task](https://aivision.mintlify.site/en/guides/diagnosis-tasks.md), then configure ongoing checks:

**1. Fix the diagnosers and data scope**

Create a clearly named team task. Select validated diagnosers and verify the actual Agent/runtime scope and filters. Include applicable `quality` checks if you need a quality score; with only `signal` checks, continue reading results as runtime clues.

**2. Align frequency, window, and delay**

Select **Scheduled Trigger**, set the frequency and first execution time, then verify the lookback window and data delay. The example below runs every 5 minutes with a 5-minute window and a 5-minute delay. Set the trace limit for your actual traffic; retaining the initial practice limit of 3 does not establish full coverage.

**3. Enable the task and inspect its first two batches**

Save and enable the task. Wait for the scheduled time, then open **Execution History**. Check scheduled time, status, selected and scanned samples, valid judgments, skips, and failures before opening the matching batch's quality results. The task list does not offer **Trigger Now** for scheduled tasks. Use a separate manual task for immediate validation.

**4. Keep reviewing new issues**

For subsequent BadCases, repeat “check evidence → submit feedback → fix or adjust → validate with new data.” Regularly inspect empty windows, failures, skips, trace limits, and model costs. Expand the scope only after confirming that the task continues to produce valid results.

**Completion criteria for scheduled checks:** see at least two actual batches with different scheduled times, and use each batch's window and samples to verify that it checked the expected data. A success label or saved task configuration alone does not establish working continuous diagnosis.

## 4. Check for overlap and gaps

This hypothetical example uses each task's **scheduled time**. Each interval includes its start and excludes its end:

| Scheduled time | Frequency | Lookback window | Data delay | Batch window |
| - | - | - | - | - |
| 10:00 | Every 5 minutes | 5 minutes | 5 minutes | 09:50 ≤ time \< 09:55 |
| 10:05 | Every 5 minutes | 5 minutes | 5 minutes | 09:55 ≤ time \< 10:00 |

When the interval between runs is shorter than the lookback window, windows overlap and the same Trace may be checked again. When the interval is longer, gaps can appear. Preventing duplicate scheduled trigger points does not automatically deduplicate Traces across batches.

Even adjacent windows do not guarantee complete coverage: a Trace may arrive late, remain unfinished, be excluded by a filter, or exceed the read limit. Configure the window for actual reporting delays. To investigate missing data, use a separate manual task with an explicit time range; do not assume that late data is automatically backfilled.

## 5. Change, pause, and resume tasks

* **Change a diagnoser or model:** validate one sample first, then update the production task. Record the change time. Historical batches retain their original definitions and statistics; confirm comparable configurations before comparing them.
* **Disable a task:** this stops new scheduled batches from being created. Existing pending and running batches may continue; disabling a task does not cancel its executions.
* **Resume or edit a task:** inspect subsequent execution records. Do not assume that windows before re-enabling or editing will be backfilled. Create a separate manual task to investigate gaps.
* **Unexpected costs or results:** disable future scheduling first, preserve execution IDs and errors, then use the [model connection guide](https://aivision.mintlify.site/en/guides/model-connections.md) and [task troubleshooting](https://aivision.mintlify.site/en/guides/diagnosis-tasks.md#diagnose-execution-outcomes) to investigate.

Continuous diagnosis provides evidence that you can keep checking. Your project implements application fixes, authorized maintainers adjust checks, and the platform runs the configured checks and records results and manual feedback.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.