Files
rag-technical-docs-assistant/docs/plans/local-s2s-adapter-progress.md
T
amirhosein mazaheri 8d348f0ba1 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.
2026-10-15 12:28:17 +03:30

44 lines
3.4 KiB
Markdown

# 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.
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 | 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 |
## Phase evidence template
- Phase/status and prerequisite evidence:
- Reviewed diff/implementation commit:
- Preserved operational and rollback identities:
- Pinned upstream and patch revision:
- Candidate effective profile without credentials:
- Exact commands, counts and results:
- Actual / simulated / unverified observations:
- Visible demo and outcome:
- Bounded paid-call authorization/usage when applicable:
- Decisions, blockers, not-run checks and risks:
- Acceptance verdict / next allowed phase:
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.