feat(voice): add isolated Local S2S v3 candidate and acceptance evidence
Extract the provider boundary while retaining OpenAI/Gemini contracts. Add an opt-in isolated Local S2S adapter, pinned engine extension, bounded component gateway and frozen effective configuration profiles. Enforce request token limits, zero retries, local asset validation, connection deadlines, disconnect ownership, bounded cleanup and signals. Include regression coverage, pinned source fixtures, operator guidance, asset fingerprints and guarded disposable PostgreSQL acceptance tooling. Preserve immutable fixture bytes across Git line-ending conversion. Validation recorded in the reports: - 74 repair, 107 combined and 242 preservation checks passed. - Fresh PostgreSQL local checks: 2 passed. - Expanded PostgreSQL: 57 passed, 6 documented baseline failures. - Compose configurations, staged whitespace and fixture hashes passed. Phase 1 live listening and Phase 2 complete engine/SDK/POSIX, real component audio and Persian browser acceptance remain pending. No operational switch, paid call, model download or Phase 3 implementation is included.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Local speech-to-speech adapter: phased implementation plan
|
||||
|
||||
Date: 2026-10-15. Status: **planned; implementation and live acceptance not started**.
|
||||
Date: 2026-10-15. Status: **Phase 1 offline implementation delivered; Phase 2 candidate prepared; build/live acceptance pending**.
|
||||
|
||||
## 1. Outcome and scope
|
||||
|
||||
@@ -13,7 +13,8 @@ Replacing individual stages with local models is a later independent optimizatio
|
||||
This is a plan, not authorization to switch the running application, download
|
||||
weights or perform unbounded paid evaluation. The original eight stages are consolidated into four phases without removing scope.
|
||||
Each phase has a tangible demo,
|
||||
acceptance criteria, evidence and a copy-ready English prompt. No phase has run.
|
||||
acceptance criteria, evidence and a copy-ready English prompt. Phase 1 offline
|
||||
evidence is in [its report](../evaluation/local-s2s/phase-01.md); no phase is accepted.
|
||||
|
||||
## 2. Target architecture
|
||||
|
||||
@@ -130,8 +131,9 @@ silently present it as exact heard-prefix preservation.
|
||||
| 4 | Quality/cost decision and verified deployment rollback | Old 6 + 7 |
|
||||
|
||||
Only these four phases and their four prompts are active. The original version is
|
||||
[archived](archive/local-s2s-eight-phase/README.md) for traceability. No implementation
|
||||
phase has started, so this consolidation changes planning only. Required internal
|
||||
[archived](archive/local-s2s-eight-phase/README.md) for traceability. The consolidation
|
||||
changed planning only; subsequent Phase 1 implementation is tracked in the
|
||||
progress ledger. Required internal
|
||||
checkpoints remain acceptance conditions inside each phase, not separate execution
|
||||
phases. The preserved OpenAI path remains the fallback chosen by the operator.
|
||||
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
# Local S2S adapter progress - four phases
|
||||
|
||||
Updated: 2026-10-15. The original eight stages were consolidated into four before
|
||||
implementation started. Scope and acceptance requirements are retained. Planning
|
||||
only: no implementation, model downloads, paid validation or operational switch
|
||||
was performed by this consolidation.
|
||||
implementation started. Scope and acceptance requirements are retained.
|
||||
The consolidation itself changed planning only. Phase 1/2 offline implementation
|
||||
and evaluation are now recorded below; no model downloads, paid validation or
|
||||
operational switch was performed.
|
||||
|
||||
[Plan](local-s2s-adapter-plan.md) | [Four active prompts](local-s2s-adapter-prompts/README.md)
|
||||
|
||||
| Phase | Status | Evidence | Visible demo | Blockers |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| 1 - Preserve OpenAI and introduce the provider boundary | not_started | Not run | Not demonstrated | Resolve prerequisites |
|
||||
| 2 - Add an isolated local stack and browser voice session | not_started | Not run | Not demonstrated | Resolve prerequisites |
|
||||
| 1 - Preserve OpenAI and introduce the provider boundary | offline_complete_live_pending | [Phase 1 report](../evaluation/local-s2s/phase-01.md); baseline 215 passed, final focused 242 passed; full suite has 5 existing failures (details in report) | Before/after controlled-clock replay; command in report | Changed-source real OpenAI interaction/listening pending; build lock/image digest required before Phase 2 build |
|
||||
| 2 - Add an isolated local stack and browser voice session | in_progress | [Phase 2 report](../evaluation/local-s2s/phase-02.md); v3 repair checkpoint: 74 repair regressions (including 31 prior), 107 final combined and 242 preservation checks passed; pinned warmup constant corrected to 6; acceptance preparation: 201 local assets fingerprinted and NLTK load passed; fresh DB 2 local passed, expanded 57 passed/6 earlier baseline failures; checklist and isolated source/browser overrides prepared | Playable offline test-tone WAV and simulated native audio/transcripts; real browser demo unrun | Phase 1 acceptance; clean pinned source and reviewed Linux lock/build authorization; cached base and local assets found, Linux validation pending; actual engine/SDK/POSIX conformance and authorized real Persian/browser checks |
|
||||
| 3 - Complete interruption, shared RAG and used sources | not_started | Not run | Not demonstrated | Resolve prerequisites |
|
||||
| 4 - Validate quality/cost and prove controlled switch/rollback | not_started | Not run | Not demonstrated | Resolve prerequisites |
|
||||
|
||||
@@ -31,3 +32,12 @@ was performed by this consolidation.
|
||||
States: not_started, in_progress, offline_complete_live_pending, blocked, accepted.
|
||||
Only accepted closes a mandatory gate. Inspect current deployment before each
|
||||
operational action; historical notes do not establish current provider selection.
|
||||
|
||||
|
||||
Acceptance preparation checkpoint: [concrete runbook](../evaluation/local-s2s/phase-02-acceptance-checklist.md).
|
||||
Phase 1 remains open for actual changed-source OpenAI listening and bounded consent.
|
||||
No reviewed runtime changes; the 74/107/242 baseline was not repeated. New local
|
||||
DB checks used the guarded disposable target and restored stopped state. Asset
|
||||
fingerprints/NLTK load are host evidence, not Linux engine or real audio evidence.
|
||||
No downloads/builds/paid requests/operational switch. Phase 2 remains in_progress;
|
||||
complete engine/POSIX, component audio and isolated Persian browser gates stay open.
|
||||
|
||||
Reference in New Issue
Block a user