> ## 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.

# Create and inspect diagnosis tasks

> Set a data window, offset, and schedule, then verify which traces were actually checked.

This page covers advanced batch tasks for repeated execution. To inspect one or two Traces first, [run diagnosis from a Trace](https://aivision.mintlify.site/en/guides/diagnosis.md). Personal-space batch tasks are platform-managed and cannot be created manually; team administrators and developers can manage these tasks. First locate a readable Trace in the current Agent.

New deployments do not automatically create ongoing personal jobs by default, so there is no need to wait for an hourly result. Only supported personal jobs explicitly enabled and configured by the platform run as managed jobs. The creation steps below use a **team space**. Ordinary team tasks have a different data scope from a diagnosis run from a Trace for your own Agent; verify that scope before saving.

## Create a small initial task

1. Open **Diagnosis Jobs → Create Job** and enter a descriptive name and description.
2. Start with one or two applicable rules; they need no model. If you need a quality score, include at least one applicable `quality` check. For LLM diagnosers, first run basic diagnostic validation as described in [Model connections](https://aivision.mintlify.site/en/guides/model-connections.md), then trial the current diagnoser against a representative real Trace.
3. Set the SigNoz data limit, lookback window, data delay, and optional filter.
4. Choose whether to save only BadCases. Review this policy before execution if you need individual good-result records.
5. For an initial check, select **Manual Trigger**, save the task as enabled, and select **Trigger Now**.
6. Open **Execution History**, check the actual data range, status, and output, then review the [quality dashboard](https://aivision.mintlify.site/en/guides/quality.md).

For an initial configuration that is easy to verify, use a maximum of **3 Traces**, a **1-hour** lookback, a **5-minute** data delay, no extra filter, manual triggering, and enabled status. Use completed tasks within that window. Turn off “save BadCases only” if you need to review individual good results. These values are for a small acceptance check, not a long-term recommendation for every team.

**First confirm that the sample falls within the window:** suppose this manual trigger's scheduled time is 10:00. The 1-hour lookback and 5-minute delay above read **08:55 ≤ time \< 09:55**. An exercise Trace completed at 09:50 falls within the window; one just created at 09:58 does not. For the latter, wait until the window covers it, or adjust the data delay after understanding the reporting delay. Repeated triggering alone will not help.

A limit of 3 is only suitable for low-traffic acceptance checks; it does not guarantee selection of your target Trace. An ordinary team task may read other members' data in the same space and runtime. Check the actual Trace IDs in the execution records first, and adjust the limit for the actual volume when traffic is higher. Until you confirm that the target was included, select the Trace by ID and run diagnosis from the Trace. An empty batch does not establish successful diagnosis.

When no execution is active, **Trigger Now** creates an execution; another request while it is active can return that existing batch. Open the matching history row and record its execution ID, selected and scanned samples, valid judgments, skips, and failures. When returning to the Quality Board, select the same job and batch; another batch's results do not establish output from this execution.

Screenshots use fictional demonstration tasks and accounts. The interface uses English settings; some current field and history labels remain Chinese. Verify your own executions, permissions, and outcomes against records in your environment.

> [tab] Configure task
>
> [![Limit the task scope and data window](https://mintcdn.com/aivision/4-JwUfsIEnWxcWuE/assets/figures/ui-task-config.en.light.png?fit=max\&auto=format\&n=4-JwUfsIEnWxcWuE\&q=85\&s=6035bcab4bc7e9fe4aee1acfad48f9bb)](https://aivision.mintlify.site/assets/figures/ui-task-config.en.light.png)
>
> [![Limit the task scope and data window](https://mintcdn.com/aivision/4-JwUfsIEnWxcWuE/assets/figures/ui-task-config.en.dark.png?fit=max\&auto=format\&n=4-JwUfsIEnWxcWuE\&q=85\&s=d33b860f63429fc004a9f3ed5676a9c9)](https://aivision.mintlify.site/assets/figures/ui-task-config.en.dark.png)
>
> Limit the task scope and data window · Current UI (English settings; some Chinese labels) · Demo data · Click to enlarge
>
> Check diagnosers, maximum Trace count, range, and data delay, then confirm manual triggering and enabled status. Calculate the actual window from range and delay. Saving settings does not establish that samples were read.

> [tab] Inspect execution history
>
> [![Check execution status and output](https://mintcdn.com/aivision/4-JwUfsIEnWxcWuE/assets/figures/ui-task-history.en.light.png?fit=max\&auto=format\&n=4-JwUfsIEnWxcWuE\&q=85\&s=ebe0cfe8c794d28e2667709fe47b71a2)](https://aivision.mintlify.site/assets/figures/ui-task-history.en.light.png)
>
> [![Check execution status and output](https://mintcdn.com/aivision/4-JwUfsIEnWxcWuE/assets/figures/ui-task-history.en.dark.png?fit=max\&auto=format\&n=4-JwUfsIEnWxcWuE\&q=85\&s=3ef7cdc0450d614c1e9ce1833c575e8b)](https://aivision.mintlify.site/assets/figures/ui-task-history.en.dark.png)
>
> Check execution status and output · Current UI (English settings; some Chinese labels) · Demo data · Click to enlarge
>
> Identify the Task by its scheduled time, start time, duration, and status, then select its row to inspect selected and scanned samples, valid judgments, skips, and failures. Check the data window against job configuration and that trigger time; the history list does not display the full window. This history uses demo data; a success label alone does not establish a usable quality score.

The task does not select a separate model; each LLM diagnoser uses its own connection. Task datasets currently use SigNoz. A visible Langfuse trace does not prove that a diagnosis task can read it.

[![Open a batch and inspect execution information and actual output](https://mintcdn.com/aivision/Ae_eZTA1KtMzgnRK/assets/figures/ui-diag-execution.en.light.jpg?fit=max\&auto=format\&n=Ae_eZTA1KtMzgnRK\&q=85\&s=73fe314519f43f42125455ab0d6e2b75)](https://aivision.mintlify.site/assets/figures/ui-diag-execution.en.light.jpg)

[![Open a batch and inspect execution information and actual output](https://mintcdn.com/aivision/Ae_eZTA1KtMzgnRK/assets/figures/ui-diag-execution.en.dark.jpg?fit=max\&auto=format\&n=Ae_eZTA1KtMzgnRK\&q=85\&s=ab2f52578af52ae0a4b532e5f1087dbc)](https://aivision.mintlify.site/assets/figures/ui-diag-execution.en.dark.jpg)

Open a batch and inspect execution information and actual output · Current interface · Demo data · Click to enlarge

## Understand the data window

| Setting | Purpose |
| - | - |
| Maximum traces | Caps the selected data; reaching the cap does not mean all requests in the interval were covered. |
| Lookback window | Determines the length of the interval to read. |
| Data delay | Moves that interval into the past so traces have time to finish uploading. |
| Filter | Narrows the interval to matching traces; verify that the fields and values actually exist. |

If the scheduled reference time is 10:00, the window is 10 minutes, and the delay is one hour, it reads **08:50–09:00**, rather than 09:50–10:00.

[![A data delay shifts the whole window](https://mintcdn.com/aivision/coKTz7l1X0d3dZJw/assets/diagrams/window.en.light.svg?fit=max\&auto=format\&n=coKTz7l1X0d3dZJw\&q=85\&s=fad326e067adee079bc8436905a64ce4)](https://aivision.mintlify.site/assets/diagrams/window.en.light.svg)

[![A data delay shifts the whole window](https://mintcdn.com/aivision/coKTz7l1X0d3dZJw/assets/diagrams/window.en.dark.svg?fit=max\&auto=format\&n=coKTz7l1X0d3dZJw\&q=85\&s=e93499cd305e4eba93e4665208a8720c)](https://aivision.mintlify.site/assets/diagrams/window.en.dark.svg)

A data delay shifts the whole window

Click a diagram to open the full-size SVG.

Schedule frequency and data window are separate settings. Frequency controls how often the task runs; the window controls how much data each run reads. Their relationship can create overlap or gaps, so choose them for the intended workload.

## Limit a class of executions with a filter

The task's **Filter** field accepts Trace/Span metadata conditions without the `WHERE` keyword. Put logical field names in backticks; combine conditions with `AND` or `OR`. Inspect the target Trace's raw JSON for the actual field and value first.

For example, if you have confirmed that the target root Span's `name` is `agent-run`, enter:

```sql theme={null}
`name` = 'agent-run'
```

Replace the example name with the value you actually observed. This selects candidate rows with that name before hydrating their Traces. It does not search user-input text or establish that the name is unique in the team. Validate a manual task and inspect its actual Trace IDs before enabling a schedule.

**To target one person or machine, do not paste an email address or Agent UUID directly into this field.** The team task's platform scope comes from the space and datasource configuration; choosing a channel does not limit it to the current member. Identity columns can vary with the datasource, so one member-filter expression cannot be prescribed for every deployment. Have a maintainer verify the actual identity field and value against samples. Until the scope is confirmed, select exact Trace IDs under your own Agent and run diagnosis. Filters cannot extend space authorization.

## Manual and scheduled tasks

A manual task must be enabled and have no active execution before it can be triggered. A scheduled task runs at its configured frequency and initial execution time. The current task list does not allow manually triggering scheduled tasks.

Disabling a task stops new scheduled executions. After enabling it again, check the next execution; do not assume that every missed window is backfilled. Use a separate manual task with an explicit data scope when validating a configuration.

## Move from manual acceptance to scheduled checks

Keep the verified manual job. In the task list, use **More → Copy** to create a clearly named recurring job. Verify diagnosers, data scope, and save policy, then change its trigger to a schedule. Follow [continuous diagnosis](https://aivision.mintlify.site/en/guides/continuous-diagnosis.md) to set frequency, first execution time, lookback, and delay, and verify at least two batches.

Disabling a job stops new scheduled batches. Already-created or running executions can continue; do not assume paused windows will be backfilled after re-enabling it.

## Diagnose execution outcomes

| Symptom | Next step |
| - | - |
| No execution history | Check status, trigger mode, first execution time, and permissions. |
| Failed or partly failed execution | Inspect each failed diagnoser, its error, and actual model connection; distinguish data retrieval from model execution. |
| Execution ended but no score | Check selected targets, source completeness, failed checks, and skips. |
| No individual GoodCase records | Check the “save BadCases only” setting. |
| Repeated runs miss a recent Trace | Calculate the real window using the delay, then check filters and the trace limit. |

Saving a task, ending an execution, and producing diagnosis results are separate stages. A first successful check must include the target Trace and a valid judgment in a formal execution. For an empty window, all checks skipped, or execution failure, troubleshoot using the table above. Signal-only tasks can have no quality score; tasks that save only BadCases may have no individual good-result records.


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