docs(voice): freeze OpenAI Realtime Phase 0 contracts

Align voice specifications and the MVP plan with OpenAI Realtime.
Document audio admission, bounded playback, cancellation ownership,
turn correlation, cleanup barriers and calibration prerequisites.
Preserve historical checkpoints and record unrun acceptance gates.
This commit is contained in:
amirhosein mazaheri
2026-10-08 18:07:38 +03:30
parent 9dac244590
commit 6f0561c490
10 changed files with 834 additions and 48 deletions
+14 -1
View File
@@ -10,6 +10,19 @@ This checklist tracks implementation; it does not replace the governing
Checked baseline items mean existing component implementation, not end-to-end
MVP acceptance. See the reference map for executed component checks; these do not certify the full MVP.
## Realtime Phase 0 checkpoint (2026-10-08)
- [x] Authorized voice-provider change and frozen 24 kHz PCM16LE/application events documented.
- [x] Phase 0 contract preparation repaired: reference/final-report lifecycle, integer coordinates, transport bounds, sixteen walkthroughs, official retirement dates and read-only preflight examples. All remain future runtime obligations.
- [x] Remaining four Phase 0 documentation findings corrected: paced generated backlog, backend cancellation/race ownership, delayed user ASR and current committed-turn release/supersession. Runtime remains unimplemented.
- [ ] Validate provider cancellation/truncation acknowledgement and enforce documented transport/playback bounds in later runtime work.
- [ ] Make separate model/transcription replacement decisions before 2027-01-20 / 2027-02-26 retirement; no automatic migration.
- [x] Backend configuration, independent real-call opt-ins and exact next commands recorded in the [Phase 0 report](../guides/realtime-agent-phase0.md).
- [ ] Persisted compatible profile, approved bindings and measured cutoff verified; CALIBRATION_REQUIRED remains closed.
- [ ] Actual Realtime runtime/tool smoke and browser acceptance (later phases).
Use the [Realtime MVP plan](realtime-agent-mvp-plan.md) for the current backend sequence; prior WP/day estimates below are historical.
## Existing baseline to reuse
- [x] Phase 1: PostgreSQL/pgvector foundation, frozen processing/embedding profiles and trusted bootstrap.
@@ -78,7 +91,7 @@ or a four-document capacity limit.
- [x] Expose the shared search through a strict sync/async LangChain tool with lazy imports, bounded admission/deadlines, cancellation and shutdown; see [Phase 3 handoff](../guides/scoped-search-phase3.md).
- [ ] Keep persistent secrets and provider-specific objects behind server adapters.
- [ ] Add minimal owned voice conversations, Live sessions and voice tool-call persistence through forward migrations.
- [ ] Implement session reservation and authenticated backend WSS audio relay to Gemini Live.
- [ ] Implement session reservation and authenticated backend WSS audio relay to OpenAI Realtime.
- [ ] Dispatch tools with trusted backend context; model arguments cannot override identity or knowledge scope.
- [ ] Correlate current-session transcripts, tool results and displayed sources.
- [ ] Handle follow-up context, interruption/cancellation, provider failure and session termination.