# CORI First Controlled Provider-Backed Session Path Foundation

## Purpose
This document governs the first guarded provider-backed live session path for CORI. The goal is to prove one real provider-facing session start path without letting raw provider payloads leak into the dispatcher-facing UI.

## What this foundation adds
- one guarded provider-backed session start attempt
- mock fallback when readiness is not met
- one shared normalized runtime feed for page and popup
- visible development review cards so the first provider path can be checked during buildout

## Session start sequence
1. operator picks a contact and presses **Call**
2. CORI checks the staged live-session handshake path
3. CORI checks the staged provider-connect path
4. if provider-backed readiness passes, the shared runtime switches to the provider-backed path
5. if readiness does not pass, the runtime falls back to the mock path
6. page and popup continue to read one normalized feed either way

## Operator-facing rule
The dispatcher should still mainly see:
- target phone
- live facts
- advice
- next line to say
- call status

The dispatcher should not need to understand raw provider events.

## Runtime rule
- raw provider payloads stay behind the provider adapter boundary
- normalized events are the only events allowed into the shared runtime feed
- mock fallback must not break page/popup alignment

## Current first-path visibility
During development, the CORI page can show:
- whether the provider-backed path was accepted
- whether mock fallback was used
- what bridge text explains the current shared feed

This is temporary development visibility and should later be reduced or hidden for the average end user.
