feat(voice): implement local S2S retained history and provider selection
Add pinned CPU engine dependencies, retained interrupted-response history, provider admission, offline evaluation and isolated browser tooling. Record Phase 2 acceptance and Phase 3/4 preparation, bounded paid-test accounting and interruption incident findings. Human interruption acceptance, paired OpenAI evaluation and rollback remain pending.
This commit is contained in:
@@ -1,11 +1,74 @@
|
||||
# Local S2S Phase 2 implementation report
|
||||
|
||||
Current verdict (2026-10-16): **Phase 2 accepted for isolated development-only
|
||||
normal Persian browser voice**. [Final evidence](phase-02-accepted-20261016.md)
|
||||
and [machine-readable results](phase-02-accepted-20261016.json):
|
||||
125 local + 258 preservation + 63 PostgreSQL tests passed; actual browser response
|
||||
fully played and closed normally. Conservative cost exposure $0.420504399, below
|
||||
the same $1 cap; final invoice details remain unresolved with full reserves held.
|
||||
Paid engine stopped normally. No buffer/speed change or operational promotion.
|
||||
Phase 3/4 remain not_started. Earlier checkpoints below are historical and are
|
||||
superseded where they describe open Phase 2 gates.
|
||||
|
||||
Current incident follow-up: [first browser-turn initialization stall repaired](phase-02-browser-first-turn-repair-20261016.md).
|
||||
User session failed after transcription. Native snapshots identified first-reply
|
||||
Lingua model preload; same cache now warms before listener readiness. Three full
|
||||
proxy/API/native continuous-input fixture sessions and98 focused tests pass.
|
||||
Fixed image a51167d1952a; no buffer/speed/timeout change. Repair handoff carries all
|
||||
prior attempts; cumulative reservation ceiling $0.995118333 of the same$1. Human
|
||||
browser acceptance remains open; earlier ready checkpoints below are historical.
|
||||
|
||||
Current browser handoff (2026-10-16): [isolated browser is ready](phase-02-browser-ready-20261016.md).
|
||||
Angular/API/login and actual proxied WebSocket session_ready/normal close passed;
|
||||
no inference in connection check. Three real startup probes passed. Human microphone/
|
||||
reply/transcript acceptance remains open. Same $1 authorization; reconciled prior
|
||||
exposure $0.689118333, cumulative ceiling $0.901118333, startup reserve $0.748118333.
|
||||
Private login file and 30-minute engine watchdog documented. No tuning/operational change.
|
||||
|
||||
Latest actual run (2026-10-16): [real native Persian round trip passed](phase-02-real-native-20261016.md).
|
||||
Six actual requests succeeded, 2.528s reply audio, successful terminal/normal
|
||||
release and clean shutdown. Cumulative reservation is $0.998 of the same $1;
|
||||
final billing remains unresolved, so no further paid request. User accepted native output; browser/microphone remains open; earlier memory blocker below is historical.
|
||||
No operational switch or audio tuning change.
|
||||
|
||||
**Current 2026-10-16 checkpoint:** [image built and basic native/SDK checks passed](phase-02-image-build-20261016.md),
|
||||
plus **423 provider-free regressions passed**. Earlier unbuilt/disk-blocked
|
||||
statements below are historical. Phase 2 remains in_progress: real Linux assets,
|
||||
complete engine/signal conformance and actual components/Persian browser are open.
|
||||
|
||||
Date: 2026-10-15. Status: **in_progress; offline candidate delivered, build/live acceptance pending**.
|
||||
Phase 2 is **not accepted**. Phase 1 live acceptance remains open. No operational
|
||||
provider switch, paid request, dependency/model download or engine build was performed.
|
||||
|
||||
## Delivered
|
||||
|
||||
Latest image-build attempt (2026-10-15): [disk-guard result](phase-02-image-build.md)
|
||||
records actual build from reviewed source/base/lock, 6.64 MB context and binary-only
|
||||
dependency installation. The root/Docker disk ran below the 384 MiB guard during
|
||||
installation, so the owned build was cancelled (exit 130). No final image exists.
|
||||
Moving only this task's resolver cache to tmpfs freed space; after cancellation
|
||||
root returned to about 1.8 GiB free. Existing services/voice tuning preserved;
|
||||
no pruning, model download or provider call. More Docker-disk space is required
|
||||
before retry; Phase 2 remains in_progress, not accepted.
|
||||
|
||||
Latest Linux dependency checkpoint (2026-10-15): [reviewed hash lock and dry-run
|
||||
report](phase-02-dependency-lock.md), [machine evidence](phase-02-dependency-lock.json).
|
||||
134 packages resolved for Python 3.11/Linux x86_64, exact matching CPU torch/audio
|
||||
2.11.0 wheels, verified trixie base manifest, wheel-only hash-required dry run
|
||||
passed. No library installed, model downloaded, image built or voice setting
|
||||
changed. Earlier missing-lock/base statements are historical; real native
|
||||
imports, engine conformance and Phase 2 live acceptance remain open.
|
||||
|
||||
Latest Linux source-only checkpoint (2026-10-15): a clean, detached, depth-one
|
||||
checkout of `619e3fe4f71d1c6f35c15870d588a3638de34722` now exists at
|
||||
`tmp/local-s2s-upstream-619e3fe4` in this workspace. All 17 audited file SHA-256
|
||||
and Git blob identities match `upstream-pin.json`; `git fsck --no-reflogs` passed.
|
||||
See [source evidence](phase-02-source-checkout.json). This supersedes earlier
|
||||
statements that the full pin is absent locally. No source executed, dependencies
|
||||
installed, models downloaded, submodules initialized, engine built or provider
|
||||
calls made during this step. Reviewed Linux lock/build/asset/conformance/live
|
||||
gates remain open; Phase 2 stays in_progress.
|
||||
|
||||
- `local_s2s` configuration, factory and adapter alongside OpenAI/Gemini. It is
|
||||
off by default and requires explicit development/transport-test opt-in.
|
||||
- Immutable profile containing upstream/extension/contract revisions, component
|
||||
|
||||
Reference in New Issue
Block a user