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:
amirhosein mazaheri
2026-10-15 12:28:17 +03:30
parent 872e5f25cb
commit 8d348f0ba1
56 changed files with 8802 additions and 44 deletions
+28 -1
View File
@@ -1,5 +1,27 @@
# Phase 1 agent reference map
Local S2S acceptance preparation (2026-10-15): [exact commands and gates](evaluation/local-s2s/phase-02-acceptance-checklist.md);
201 cached asset files fingerprinted, existing NLTK load verified, fresh disposable
PostgreSQL 2 local passed / expanded 57 passed and 6 documented baseline failures.
The guarded runner is `docs/evaluation/local-s2s/acceptance-postgres.py --suite local|expanded`
with `.venv/Scripts/python`; it verifies the target and restores its stopped state.
Phase 1 listening and Phase 2 real engine/SDK/POSIX, components and browser remain open.
No runtime edits, downloads/builds/paid calls or operational switch occurred.
Local S2S Phase 2 preparation (2026-10-15): guarded [local adapter](../app/infrastructure/local_s2s.py),
[engine/build/operator guide](../services/local_s2s/README.md) and standalone
[candidate Compose](../docker-compose.local-s2s-test.yml) now exist. Runtime startup
requires dedicated test DB/storage before reconciliation. [Evidence](evaluation/local-s2s/phase-02.md)
distinguishes offline fixtures/isolated PostgreSQL from unbuilt engine and unrun
real speech/browser checks. No phase acceptance or operational switch is implied.
Local S2S Phase 1 (2026-10-15): the private [provider port](../app/modules/voice/provider.py)
now owns the adapter interface and correlated native repair target/receipt. Runtime
retains generation-stop, playback, authority and next-turn gates. OpenAI/Gemini
selection, public events and frozen profiles are unchanged; local_s2s is not enabled.
See [Phase 1 evidence and offline replay](evaluation/local-s2s/phase-01.md).
Real OpenAI preservation acceptance remains pending.
Live repair diagnostics (2026-10-12): see [numeric trace guide](guides/live-conversation-traces.md)
for the opt-in runtime timeline, frontend consumed/discarded sample accounting,
and the provider-free fixed worklet trace command. Current Linux checks use
@@ -2285,7 +2307,12 @@ The [phased plan](plans/local-s2s-adapter-plan.md),
[execution ledger](plans/local-s2s-adapter-progress.md) and
[copy-ready prompts](plans/local-s2s-adapter-prompts/README.md) describe local_s2s
alongside OpenAI/Gemini, with initially remote OpenRouter STT/LLM/TTS stages.
The four consolidated phases are not_started; the original eight-stage plan is archived. OpenAI preservation, actual context-repair
Phase 1 is offline_complete_live_pending; Phase 2 is in_progress with the v2
five-defect offline repair checkpoint (31 new, 107 combined and 242 preservation
checks passed). See the evaluation reports linked from the ledger and
`services/local_s2s/README.md` for required local asset fingerprints and commands.
Real engine/SDK, component audio and Persian browser acceptance remain pending.
The original eight-stage plan is archived. OpenAI preservation, actual context-repair
proof, shared RAG authority, isolated acceptance and rollback are hard gates.
This planning record does not weaken existing browser/OpenAI contracts or claim
implementation, live validation or deployment.