# RC12 — Phase 3: Runtime Truth Bundles + Visual Patient Review

## Runtime truth bundles

PhUCKIT now loads version metadata from:

- `App/data/runtime/active-calculator-truths.ini`
- `App/data/runtime/active-finding-rules.ini`

The active bundle versions are displayed at the beginning of the patient analysis. Individual managed findings also display the exact rule ID and methodology version that generated them.

If a bundle is missing, unreadable, or lacks a version, PhUCKIT explicitly falls back to the bundled hardcoded behavior rather than silently failing.

## Owner publishing workflow

The owner workbench now provides **Publish Runtime Bundle** controls under:

- Calculator Truths
- Finding Rules

Publishing:

1. Includes active-test, approved, and released records.
2. Blocks structurally invalid records.
3. Blocks supported calculator methodologies with failed regression tests.
4. Blocks finding rules with failed rule tests.
5. Downloads the exact active INI filename expected by PhUCKIT.
6. Records publication in the repository audit log.

Replace the matching file under `App/data/runtime`, then restart PhUCKIT.

## Rollback

Control Center option 8 opens the Runtime Truth Bundle Manager.

It can:

- show the active bundle versions
- open the runtime folder
- restore the bundled RC12 calculator snapshot
- restore the bundled RC12 finding-rule snapshot
- restore both snapshots

History files are retained under:

`App/data/runtime/history`

## Visual patient report

The Patient Workspace now includes **Open Visual Report**.

The report opens locally in the browser and separates parsed information into:

### Summary cards

- age
- sex
- weight
- current SCr/trend

### Medication reconciliation table

- normalized medication
- dose
- route
- compact SIG
- backend knowledge match status

### Laboratory table

- current value
- prior value
- trend
- extraction source/provenance

### Prioritized findings

- MedRec discrepancies
- safety findings
- exact active rule versions

### Capture provenance

- capture number
- screen type
- capture time
- information added

The full medication monograph remains backend knowledge and is not dumped into the visible MedRec.

## Phase 3 boundary

RC12 loads and displays owner-controlled truth-bundle metadata and provides publishing, fallback, and rollback. Existing calculator math and finding evaluation still retain hardcoded fallback implementations. The next phase replaces those implementations incrementally with compiled runtime evaluators.
