# Evidence & retention policy

Every inspection outcome must be traceable to the artifacts and context that produced it.

### Evidence tiers

| Evidence tier        | Stored                                                                                 | Retention                   | Location                 |
| -------------------- | -------------------------------------------------------------------------------------- | --------------------------- | ------------------------ |
| Always (all events)  | Metadata JSON: `event_id`, timestamp, station, SKU, verdict, confidence, model version | Indefinite                  | Edge DB                  |
| FAIL + REVIEW events | Defect frame(s), boxes, detection JSON, rule results, audit log                        | 90 days local, then archive | Edge → Site object store |
| RCA events           | Causal triple: defect + cause + action + outcome + operator disposition                | Indefinite                  | Edge → Site DB           |
| Optional raw video   | Rolling ring buffer                                                                    | 7 days (overwrite)          | Edge NVMe                |

### Continuity rule

Storage pressure must never prevent defect metadata from being recorded.

### Audit rule

If an outcome is reviewed later, it must have:

* an immutable `event_id`.
* the model version and config fingerprint.
* enough evidence artifacts to justify the verdict.


---

# 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/edge-pipeline/evidence-and-retention-policy.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.
