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:
11linear11
2026-10-16 17:09:27 -04:00
parent 8d348f0ba1
commit a94b8cd3ea
111 changed files with 14764 additions and 58 deletions
+127
View File
@@ -0,0 +1,127 @@
{
"date": "2026-10-16",
"phase": 4,
"status": "offline_prepared_live_pending",
"user_authorized_frontend_provider_selection": true,
"phase3_live_acceptance": "pending",
"api_image": "sha256:51d4b79825bc3b29abba692093ee879360def9530676755acfb27d63884424ad",
"engine_image": "sha256:02518bed03e909ce9b8324ce7772902fb427ce55a6f0cef31ec0d6282f1506bc",
"tests": {
"backend_suite": {
"passed": 207,
"seconds": 34.66,
"log_sha256": "77a23fdf66ec10f5fc1edef05e5919cc200b044ed4d7b3fbd180be11122fa8b7"
},
"final_targeted_faults_and_scorecard": {
"passed": 13,
"seconds": 1.15,
"log_sha256": "a58198245cff5a0522ce6c41b6ecda866f30ac718e51595dd875db2f166453e4"
},
"postgres": {
"passed": 14,
"seconds": 34.62,
"log_sha256": "3084de922b32e7a577dcf0785624544bbc9b6fa31fd672a8c4605d6cc1bd20c1"
}
},
"angular": {
"voice_service_tests_passed": 46,
"node_version": "22.23.1",
"initial_node20_jsdom_incompatibility": "failed before test collection; rerun with installed Node22 passed",
"development_build": "passed",
"build_seconds": 11.789,
"test_log_sha256": "bbce0baa9d27954d523f1f6d0cda33b031f850cb4c7289a93c2fa74a1d85585e",
"build_log_sha256": "1a60a97f77ce1dd5edb07ce4fdac6746775e027457a27bfd99f6e6981844dab7"
},
"candidate_image_smoke": {
"openapi": "passed",
"selection": "passed",
"unmeasured_scorecard": "blocked_as_required",
"provider_calls": 0
},
"compose_validation": "passed with fake private OpenAI profile; no containers started",
"unmeasured_scorecard": {
"status": "not_accepted",
"providers": {
"openai": {
"samples": 0,
"successful_tasks": 0,
"p95_first_audible_ms": null,
"p95_tool_ms": null,
"p95_interruption_stop_ms": null,
"total_cost_usd": null,
"cost_per_success_usd": null
},
"local_s2s": {
"samples": 0,
"successful_tasks": 0,
"p95_first_audible_ms": null,
"p95_tool_ms": null,
"p95_interruption_stop_ms": null,
"total_cost_usd": null,
"cost_per_success_usd": null
}
},
"blockers": [
"sample_threshold_not_set",
"openai:insufficient_samples",
"openai:billing_incomplete",
"local_s2s:insufficient_samples",
"local_s2s:billing_incomplete",
"thresholds_accepted:pending",
"real_provider_observations:pending",
"human_quality_accepted:pending",
"rollback_verified:pending",
"profile_identity_missing"
],
"thresholds": {
"latency_delta_ms": 1000,
"cost_ratio": ".70",
"minimum_samples_per_provider": null
},
"percentile_method": "nearest-rank",
"cost_method": "sum_all_supplied_charges_including_startup_failure_abandoned",
"authorization_to_switch": false
},
"new_paid_calls": 0,
"operational_switch": false,
"rollback_actual": "not_run",
"user_env_changed": false,
"audio_engine_and_worklet_changed": false,
"phase4_override_launched": false,
"source_sha256": {
"app/api/v1/live.py": "4a14099f3fb7c7ad7683dc2a3f933c7658fcce8277e71b94cc7baa365a9cd16e",
"app/api/v1/knowledge.py": "5439f08f1f63d74f8ac19ce19546382758763b9399b7da9e007e67f2948f7a6d",
"app/modules/voice/configuration.py": "3c720f73b81469e375fccf090b92e39aedb3d62a6f56f1bcbedf595d0c139e64",
"app/modules/voice/lifecycle.py": "4735e0a7fb9931383ce071ff4fab06b43bab23b524ecc253d1f399524bda2f6e",
"services/local_s2s/evaluation.py": "989a81a7ca6604dec000cd4d0d112ce68738952636cbd17105242bf3c402d241",
"tests/unit/test_voice_provider_choice.py": "c9ff258e1dd0710fc81427409bbc382614bd7ac96c6a8e1e82f158d66e00322d",
"tests/unit/test_local_s2s_evaluation.py": "f9a588d513dd575534ea99a0ebc99371293b2e63b843495d90bcbcfb8b0fc0de",
"tests/integration/test_voice_provider_choice.py": "5c4eb0d4c89b70d5f20b62102ceb229775a3f0243daaacd38a5b7e42130a9228"
},
"frontend_source_sha256": {
"src/app/pages/home/home.page.ts": "6ad0f1c6ea321cda0b88c40d6f13842f364933a7e82d210be0abe591a1ceb884",
"src/app/pages/home/home.page.html": "87228f9142a46f0dbdfcef47b2cb526b27d5135d979556be2d3109e64d92d433",
"src/app/pages/home/home.page.css": "32a87443d7c33a90be89f44690655af139e33b39cb9c4edb71eb16a0b84297db",
"src/app/services/voice-stream/voice-api.service.ts": "b5b0c41f7fce863680d16a0f36af86d68ca08bdcb5ae52759b53240dcc4257a1",
"src/app/services/voice-stream/voice-stream.service.ts": "d8db234b68038544bf6dea73133fd2575f3fa90af8524030ccd4c5c5c1554149",
"src/app/services/voice-stream/voice-stream.service.spec.ts": "54f796ef4297b1d7c7da71a57912d4014ab0e673c952fe5ce8f8414fd5caee73"
},
"not_run": [
"Real microphone/browser provider switch",
"Phase3 real barge-in/repeat/RAG/factual acceptance",
"Paired Persian quality/latency/cost and complete live fault campaign",
"Actual operational switch and restoration without rebuild"
],
"thresholds": {
"status": "provisional_not_accepted",
"minimum_samples": "unset",
"latency_delta_ms": 1000,
"cost_ratio": ".70"
},
"final_checks": [
"backend git diff --check passed",
"frontend git diff --check passed",
"disposable test database containers removed",
"no new paid inference or operational deployment"
]
}