Connect OpenAI Realtime to the existing async StructuredTool and shared SearchToolRunner with backend-owned authority and per-turn source references. Add an operator-only smoke harness with persisted actor and provider opt-in. Enforce confirmed readiness delivery, strict function identity, canonical results and once-only continuations. Bound and pace generated audio, preserve turn correlation, and require acknowledged cleanup before response release. Handle Unicode arguments, UTF-8 replay budgets and user-ASR completion replays. Validate with 318 voice/runner/shutdown tests and 1563 provider-free tests. Three Windows symlink tests skip; 311 PostgreSQL tests are deselected. Real-provider, browser playback and PostgreSQL acceptance remain unrun.
Project documentation
The current implementation baseline is the English revision 1.3 Live document MVP delivery plan. It targets a conditional four-day demo using the existing ingestion/embedding Phases 1-4, LangChain RAG/tools, new browser uploads and direct Gemini Live. The four supplied examples are mandatory initial tests, not an upload allowlist. Full text chat/history and settings editing are deferred.
Implementation reading order
- Delivery plan: active scope, gates, Days 1-4 and MVP-01 through MVP-14.
- Implementation guide: work packages, embedding/LangChain boundary, worker and retained review/resume.
- API catalog: active/deferred routes, D06/D07 exact review and authenticated Live.
- Database design: existing foundation, proposed forward review/identity/voice changes and invariants.
- English scenarios: supplied and unseen uploads, factual FAQ, voice and failure walkthroughs.
- Architecture: dependency boundaries; broader deferred sections are context.
The plan governs scope, API/database govern contracts and the guide governs workflows. Proposed mechanisms are not implementation-completion reports.
Implementation progress is tracked in the Live document MVP TODO. Checked baseline components do not prove complete MVP acceptance.
Current code and recorded evidence
- Reference map: source inventory, agent routes and historical acceptance.
- Ingestion pipeline plan: implemented ingestion Phases 1-6 backend/validation and pending HTTP/search/Live integration.
- Setup and validation: actual commands and recorded checks; real provider/voice quality remains separate.
- Repository instructions and test guidance.
Phase 5 worker/publication/retry and retained review/resume backend services are implemented; Phase 6 operator handoff records integration acceptance and the separate opt-in provider smoke command. Scoped pgvector search/selection and Fast-Track Search Phase 2 technical correctness are implemented; Phase 2 results and calibration prerequisites record actual acceptance. Real-model cutoff calibration, LangChain, authenticated D06/D07 transport, HTTP identity/upload, browser integration, Live and UI remain pending. Real-provider compatibility and Persian extraction/semantic quality are not certified by mocks. The root README retains prototype startup instructions.
Historical context and corpus boundary
The Persian scenario report is preserved as historical revision 1.2. New MVP instructions/scenarios are English. Older text/history/settings promises do not override revision 1.3.
Project documentation stays under docs; uploaded/sample corpus stays under data. Documentation changes do not clean/rebuild any existing vector index. Preserve applied migrations, independent immutable document IDs, technical revisions and compatible embedding profiles. Do not index project specifications as organization knowledge.