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
@@ -0,0 +1,33 @@
# Preparation only. Requires bounded OpenAI consent before launching the API.
# Paths resolve relative to the FIRST Compose file at repository root.
services:
candidate_db:
image: sha256:7b822b0aac60967beb1ea5e576b8602c94c300a157d187f385ae3e0da199b90a
candidate_migrations:
image: sha256:8c99722cd6d7a870ac0990e1781b3d49fc38ddf8c9a58eb9ad9f17f0a97a51d3
environment:
PROVIDER: openai
VOICE_PROVIDER: openai
volumes:
- ./app:/app/app:ro
- ./migrations:/app/migrations:ro
- ./alembic.ini:/app/alembic.ini:ro
- ./pyproject.toml:/app/pyproject.toml:ro
tmpfs:
- /app/data:rw,noexec,nosuid,size=64m
candidate_api:
image: sha256:8c99722cd6d7a870ac0990e1781b3d49fc38ddf8c9a58eb9ad9f17f0a97a51d3
environment:
PROVIDER: openai
VOICE_PROVIDER: openai
OPENAI_REALTIME_API_KEY: ${OPENAI_REALTIME_API_KEY:-}
OPENAI_REALTIME_MODEL: ${OPENAI_REALTIME_MODEL:-gpt-realtime-mini}
OPENAI_REALTIME_VOICE: ${OPENAI_REALTIME_VOICE:-shimmer}
OPENAI_REALTIME_MAX_OUTPUT_TOKENS: "256"
volumes:
- ./app:/app/app:ro
- ./migrations:/app/migrations:ro
- ./alembic.ini:/app/alembic.ini:ro
- ./pyproject.toml:/app/pyproject.toml:ro
tmpfs:
- /app/data:rw,noexec,nosuid,size=64m