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:
@@ -1,6 +1,6 @@
|
||||
# Phase 1 agent reference map
|
||||
|
||||
Use this index to select the governing contract and inspect the real implementation before changing, testing, or reviewing behavior. Paths are relative to this file. Current MVP mapping updated 2026-10-07 for English revision 1.3. Historical component evidence below is preserved; the English revision 1.3 documentation checkpoint reran no application/provider/database tests; current repair acceptance is recorded at the end. Use the latest applicable recorded acceptance, not earlier unavailable-database reports. Dated component records below describe their historical checkpoint; absence-of-worker statements there are superseded by the current Phase 5/6 inventory and repair evidence.
|
||||
Use this index to select the governing contract and inspect the real implementation before changing, testing, or reviewing behavior. Paths are relative to this file. Current voice contract amended 2026-10-08 by Realtime Phase 0; English revision 1.3 remains the broader scope baseline. Historical component evidence below is preserved; the English revision 1.3 documentation checkpoint reran no application/provider/database tests; current repair acceptance is recorded at the end. Use the latest applicable recorded acceptance, not earlier unavailable-database reports. Dated component records below describe their historical checkpoint; absence-of-worker statements there are superseded by the current Phase 5/6 inventory and repair evidence.
|
||||
|
||||
## Authority and document resolution
|
||||
|
||||
@@ -11,7 +11,7 @@ delivery plan, implementation guide, API catalog, database design, architecture
|
||||
and `RAG-Phase1-MVP-Scenarios.md`. Revision 1.3 replaces the prior 7-10 day
|
||||
text-and-voice milestone with a conditional four-day Live document MVP:
|
||||
new browser uploads, the existing ingestion/embedding Phases 1-4, LangChain,
|
||||
direct Gemini Live and mandatory example/unseen-file acceptance.
|
||||
mandatory example/unseen-file acceptance. The scoped 2026-10-08 Phase 0 amendment selects OpenAI Realtime for voice and the conditional 3-5 day backend sequence in [Realtime MVP plan](plans/realtime-agent-mvp-plan.md); the earlier four-day sequence is historical.
|
||||
Full text chat/history and settings editing are deferred.
|
||||
|
||||
The four supplied files are test examples, not upload eligibility or final
|
||||
@@ -28,7 +28,7 @@ Section numbers and heading names below are verified against these files; no inf
|
||||
| --- | --- | --- |
|
||||
| `RAG-AI-Phase1-Delivery-Plan.md` | [Delivery plan](specifications/RAG-AI-Phase1-Delivery-Plan.md) | Scope, sequence, acceptance: 3. Included and Deferred Scope; 6. Document Lifecycle and Knowledge Changes; 8. Delivery Schedule and Checkpoints; 9. Acceptance Criteria; 10. Demonstration Script |
|
||||
| `RAG-Phase1-Implementation-Guide.md` | [Implementation guide](specifications/RAG-Phase1-Implementation-Guide.md) | Modules/workflows: 3. Modules and ports; 5. Identity and request context; 6. Document upload and ingestion; 7. Selection, revisions and revocation; 8. Deferred text turn execution; 9. Live lifecycle; 10. Internal search contract; 12. Tests and handoff; 13. Decisions still requiring confirmation |
|
||||
| `RAG-Phase1-API-Catalog.md` | [API catalog](specifications/RAG-Phase1-API-Catalog.md) | Routes/DTOs/permissions/errors/replay: 1. Transport and common conventions; 2. Endpoint inventory; 4. Documents and selected knowledge; 6. Conversations and deferred text; 7. Voice contract — direct Gemini Live; proposed application WSS; 9. Error envelope and mapping |
|
||||
| `RAG-Phase1-API-Catalog.md` | [API catalog](specifications/RAG-Phase1-API-Catalog.md) | Routes/DTOs/permissions/errors/replay: 1. Transport and common conventions; 2. Endpoint inventory; 4. Documents and selected knowledge; 6. Conversations and deferred text; 7. Voice contract — OpenAI Realtime; frozen application audio/events; 9. Error envelope and mapping |
|
||||
| `RAG-Phase1-Database-Design.md` | [Database design](specifications/RAG-Phase1-Database-Design.md) | Schema/constraints/transactions: 4. Knowledge tables; 5. Minimal voice conversation and evidence; deferred text tables; 6. Live and audit tables; 7. Transaction boundaries and invariant enforcement; 8. Migration plan; 9. Essential database validation |
|
||||
| `RAG-Phase1-MVP-Scenarios.md` | [English MVP scenarios](specifications/RAG-Phase1-MVP-Scenarios.md) | Current journeys: 2. Examples and unseen files; 3. Upload/replay; 4-5. Exact review and factual FAQ; 6. Publication; 7-10. Voice/failure/revocation; 11-12. Restart/evaluation |
|
||||
| `RAG-AI-Architecture.md` | [Architecture](specifications/RAG-AI-Architecture.md) | Context/future direction: 4. Backend Modules and Dependency Rules; 6. Search Tool Contract; 7. Dynamic Document Lifecycle; 17. Historical prototype mapping; 19. Open Decisions and Owners; 22. Current Live document MVP decisions |
|
||||
@@ -69,8 +69,8 @@ Prototype runtime prerequisites remain unverified: configured credentials, appro
|
||||
|
||||
- Required document content is available under `specifications/`; no reference-dependent workflow is currently blocked by missing content. If a linked document later disappears, mark only dependent contract work blocked, report its exact path, and continue unrelated work without inventing it.
|
||||
- Material implementation gap: prototype Chroma/local Markdown/in-memory chat does not search the uploaded-document pipeline. Worker/publication/retry are implemented; remaining work includes authenticated review transport, real-model search calibration, HTTP identity/upload, LangChain integration, native Live and UI. The Fast-Track Search Phase 1 core and operator selection/inspection CLIs now exist; see the checkpoint below. Full durable text turns/history are deferred; no component test certifies this integration.
|
||||
- Open validations: exact format/size caps, funded model profiles/vector dimension, Gemini Live WSS/tool/transcript and Persian speech proof, hosting/connectivity, account/session/retention policy, quality target and delivery date. Direct Gemini Live, LangChain, new browser uploads, existing embedding reuse and all supplied example structures are confirmed MVP direction. See guide 13 and plan 2. Do not turn proposals into recorded approvals.
|
||||
- The 2026-10-06 MVP supersedes provisional SDP/WebRTC with backend-managed direct Gemini Live WSS; see API Section 7. Current-session provider answer transcripts/sources are displayed when available; durable full voice history remains deferred. Broader features do not authorize model selectors or CTI.
|
||||
- Open validations: exact format/size caps, funded model profiles/vector dimension, OpenAI Realtime WSS/tool/transcript and Persian speech proof, hosting/connectivity, account/session/retention policy, quality target and delivery date. Direct OpenAI Realtime, LangChain, new browser uploads, existing embedding reuse and all supplied example structures are confirmed MVP direction. See guide 13 and plan 2. Do not turn proposals into recorded approvals.
|
||||
- The 2026-10-06 MVP supersedes provisional SDP/WebRTC with backend-managed direct OpenAI Realtime WSS; see API Section 7. Current-session provider answer transcripts/sources are displayed when available; durable full voice history remains deferred. Broader features do not authorize model selectors or CTI.
|
||||
- Project documentation now lives under `docs/`; sample corpus files remain under `data/documents/`. A future default corpus rebuild excludes the moved specifications and reference map. Existing vector indexes are not rebuilt or cleaned by this reorganization and may retain previously indexed project documentation. Use an approved corpus for real-provider evaluation.
|
||||
|
||||
## Skill discovery
|
||||
@@ -1627,6 +1627,25 @@ were unchanged. All three applied migrations match HEAD byte-for-byte. Local
|
||||
documentation links and new-file inspection passed. Existing intentional Markdown
|
||||
hard breaks were preserved. Temporary original-image inspection files were removed.
|
||||
|
||||
## OpenAI Realtime Phase 0 (2026-10-08)
|
||||
|
||||
Voice provider selection now follows the [Realtime MVP plan](plans/realtime-agent-mvp-plan.md); the scoped [Phase 0 report](guides/realtime-agent-phase0.md) records the frozen application contract, configuration and calibration prerequisites. Historical component/provider records above remain historical. Proof is isolated/hardcoded; canonical search and LangChain adapter are reused, not rebuilt. Runtime, real calibration and voice acceptance remain pending.
|
||||
|
||||
Phase 0 executed: 162 targeted provider-free search/calibration/LangChain tests passed, zero skips; CLI help and tracked whitespace checks passed. Persisted-profile connection probe failed (OperationalError); real providers and PostgreSQL acceptance were not run. Concurrent untracked scripts/mock_stream_server.py was preserved. See the report for remaining calibration prerequisites.
|
||||
|
||||
Phase 0 documentation repair (2026-10-08) supersedes incomplete progress/bounds preparation: API 7.1.1-7.1.4 defines reference lifecycle, floor/sample coordinates, final reports, acknowledged cleanup barrier, frame/queue caps and six walkthroughs. Report includes official model/transcription retirement and executable read-only profile/binding preflight. Earlier 162-test results were not rerun; this repair makes no provider, runtime, quality or PostgreSQL acceptance claim. Verification results are recorded in the repair report.
|
||||
|
||||
Repair checks: six CLI help commands and six PowerShell example parses passed; local original hash, Python example AST, UTF-8/local links/whitespace and proof/migration/frozen-input preservation passed. Eight documentation files changed; 168 other baseline files unchanged, with a concurrent external mock-server edit observed and preserved separately. No pytest/database/provider/runtime checks run for this documentation repair. Exact commands/results are in the Phase 0 report.
|
||||
|
||||
Remaining-four-findings Phase 0 repair (2026-10-08): API 7.1.5 separates bounded generated backlog from paced transport/playback, and 7.1.6 governs delayed user ASR, normal completion and committed current-turn release/supersession. API 7.1.2 selects backend cancellation ownership with both VAD flags false and narrowly correlated no-active-response races. Plan Phase 1/2 prompts and current guide/report/progress align; twelve walkthroughs are documented. Official-source verification is separate from unrun provider/runtime/database acceptance; exact checks are recorded in the latest Phase 0 report checkpoint. CALIBRATION_REQUIRED remains closed.
|
||||
|
||||
Latest four-findings repair checks: Git whitespace, strict UTF-8/local links, two Python AST parses and six PowerShell syntax parses passed. Eight documents changed; 169 other repair-start files are byte-identical, including the proof, existing mock-server changes, migrations and frozen calibration records. Recorded original hash verified. No CLI help commands, database/provider workflows or runtime tests were run in this repair; embedded examples were parsed only. See the latest report checkpoint for exact boundaries.
|
||||
|
||||
Playback-stall/cleanup timeout repair (2026-10-08): API 7.1.1/7.1.2/7.1.5 excludes finalizing/interrupted/retired refs from stall detection, atomically invalidates timer identities at cleanup ownership, rechecks queued callbacks, and initializes each eligible interval independently. Retirement releases credit once without changing evidence or bypassing response gates. Four additional walkthroughs (sixteen total), plan/guide/config summaries align; documentation-only checks and unchanged external gates are recorded in the latest Phase 0 report. CALIBRATION_REQUIRED remains.
|
||||
|
||||
Timeout-repair checks passed: tracked whitespace, strict UTF-8/local links, two Python AST parses, 39 JSON examples, six PowerShell syntax parses and manual timer/credit/barrier consistency. Eight documents changed; 169 other baseline files unchanged, including proof/mock scripts, applied migrations and frozen calibration inputs. Original hash verified. No database/provider/runtime workflows or tests were run; exact outcomes are in the latest report checkpoint.
|
||||
|
||||
|
||||
## OpenAI Realtime Phase 1 runtime checkpoint (2026-10-08)
|
||||
|
||||
[Operator/runtime guide](guides/realtime-agent-phase1.md) documents the private
|
||||
|
||||
Reference in New Issue
Block a user