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

# Review and act on patterns

> Read a pattern and its evidence, turn it into a scorer or classifier you can monitor, hand it to a coding agent, and close it when it's resolved.

Review the evidence behind a pattern, then investigate, monitor, or fix what [Loop](https://docs.braintrust.dev/loop.md) found. Each pattern belongs to one project.

![Patterns list](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/patterns-list.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=7db4aeea4f8dfbc739cf225b420733f0)

## Browse patterns

The [** Patterns**](https://www.braintrust.dev/app/~/patterns) page lists the open problems and trends Loop has found in your project. It shows at a glance which are most serious, how widespread each one is, and whether it's still happening. Each row shows:

* **Severity:** An icon for the pattern's [severity](#severity), from **High** to **Informational**.
* **Name:** A one-line summary of the finding. Click it to open the pattern.
* **Categories:** The kind of finding, such as **Tool failure** or **Wrong output**.
* **Found by:** The pattern rule that found it, or **Loop** for findings from a Loop conversation. This column appears when patterns have more than one creator.
* **Users**, **Sessions**, and **Traces:** The number of users, sessions, or traces affected, from the pattern's [saved measurement](https://docs.braintrust.dev/observe/patterns/review.md#affected-traces). A `~` prefix marks a sampled estimate. Hover over a count to see the total it's compared against and the share affected as a percentage. To compare with similar users, sessions, or traces, open the column's **Scope** menu and select the corresponding **Similar** option. A cell is empty when the saved measurement has no count in that unit.
* **Last seen:** How long ago the behavior last appeared in a trace.

By default, the list shows **Users** if any listed pattern has a user count, otherwise **Sessions** if any has a session count, otherwise **Traces**. To choose which columns appear, use  **Display** >  **Columns**.

Patterns are grouped by creation date, newest first. Within each group, the most severe and most widespread patterns come first.

## Filter patterns

Use the controls above the table to search patterns by name, filter by **Status**, **Resolution**, **Severity**, or **Category**, group and sort them, and choose columns under  **Display** >  **Columns**. To return to a combination later, save it as a [view](https://docs.braintrust.dev/admin/projects.md#create-custom-table-views).

* **See closed patterns:** The list hides them by default. Click  **Display** and clear **Hide closed patterns** to include closed and duplicate patterns, or filter by **Status** or **Resolution**. Saving a view preserves this choice.
* **Group related findings:** Select **Group by** > **Severity** or **Categories** to see all high-severity findings, or all tool failures, together. Grouping by **Status** includes every status regardless of **Hide closed patterns**.
* **Filter by creator:** Use **All creators** to select a pattern rule or **Loop** for findings from Loop conversations. The menu appears when patterns have more than one creator.

## Examine a pattern

Check Loop's reasoning against the evidence before acting. To learn what Loop verifies before it saves a pattern, see [Verification](https://docs.braintrust.dev/observe/patterns.md#verification).

![Pattern report](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/pattern.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=5933ed4d8ff2abf50b4562fd3efa1c3e)

The report shows when the behavior was last seen and, when measurable, how many users, sessions, or traces it affects. After reviewing the evidence, [rate the finding](#rate-a-pattern) or [edit its properties](#edit-properties).

> [accordion] Severity
>
> The pattern's severity describes its impact. The default rubric defines these levels:
>
> * **High:** Address promptly. The issue likely causes severe or widespread harm, including monetary loss or fraud for end users.
> * **Medium:** A real issue worth fixing, with less urgency.
> * **Low:** A minor issue with limited impact.
> * **Informational:** An observation that needs no immediate action.
>
> The [rubric](https://docs.braintrust.dev/observe/patterns/configure.md#customize-severity-and-categories) can change how Loop assigns these levels.
>
> For **Capability gap** findings, demand across several organizations or accounts is **Medium**. Demand from a few users is **Low**. Only gaps that cause users to lose work are **High**.
>
> To change a pattern's severity, see [Correct severity and categories](#correct-severity-and-categories).

> [accordion] Categories
>
> The **Categories** property describes the kind of finding. The default categories are:
>
> * **Safety and privacy:** Exposed credentials, secrets, or user data, bypassed access controls, or another security or privacy risk, even before harm occurs.
> * **Capability gap:** Users receive a refusal or workaround for a capability the product lacks or only an administrator or rollout can enable. Setup users can complete themselves, such as connecting an integration or granting permission, doesn't count.
> * **Model call failure:** An LLM request errors, times out, is rejected, or returns nothing usable.
> * **Tool failure:** A tool, command, query, or API the agent calls errors, times out, is rejected, or returns no usable result.
> * **Application failure:** The work ends without a usable result, and the failing step is the application's own code, runtime, or client rather than a model or tool call.
> * **Wrong output:** The work completes, but the answer, action, or record is wrong, unhelpful, out of scope, duplicated, or ignores instructions.
> * **Efficiency:** The work completes correctly but uses more tokens, calls, compute, or time than it needs.
> * **Observability:** Logging, tracing, cost accounting, or a scorer's or classifier's output is wrong or missing, with no effect on the result.
> * **Usage insight:** How people use the product, with no defect.
>
> To change a pattern's categories, see [Correct severity and categories](#correct-severity-and-categories).

> [accordion] Impact
>
> Impact shows how widespread a pattern is. Below its name, the report shows the affected count, its percentage, and the dates measured. Hover over the count to see the total it is compared against.
>
> The report counts affected users when at least half the measured traces log the [configured user ID](https://docs.braintrust.dev/observe/patterns/configure.md#configure-impact-measurement), otherwise sessions when the [session ID](https://docs.braintrust.dev/observe/patterns/configure.md#configure-impact-measurement) meets that threshold, otherwise traces. The list can show each unit in a separate column.
>
> Use **All traces** to measure across the project or **Similar traces** to focus on requests like the affected ones. Scope applies to counts and percentages in the chart, header, and list. Without a similar-traces filter, Braintrust uses all traces.
>
> **Measured from matching traces:** When a filter can identify the behavior, the impact chart shows the last 14 days. Use the toggle to switch between counts and percentages. The chart can lag your latest logs by up to a day.
>
> **Estimated from a sample:** When existing fields cannot reliably identify the behavior, Loop estimates its frequency from a random sample of traces or conversations. A `~` prefix marks these estimates. They have no impact chart, **Models** breakdown, or link to matching logs, and do not refresh automatically. Ask Loop for a new estimate, or [make the pattern measurable](#make-it-measurable) for ongoing monitoring.
>
> ![Patterns affected traces](https://mintcdn.com/braintrust/jHH2wbcMlkjLUfsG/images/observe/patterns-affected-traces.png?fit=max\&auto=format\&n=jHH2wbcMlkjLUfsG\&q=85\&s=e00440e713ce37bcf6e6b43a996d7412)
>
> > [accordion] Why totals differ
> >
> > * **Different periods:** The chart covers the last 14 days. The header and list use a saved measurement with its own dates, which can be older for a closed pattern. For open patterns with a matching filter, measurements refresh when a rule runs or the pattern changes.
> > * **Daily versus overall counts:** A user or session counts once per chart bucket but can appear on several days. The saved measurement counts each once across its whole window. Multiple matching spans don't count the same user, session, or trace twice within a bucket.
> > * **UTC boundaries:** User and session counts use UTC days. Trace counts use UTC days, or UTC hours for short ranges.

> [accordion] Last seen
>
> **Last seen** shows when the behavior last appeared in a trace. For patterns with an impact chart, it refreshes from matching spans in the last 14 days and can be newer than the attached evidence. Otherwise, it updates only when Loop adds matching traces.

> [accordion] Summary
>
> The summary states what happens and, when Loop compares groups such as models or kinds of requests, which groups it affects. Comparisons include each group's affected count and size, such as "12/14 (85.7%) orders with several items." Use them to assess differences between groups. Explanations of the cause appear in [Sources](#sources).

> [accordion] Suggested fix
>
> The suggested fix recommends a change or investigation. After reviewing your code, Loop explains what the code should do instead and points to the file and lines when known. If the evidence is insufficient, it identifies the missing evidence and the check needed to find it.

> [accordion] Monitors
>
> Once charts that track the behavior, such as a scorer's or classifier's results, are attached to the pattern, they appear under **Monitors**. These monitor charts cover the same 14 days as the [impact chart](#affected-traces). To add one, see [Make it measurable](#make-it-measurable).

> [accordion] Models
>
> **Models** shows whether the behavior is concentrated in particular models. For each model, it compares two shares over the same 14 days as the [impact chart](#affected-traces):
>
> * **Pattern matches:** The model's share of the pattern's matching traces.
> * **All traffic:** The model's share of all traces that record a model.
>
> A model whose **Pattern matches** share is well above its **All traffic** share appears in the pattern more often than its usage explains.
>
> **Models** appears for patterns with a matching filter when at least one matching trace records a model in `metadata.model`.

> [accordion] Evidence
>
> Click an example trace to open it beside the pattern. Select **Thread** () to read the conversation or **Trace** () to inspect its spans.
>
> With a [session ID field](https://docs.braintrust.dev/observe/patterns/configure.md#configure-impact-measurement) configured, examples open with other traces in their session and evidence highlighted across turns. Otherwise, each example opens as a single trace.
>
> In Thread view, evidence is highlighted. Click the orange  **Show reason** button beside a highlight to read Loop's explanation of the behavior and its effect on the task. Evidence can show a problem, a successful retry, or a useful contrast.
>
> An explanation can include a frequency estimate for its observation window: the share of similar spans or traces affected when Loop measured the total, or a count otherwise. These saved estimates are separate from the [impact chart](#affected-traces) and can cover a different period. For navigation details, see [Use the new thread view](https://docs.braintrust.dev/observe/examine-traces.md#use-the-new-thread-view).
>
> ![Patterns examples](https://mintcdn.com/braintrust/jHH2wbcMlkjLUfsG/images/observe/patterns-examples.png?fit=max\&auto=format\&n=jHH2wbcMlkjLUfsG\&q=85\&s=bbb3392e2b6f02a001f84a39c8123c43)

> [accordion] Sources
>
> **Sources** cites code in a [connected repository](https://docs.braintrust.dev/loop/github.md) that explains the finding or shows where to fix it. Each source identifies a file, available line numbers, and the repository revision. Loop explains the code's connection to the finding and distinguishes confirmed behavior from possible causes. A pattern can have sources without example traces.
>
> For GitHub repositories, follow the file link to inspect the code at the cited commit. Sources from other hosts show the path and revision without links.
>
> ![Patterns sources](https://mintcdn.com/braintrust/Mpah3XDvMklMcbs-/images/observe/patterns-sources.png?fit=max\&auto=format\&n=Mpah3XDvMklMcbs-\&q=85\&s=45b56126f7dd55904de3f7114e263963)

> [accordion] Activity
>
> **Activity**, at the bottom of the pattern, shows when the pattern was created, property changes and ratings with their reasons, and comments. Mention teammates in a comment to notify them, or reply in a comment's thread. To share a comment, click **Copy link to comment** in its menu. Commenting requires the project's [`Update` permission](https://docs.braintrust.dev/admin/access-control#object-permissions), and deleting a comment requires `Delete`.
>
> You can ask Loop or an assistant connected to the [Braintrust MCP server](https://docs.braintrust.dev/integrations/developer-tools/mcp.md#manage-patterns) to post an investigation update or link.

## Act on a pattern

Choose an action based on whether you want to investigate, track, fix, or share the finding.

### Keep investigating

Loop can investigate likely causes and identify evidence needed to confirm them.

With the pattern open, click  **Loop agent** at the bottom right of the page, then ask:

```text wrap theme={null}
Investigate this pattern. Compare affected traces with similar successful traces, identify likely causes, and explain what evidence would confirm or rule them out.
```

The pattern is attached to the chat automatically. Opening another pattern while the chat is open adds it to the same conversation.

### Make it measurable

A scorer or classifier tracks the behavior continuously at lower cost than repeated investigation.

With the pattern open, click  **Loop agent** at the bottom right of the page, then ask:

```text wrap theme={null}
Create and enable a scorer or classifier for this behavior, then attach a monitor chart to this pattern. Leave historical traces unscored.
```

Decide separately whether to backfill historical traces.

Loop can also create a [facet](https://docs.braintrust.dev/observe/topics/custom-facets.md) so [Topics](https://docs.braintrust.dev/observe/topics.md) classifies the behavior across all your traces.

> [!WARNING]
>
> Objects a scheduled run creates are not linked back to the pattern. If a pattern's monitor chart measures a scorer or facet that a run created, deleting that scorer or facet stops new data from reaching the chart.

### Fix it with Loop

With a [connected repository](https://docs.braintrust.dev/loop/github.md) and [write access](https://docs.braintrust.dev/loop/github.md#give-loop-write-access), Loop can fix the cause in your code and open a pull request.

With the pattern open, click  **Loop agent** at the bottom right of the page, then ask:

```text wrap theme={null}
Fix the cause of this pattern in the connected repository. Add a regression test and open a pull request that links to the supporting traces.
```

Review and merge the pull request in GitHub. Loop can't read pull request comments, so paste review feedback into the thread and ask Loop to push the changes to the pull request's branch.

### Hand it to a coding agent

Click  **Copy for agent** to copy a Markdown brief with the finding, evidence, available impact measurements and source references, and commands to retrieve the full traces. Paste it into your coding agent to start work on a fix. The agent needs the [`bt` CLI](https://docs.braintrust.dev/reference/cli/quickstart) installed and signed in to run those commands.

![Pattern report with the Copy for agent button highlighted](https://mintcdn.com/braintrust/ivt5D4GbvzJJFPHj/images/observe/pattern-copy-for-agent.png?fit=max\&auto=format\&n=ivt5D4GbvzJJFPHj\&q=85\&s=79cb018d535be47db83969d26d632d05)

### Share it

When the pattern is open in Loop's workspace, click  **Copy link** in its header. The link only works for people who already have project access.

## Edit properties

Anyone who can read the project's logs can view patterns. Editing a pattern's properties requires the project's [`Update` permission](https://docs.braintrust.dev/admin/access-control#object-permissions), granted to **Owners** and **Engineers** [permission groups](https://docs.braintrust.dev/admin/access-control.md#built-in-permission-groups) by default. Without it, the **Properties** panel is read-only and shows only properties that have a value. Each change can include a reason. Changes and their reasons appear in [Activity](#activity), and Loop reads your reasons when it evaluates related findings.

### Correct severity and categories

1. In the **Properties** panel, click **Severity** or **Categories**.
2. Choose a value. For **Categories**, select or clear one or more categories in the searchable list, then close the list.
3. Optionally explain the change in the reason box that appears, then click the arrow. To skip the reason, close the box.

You can select several categories. A category removed from the rubric stays listed on patterns that already have it, so you can remove it yourself.

Severity and category changes are saved as corrections. Pattern rules, and other Loop runs that a person didn't start, keep your corrections. When you or a teammate asks Loop in a conversation to change a corrected severity or category, Loop makes the change and saves the new value as a correction.

### Rate a pattern

Ratings tell Loop whether a finding was useful and guide future investigations. You can rate open or closed patterns with the project's [`Update` permission](https://docs.braintrust.dev/admin/access-control#object-permissions).

Under **Is this pattern useful?** at the bottom of an unrated pattern:

1. Click **Yes** if the finding was worth acting on, or **No** if it's noise, transient, or unimportant. The rating saves immediately.
2. Add an optional comment and click **Submit**, or click **Skip**.

The rating appears in [Activity](#activity) as **Useful** or **Not useful**, with your comment. Rating a pattern doesn't change its status. To change or clear a saved rating, use `update_pattern` on the [Braintrust MCP server](https://docs.braintrust.dev/integrations/developer-tools/mcp.md#manage-patterns).

> [accordion] How Loop uses ratings and reasons
>
> Loop uses your rating and reasons when evaluating related findings, whether you rate the pattern before or after closing it:
>
> * **Not useful** tells Loop not to automatically reopen or recreate a matching pattern while your reason still applies.
> * **Useful**, or no rating, allows Loop to reopen the existing pattern if the behavior recurs, unless your reason says otherwise.
> * Your reason defines the scope of your judgment. If you dismiss synthetic staging traffic but new evidence comes from production, Loop evaluates that evidence independently. Be specific about what you want to dismiss and any conditions for reopening.

### Close or reopen

Close a pattern when you've acted on it or decided it isn't useful.

To close a pattern:

1. In the **Properties** panel, set **Status** to **Closed**.
2. Optionally explain the change in the reason box that appears.

The pattern leaves the default table view, and its status and reason appear in [Activity](#activity). If you haven't [rated the pattern](#rate-a-pattern), rate it too, so Loop knows whether the finding was useful.

> [!WARNING]
>
> A closed pattern reflects a judgment about the evidence. Closing it does not verify a fix. Use a scorer or monitor chart for that.

To reopen a closed pattern, set **Status** to **Open** in the **Properties** panel. This requires the project's [`Update` permission](https://docs.braintrust.dev/admin/access-control#object-permissions).

> [accordion] When Loop closes patterns automatically
>
> Scheduled runs also review active patterns. Loop treats a pattern as active only if the behavior occurred in the previous two weekdays, not counting weekends:
>
> * **Closing active patterns:** Loop checks the pattern's filter and searches for similar traces in case the filter is too narrow. If the behavior hasn't occurred in that window, Loop closes the pattern.
> * **New and reopened patterns:** Loop saves a new finding as active, or reopens a closed pattern, only when the behavior occurred in that window.
> * **When Loop can't confirm:** Missing data or a failed query isn't evidence that the behavior stopped. Loop keeps the pattern's status and last counts and reports which check it couldn't finish.

> [accordion] How Loop handles duplicate patterns
>
> When several patterns describe the same finding, Loop chooses one as the canonical pattern, merges useful evidence into it, and closes the others as duplicates. Each duplicate retains its history. Follow the link below its **Duplicate** status to the canonical pattern. The canonical pattern links back to its duplicates under **Duplicates** in the properties sidebar.
>
> > [!WARNING]
> >
> > Closing a pattern as a duplicate removes it from the default table view. Follow the link in its **Properties** panel to continue working with the canonical pattern. To undo the closure, set the duplicate's **Status** to **Open** or **Closed**, which removes its link to the canonical pattern. You can also [undo it through MCP](https://docs.braintrust.dev/integrations/developer-tools/mcp.md#manage-patterns).
>
> If the behavior recurs, Loop updates or reactivates the canonical pattern instead of reopening the duplicate.

## Next steps

* [Write scorers](https://docs.braintrust.dev/evaluate/write-scorers.md) to measure a behavior a pattern surfaced.
* [Build datasets](https://docs.braintrust.dev/annotate/datasets/create.md) from the traces behind a pattern, then [run an experiment](https://docs.braintrust.dev/evaluate/run-evaluations.md) to test a fix.
* [Create custom facets](https://docs.braintrust.dev/observe/topics/custom-facets.md) to track the behavior across every trace.
* [Analyze a trace with Loop](https://docs.braintrust.dev/loop/capabilities.md#analyze-traces) to dig into a single piece of evidence.
* [Configure pattern discovery](https://docs.braintrust.dev/observe/patterns/configure.md) to tune rules and customize how Loop rates and labels patterns.


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