# Local RCA engine (4 layers)

IntelFactor closes the loop locally:

defect → root cause → corrective action → verified outcome

### Layer 1: Defect pattern accumulator

* Stores inspection events locally (rolling window).
* Detects anomaly spikes per defect type, per station.

### Layer 2: Process parameter correlator

* Compares anomalies against process parameters (targets, ranges, drift).
* Outputs explainable correlations.

### Layer 3: On-device explanation model

* Converts structured context into RCA hypotheses.
* Runs on anomaly triggers, not per-frame.

### Layer 4: Closed-loop action recommender

* Produces SOP-linked corrective actions.
* Captures operator feedback.
* Produces verified training triples.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://intelfactor.gitbook.io/doc/home/closed-loop-rca/local-rca-engine-4-layers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
