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

# Rule Filtering

> A guide to using Rule Filtering to isolate and analyze the impact of individual policy rules on your test data.

Rule Filtering is a powerful tool for debugging and refining your policies. It allows you to trace a specific outcome in your test results directly back to the individual rule that caused it.

By clicking on the filter button to the left of your rules within a label, you can instantly filter your test data to see only the rows that were affected by that specific assertion. This provides a granular view that is essential for understanding complex policy logic.

## Why Use Assertion Filtering?

This feature is invaluable for several common tasks:

* **Debugging Complex Policies:** When a label is applied, it can sometimes be difficult to know which of its many rules was the trigger. Assertion Filtering lets you pinpoint the exact rule responsible for a result.
* **Validating New Rules:** After adding a new rule to a label, you can click on it to immediately see if it's capturing the correct data without affecting unintended rows.
* **Refining Rule Logic:** If a rule seems too broad or too narrow, you can filter by it to see a sample of the data it's matching. This helps you fine-tune the logic with confidence.
* **Auditing and Transparency:** Quickly answer questions like "Why was this specific row flagged?" by showing the exact rule that triggered the label.

## How to Filter by Assertion

Follow these steps to filter your test results by a specific rule.

1. Navigate to the **Test** tab of the policy you want to analyze.
2. In the policy definition panel on the left, expand the label that contains the rule you wish to investigate.
3. Simply **click** on the specific rule (assertion) you want to filter by.
4. When the test results are filtered by an assertion, you are seeing a subset of your data where that specific rule evaluated to `true`.

The test results view will automatically update, displaying only the rows that were directly affected by the selected rule.

<img src="https://mintcdn.com/clavataai/QkldYDcwOd9i1E4D/public/gifs/Assertion-filtering-10-8-2025.gif?s=626fc199ba8e8294e1af1e151895961c" alt="Assertion Filtering 10 8 2025 Gi" width="2454" height="1102" data-path="public/gifs/Assertion-filtering-10-8-2025.gif" />

## We'd Love to Hear From You

Whether you have a suggestion, feedback, or a bug to report, here are the best ways to get in touch:

* **In the App:** Use the **Feedback button** for direct suggestions.
* **On Slack:** Reach out to the team in your shared channel.
* **With your AM:** Talk to your dedicated account manager.
* **Via Email:** Send a message to [**support@moonbounce.io**](mailto:support@moonbounce.io).
* **Security, availability, or other incidents:** Use the in-app **Feedback button** or email [**support@moonbounce.io**](mailto:support@moonbounce.io). See [Customer Feedback](/feedback/customer_feedback) for what to include.
