# CORI Live Event Transport Mock / Session Wiring Foundation

## Purpose
This document defines the first working mock runtime layer that sits between the normalized live event contract and future provider transport.

This phase is intentionally mock-only.
It proves session flow, transcript fragment handling, fact promotion, advice refresh timing, and save-boundary behavior before real provider streaming is added.

## What this build adds

### 1. Mock session lifecycle
The mock runtime now supports a simple session path:
- ready
- dialing
- connected
- ended

This gives CORI a session frame that full-page and popup surfaces can both understand.

### 2. Normalized event feed
The mock runtime emits a controlled event feed such as:
- session ready
- call dialing
- call connected
- listening started
- transcript partial
- fact upserted
- advice refreshed
- save ready changed
- session ended

The UI should read these normalized events rather than provider-specific payloads.

### 3. Transcript fragment simulation
The mock runtime can generate short transcript-style fragments for:
- lane
- offer
- objection
- callback timing

These fragments are not meant to be stored as a transcript wall.
They exist to prove that the event contract can move useful facts through the interface.

### 4. Partial fact promotion and replacement
The mock runtime shows how facts can move through stronger states.
Examples:
- lane becomes stable
- offer stays tentative until strengthened
- callback becomes confirmed
- objection can trigger advice refresh
- a counter can replace an earlier offer posture

### 5. Advice refresh timing
Advice should refresh only when a stronger fact changes the dispatcher’s next move.
The runtime should not thrash on every fragment.

### 6. Shared runtime feed
Both full-page and popup CORI surfaces should consume one shared mock feed shape:
- session summary
- session status
- normalized event feed
- transcript fragments
- fact promotion list
- save boundary

## Why this phase comes before launcher expansion
Launcher expansion should attach to a stable session behavior.
If launchers spread first, later runtime changes create more rework and more UI drift.

## Still not included
This phase does not yet add:
- real provider streaming
- browser microphone capture
- permanent transcript storage
- transcript wall UI
- broad launcher rollout across more truck/load surfaces
