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:
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"date": "2026-10-16",
|
||||
"status": "image_built_basic_native_sdk_and_focused_checks_passed_phase2_not_accepted",
|
||||
"image": {
|
||||
"Id": "sha256:5c80c77c54da4641318e69cdb8fff092391cd746e491fa8029280c2999ce27d1",
|
||||
"RepoTags": [
|
||||
"rag-local-s2s-candidate:phase2"
|
||||
],
|
||||
"RepoDigests": [],
|
||||
"Size": 2349831100,
|
||||
"Created": "2026-10-16T05:19:05.512978492-04:00",
|
||||
"Os": "linux",
|
||||
"Architecture": "amd64"
|
||||
},
|
||||
"build": {
|
||||
"exit_code": 0,
|
||||
"stopped_for_disk": false,
|
||||
"minimum_free_bytes": 22656344064,
|
||||
"elapsed_seconds": 775.34,
|
||||
"engine_started": false,
|
||||
"provider_calls": 0
|
||||
},
|
||||
"build_command": [
|
||||
"docker",
|
||||
"build",
|
||||
"--pull=false",
|
||||
"--progress=plain",
|
||||
"-f",
|
||||
"services/local_s2s/Dockerfile",
|
||||
"--build-arg",
|
||||
"ENGINE_BASE_IMAGE=python:3.11-slim@sha256:e529028263dbe6910a2d96f7d2b8f5266385e917fd45d286ef166977c094a51e",
|
||||
"-t",
|
||||
"rag-local-s2s-candidate:phase2",
|
||||
"."
|
||||
],
|
||||
"inputs": {
|
||||
"services/local_s2s/Dockerfile": "bff71138703f23e7379567fde47262c592a761756090fe561f13211d03347254",
|
||||
"services/local_s2s/Dockerfile.dockerignore": "2499ac41aee4813ac262ceb0029c38bf7565e88e69a579a29d22f320cabf628b",
|
||||
"services/local_s2s/requirements-linux-cpu.lock": "fdcd9ad5d520012d9a31fa6b89492f69c39454339c6766172bde2df0bf0bd19a",
|
||||
"services/local_s2s/engine.py": "497d034b3fd974c8d01db3bbc8af0df7295faa770c70d3294307d7af5a485f79",
|
||||
"services/local_s2s/extension.py": "30f1435241284e2c5233cc6f45c703e10873454c77295f8bc97ee0b76ae83430",
|
||||
"services/local_s2s/request_policy.py": "0d4d322cf596e2b690699f77a1ab509c82688c9e44795ce42e0bdd5b3e21ba9f",
|
||||
"services/local_s2s/assets.py": "a16ae47b5fe196883662333cc849d0d4c301a9339b480926a721a436cb60b8cb",
|
||||
"app/infrastructure/local_s2s.py": "2847552df0407949007c55ac1bc6a4558fae6b20a2b875af882a55bc2491f218",
|
||||
"app/modules/voice/runtime.py": "81bece5d52ef086a9a7caa961643199dfc54e2528a40a5ee20fa2b142fa03b7d",
|
||||
"app/modules/voice/configuration.py": "b3b8be699748c7bef094dc189282370e2146fee9e63385ac66143ec624f44c7e",
|
||||
"docs/evaluation/local-s2s/image-sdk-smoke.py": "a02b78ae106be607c573358d6f9103aa816fdebf358a91668a5fc4dc4d3aef37"
|
||||
},
|
||||
"prepared_manifest": {
|
||||
"upstream": "619e3fe4f71d1c6f35c15870d588a3638de34722",
|
||||
"base_image": "python:3.11-slim@sha256:e529028263dbe6910a2d96f7d2b8f5266385e917fd45d286ef166977c094a51e",
|
||||
"upstream_pyproject_sha256": "87ace2c683f2625f998b2852ae25ccceead5e55ed73fafd5d731d88662e450ff",
|
||||
"patch_revision": "rag-local-s2s-phase2-v3",
|
||||
"built": false,
|
||||
"python_version": "3.11",
|
||||
"python_platform": "x86_64-manylinux_2_40",
|
||||
"lock_sha256": "fdcd9ad5d520012d9a31fa6b89492f69c39454339c6766172bde2df0bf0bd19a",
|
||||
"resolver_version": "uv 0.9.7",
|
||||
"resolver_binary_sha256": "6583a1d002bf6165be0a38366538268e028bbcbb8802880ca09cce80d5505447"
|
||||
},
|
||||
"checks": {
|
||||
"pip_check": {
|
||||
"exit_code": 0,
|
||||
"message": "No broken requirements found."
|
||||
},
|
||||
"native_imports": {
|
||||
"exit_code": 0,
|
||||
"passed_modules": [
|
||||
"torch",
|
||||
"torchaudio",
|
||||
"onnxruntime",
|
||||
"nltk",
|
||||
"openai",
|
||||
"speech_to_speech.config",
|
||||
"speech_to_speech.configured_runtime",
|
||||
"speech_to_speech.backend_registry",
|
||||
"speech_to_speech.STT.openai_compatible_handler",
|
||||
"speech_to_speech.LLM.base_openai_compatible_language_model",
|
||||
"speech_to_speech.LLM.chat_completions_language_model",
|
||||
"speech_to_speech.TTS.openai_compatible_handler",
|
||||
"speech_to_speech.VAD.vad_handler",
|
||||
"speech_to_speech.api.openai_realtime.server",
|
||||
"services.local_s2s.engine"
|
||||
],
|
||||
"python": "3.11.17",
|
||||
"libc": [
|
||||
"glibc",
|
||||
"2.41"
|
||||
],
|
||||
"torch": "2.11.0+cpu",
|
||||
"torchaudio": "2.11.0+cpu",
|
||||
"cuda_available": false,
|
||||
"tensor_operation": "passed",
|
||||
"dotenv_absent": true,
|
||||
"originals_absent": true
|
||||
},
|
||||
"actual_sdk_controlled_io": {
|
||||
"exit_code": 0,
|
||||
"script": "docs/evaluation/local-s2s/image-sdk-smoke.py",
|
||||
"http_io": "HTTPX MockTransport, actual pinned handler construction/warmup/_request and installed OpenAI 2.28.0 SDK",
|
||||
"cases": [
|
||||
{
|
||||
"limit": 17,
|
||||
"outcome": "ok",
|
||||
"attempts": 2,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"limit": 17,
|
||||
"outcome": "http503",
|
||||
"attempts": 1,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"limit": 17,
|
||||
"outcome": "connect",
|
||||
"attempts": 1,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"limit": 83,
|
||||
"outcome": "ok",
|
||||
"attempts": 2,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"limit": 83,
|
||||
"outcome": "http503",
|
||||
"attempts": 1,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"limit": 83,
|
||||
"outcome": "connect",
|
||||
"attempts": 1,
|
||||
"passed": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"startup_guards": {
|
||||
"startup_without_opt_in": "refused_before_initialization",
|
||||
"missing_assets": "refused_before_component_probes",
|
||||
"provider_calls": 0
|
||||
},
|
||||
"focused": {
|
||||
"tests": 423,
|
||||
"failures": 0,
|
||||
"errors": 0,
|
||||
"skipped": 0,
|
||||
"seconds": 69.65,
|
||||
"junit": ".local-s2s-build/focused-20261016.xml",
|
||||
"command": [
|
||||
".venv/bin/python",
|
||||
"-m",
|
||||
"pytest",
|
||||
"tests/unit/test_local_s2s_repairs.py",
|
||||
"tests/unit/test_local_s2s_phase2.py",
|
||||
"tests/unit/test_local_s2s_engine.py",
|
||||
"tests/unit/test_phase2_auth.py",
|
||||
"tests/unit/test_phase2_remaining.py",
|
||||
"tests/unit/test_phase2_lifecycle.py",
|
||||
"tests/unit/test_phase3_acceptance_repairs.py",
|
||||
"tests/unit/test_local_s2s_boundary.py",
|
||||
"tests/unit/test_live_context_sync.py",
|
||||
"tests/unit/test_realtime_repairs.py",
|
||||
"tests/unit/test_voice_retained_search.py",
|
||||
"tests/unit/test_voice_reported_sources.py",
|
||||
"tests/unit/test_openai_output_limit.py",
|
||||
"tests/unit/test_phase2_provider_selection.py",
|
||||
"tests/unit/test_openai_persian_style.py",
|
||||
"tests/unit/test_gemini_live.py",
|
||||
"-q",
|
||||
"--tb=short",
|
||||
"-p",
|
||||
"no:cacheprovider",
|
||||
"--junitxml=.local-s2s-build/focused-20261016.xml"
|
||||
],
|
||||
"test_only_environment": {
|
||||
"TRUSTED_HOSTS": "[\"localhost:8000\",\"127.0.0.1:8000\"]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"artifact_hashes": {
|
||||
"image-build-20261016.log": "d21a6ac0417481e71fdd991795b200f6c7273b938df608fed297a33eb1b0aa2c",
|
||||
"focused-20261016.xml": "2e15c0b213f88dd01b40286e5d1f27532b9393dbc1acd26210ceb56822a2b5c8"
|
||||
},
|
||||
"isolation": {
|
||||
"network": "none for all smoke containers",
|
||||
"read_only": true,
|
||||
"no_host_secret_or_data_mounts": true,
|
||||
"temporary_containers_removed": true
|
||||
},
|
||||
"observations": [
|
||||
"Expected optional DeepFilterNet import warning; enhancement disabled, no dependency added.",
|
||||
"ONNX runtime could not persist telemetry ID in read-only container and used memory; network disabled.",
|
||||
"Build warning InvalidDefaultArgInFrom because the recipe intentionally requires an explicit pinned ENGINE_BASE_IMAGE; actual build supplied and verified it.",
|
||||
"Full unchanged upstream dependency graph includes qwentts_cpp_python-0.5.0-1cu128 wheel for an unused local TTS backend; torch/torchaudio are CPU, but the full image is not asserted free of CUDA-tagged binaries."
|
||||
],
|
||||
"operations": {
|
||||
"new_runtime_code_changes": false,
|
||||
"voice_configuration_changed": false,
|
||||
"provider_calls": 0,
|
||||
"engine_pipeline_started": false,
|
||||
"models_downloaded": false,
|
||||
"operational_services_started_or_restarted": false,
|
||||
"database_acceptance_executed": false,
|
||||
"images_or_volumes_pruned": false
|
||||
},
|
||||
"remaining": [
|
||||
"Provisioned fingerprinted NLTK and Silero VAD assets on Linux",
|
||||
"Complete engine/SDK controlled-I/O and actual POSIX signals with assets",
|
||||
"Actual component speech format/rate/Persian and isolated local_s2s browser acceptance",
|
||||
"Real interruption/history mutation and shared RAG Phase 3",
|
||||
"Historical rollback restoration and Phase 4 quality/cost"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user