# Phase 10.6.5.1 — Production Analytics Purity & QA Activity Exclusion Hotfix

## Purpose
Keep all Oracle audit evidence intact while preventing automated QA activity from appearing as real management activity in the Executive Review Dashboard.

## Default behavior
The dashboard opens in **Production only** mode. Automated QA actors are excluded from:

- Active reviewers
- Audit activity KPIs
- 7-day activity and velocity trend
- Review activity over time
- Most reviewed actions
- Reviewer activity
- Recent review activity

Current action status, completion, unresolved queue, severity matrix, and risk state still come from the live current worklist.

## Technical evidence mode
Use:

`index.php?page=action-review-dashboard&lang=en&days=30&include_qa=1`

This view includes QA audit activity for technical verification. It does not modify or delete data.

## QA actor recognition
Built-in automated actors include identities such as:

- `phase10_6_3_qa`
- `phase10_6_4_qa`
- `phase10_6_4_qa_restore`
- generic `qa_*` identities

Additional actors may be configured in `.env`:

`EXEC_ACTION_REVIEW_QA_ACTORS=nightly_qa,robot_*`

## Oracle safety
No SQL migration is required. No audit row is deleted or updated. Filtering happens only in the read-only analytics layer after audit rows are read.

## QA
Open:

`public/executive-review-dashboard-purity-qa.php?hospital=njch&days=30`

The QA gate compares production-only analytics with the technical full-evidence view and proves that raw audit counts remain unchanged.
