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

# Cluster Memory

> Pastures AI retains knowledge of past issues resolved on each cluster.

Below the AI drawer header, a **context strip** shows the current cluster and a count of historically resolved issues. This signals that Pastures AI has memory of this cluster's history.

## What it looks like

The context strip appears directly below the drawer header:

```
● local · 14 past issues resolved
```

The display includes:

* **Cluster name** — derived from the current Rancher URL
* **Dot indicator** — shows the cluster context is active
* **Resolution count** — how many past issues have been resolved on this cluster

## Why it matters

Cluster memory enables Pastures AI to provide more relevant diagnostics over time. Knowing that an etcd issue was resolved three weeks ago, or that a Longhorn degradation recurred twice, gives the AI better context for its recommendations.

This is fundamentally different from a stateless AI assistant. Instead of treating every question as if it's the first time seeing the cluster, Pastures maintains a history of what has happened and what was done to fix it.

## Current implementation

<Tabs>
  <Tab title="Demo mode">
    In demo mode, the resolution count is fixed at **14** to demonstrate the feature. The cluster name is parsed from the current Rancher URL pathname.
  </Tab>

  <Tab title="Oracle (production)">
    With the Oracle backend, the Engine tracks historical resolutions per cluster. Each time a fix is applied and verified, the resolution count increments. The Engine provides this count via the cluster data API.
  </Tab>
</Tabs>

## Cluster name resolution

The cluster name displayed in the context strip is derived from the current Rancher URL. Pastures parses the pathname to extract the cluster identifier and resolves it to the cluster's display name.

<Info>
  Cluster memory is a display feature — it shows the count of past resolutions but does not currently let you browse individual historical issues. A full resolution history view is planned for a future release.
</Info>
