Dispatch Spot v242
Summary
- Added controlled live browser token consumption and dialer session handshake staging for CORI’s Quotes.
- Kept the flow gated by Twilio readiness, target-phone presence, and call-consent posture.
- Extended the quote workspace so operators can see when the dialer is truly ready to move from token issuance into controlled live session setup.
What changed
- Live dialer session handshake backend route added
- Added
app/api/voice/twilio/live-session/route.ts
- The new route consumes a live browser token through the existing readiness contract, checks for a real phone target, checks consent posture, and returns clear blocked reasons.
- Controlled token-consumption session contract added
- The response now surfaces session status, token consumption status, handshake status, dialer feedback, target phone, identity, token preview, expiry time, and region.
- CORI’s Quotes live handshake section added
- Updated
app/(dashboard)/cori/quotes/page.tsx
- Added a new section named
Controlled browser token consumption and live dialer session handshake track.
- Dialer follow-through continuity added
- When the handshake comes back ready, the page now moves the browser dialer into connected posture inside the same workspace.
- Canonical documentation updated
- Updated
CHANGELOG.md
- Added
dispatchspot_next_phase_handoff_v242.md and dispatchspot_next_phase_handoff_v242.html
What's Visible
- Below the mock activation section, you will now see a new section named
Controlled browser token consumption and live dialer session handshake track.
- At the top-right of that section, you will now see two buttons:
Start live handshake and Reset.
- Inside that section, you will now see cards for session status, token consumption, handshake status, and dialer feedback.
- In the result block, you will now see target phone, consent state, transcript-assist state, identity, token preview, expiry time, region, and a plain-language readiness message.
- After a successful live handshake, the browser dialer area lower on the page will move into connected posture.
Important note
- There are no Prisma schema changes in v242.
- This build does not claim that a real provider-side Twilio call is already connected. It stages controlled live token consumption and handshake readiness first.
- Live success still depends on valid Twilio env vars and workspace/provider posture on the deployed server.