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

# Fix Verification

> After applying a fix, Pastures AI can monitor the cluster and verify the issue is resolved.

After the AI suggests a fix, a **"Watch and verify this fix"** button appears below the fix commands. Clicking it tells Pastures to monitor the cluster for changes and report whether the fix was successful.

## Verification flow

<Steps>
  <Step title="AI suggests a fix">
    The diagnosis includes fix commands and a root cause analysis.
  </Step>

  <Step title="User clicks 'Watch and verify this fix'">
    Pastures begins monitoring the cluster for relevant changes.
  </Step>

  <Step title="Monitoring indicator">
    A spinning indicator appears: "Monitoring cluster for changes..."
  </Step>

  <Step title="Verification result">
    After detecting changes (or a timeout), a result is displayed with the updated status.
  </Step>
</Steps>

## Example output

After verifying an etcd fix:

```
✓ Issue resolved — etcd cluster now has 3 members.
  Health score improved from 62% to 94%.
```

The verification result is **contextual** — the text reflects the original query and the specific metrics that changed.

## Current implementation

<Tabs>
  <Tab title="Demo mode">
    In demo mode, fix verification is simulated:

    1. A spinning indicator shows for 3 seconds
    2. A success message appears with contextual details
    3. The result text varies based on the original query (e.g., etcd queries show member count, Longhorn queries show replica status)

    This provides a realistic preview of the verification experience.
  </Tab>

  <Tab title="Oracle (production)">
    With the Oracle backend, fix verification would poll the Engine API for actual cluster status updates. The Engine monitors the relevant resources and reports back when the state changes or a timeout occurs.

    <Info>
      Full production verification via the Engine is planned but not yet implemented. Currently, all modes use the demo simulation.
    </Info>
  </Tab>
</Tabs>

## When verification appears

The "Watch and verify this fix" button is shown only when the AI response includes actionable fix commands (`fix_commands` in the diagnosis payload). It does not appear for informational responses or queries that don't result in a specific remediation.
