Files
rag-technical-docs-assistant/docs/evaluation/local-s2s/phase-02-real-native-20261016.json
T
11linear11 a94b8cd3ea 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.
2026-10-16 17:09:27 -04:00

307 lines
9.8 KiB
JSON

{
"date": "2026-10-16",
"phase": 2,
"status": "real_native_round_trip_passed_browser_pending",
"image": "sha256:89c7295e521903c16b8ab72f8049b8166ceeb718ac7d531b815dd5d7613dea7b",
"runner": {
"mode": "real",
"minimum_host_available_bytes": 5393440768,
"aborted": null,
"exit_code": 0,
"elapsed_seconds": 130.096
},
"native": {
"lifecycle_outcome": 0,
"client_done": true,
"client_error": null,
"events": {
"session.created": 1,
"session.updated": 3,
"input_audio_buffer.speech_started": 1,
"input_audio_buffer.speech_stopped": 1,
"input_audio_buffer.committed": 1,
"conversation.item.created": 1,
"conversation.item.input_audio_transcription.completed": 1,
"response.created": 1,
"response.output_item.added": 1,
"response.content_part.added": 1,
"response.output_audio_transcript.delta": 1,
"response.output_audio.delta": 21,
"response.output_audio.done": 1,
"response.output_audio_transcript.done": 1,
"response.content_part.done": 1,
"response.output_item.done": 1,
"response.done": 1
},
"audio_result": {
"bytes": 121344,
"samples": 60672,
"sha256": "e1c422f753c4ce4c9f0d3f88d1559fc938c0e2e703ddaa7ec34e0902d99682f9"
},
"normal_complete": true,
"unit_released": true,
"mismatch_rejected": true,
"intent_correlated": true,
"runtime_state": "stopped",
"paid_calls": 6,
"manifest_sha256": "869eb6be1f444ecded8908b9339078cc5845df367207a63ed28173c4974dca26",
"final_cleanup": {
"stage": "close",
"cleanup": {
"gateway_shutdown": 0,
"gateway_close": 0,
"runtime_stop": 0,
"gateway_join": 0,
"gateway_alive": 0
},
"request_counts": {
"accepted": 6,
"/v1/audio/transcriptions": 2,
"released": 6,
"/v1/chat/completions": 2,
"/v1/audio/speech": 2,
"shutdown_pending": 0
}
}
},
"transcripts": [
{
"type": "conversation.item.input_audio_transcription.completed",
"text": " سلام، این یک آزمایش کتاه برای بررسی صدای فارسی است."
},
{
"type": "response.output_audio_transcript.done",
"text": "سلام صدای شما دریافت شد."
}
],
"terminal": {
"status": "completed",
"usage": {
"input_token_details": {
"audio_tokens": 0,
"cached_tokens": 0,
"cached_tokens_details": null,
"image_tokens": 0,
"text_tokens": 584
},
"input_tokens": 584,
"output_token_details": {
"audio_tokens": 0,
"text_tokens": 9
},
"output_tokens": 9,
"total_tokens": 593
},
"metadata": {
"voice_intent": "fixture-intent-1",
"speech_to_speech.turn_latency": "{\"e2e_s\":15.251953101003892,\"hold_s\":null,\"llm_s\":0.9196348260011291,\"response_key\":\"e4a1ac43052b421299908c73eb8addfb\",\"smart_status\":null,\"source\":\"speech\",\"status\":\"completed\",\"stt_s\":null,\"tts_ttfa_s\":1.9715482209976471,\"turn_id\":\"turn_1\",\"turn_revision\":0,\"vad_decision_s\":null,\"version\":2}"
}
},
"budget": {
"previous_reserved_usd": "0.56",
"reserved_usd": "0.998",
"maximum_cumulative_reserved_usd": "0.998",
"attempts": [
{
"stage": "transcriptions",
"reserved_usd": "0.004",
"status": "headers_received",
"http_status": 200,
"generation_id": "gen-stt-1792161394-vJMHFfdwTmHBDSBW48aH",
"headers_elapsed_seconds": 3.536
},
{
"stage": "completions",
"reserved_usd": "0.01",
"status": "headers_received",
"http_status": 200,
"generation_id": "gen-1792161398-BRPNxd79tYYoQZdg43Ce",
"headers_elapsed_seconds": 0.703
},
{
"stage": "speech",
"reserved_usd": "0.205",
"status": "headers_received",
"http_status": 200,
"generation_id": "gen-tts-1792161399-3YAyVlL5MSSKbqaZWnIz",
"headers_elapsed_seconds": 1.236
},
{
"stage": "transcriptions",
"reserved_usd": "0.004",
"status": "headers_received",
"http_status": 200,
"generation_id": "gen-stt-1792161402-nvlLMzXrx1QdjtVT6Nuu",
"headers_elapsed_seconds": 1.267
},
{
"stage": "completions",
"reserved_usd": "0.01",
"status": "headers_received",
"http_status": 200,
"generation_id": "gen-1792161403-FNP9pxaRHEq63J0h1qbo",
"headers_elapsed_seconds": 0.841
},
{
"stage": "speech",
"reserved_usd": "0.205",
"status": "headers_received",
"http_status": 200,
"generation_id": "gen-tts-1792161415-n472pZcpHCoMng79OO5S",
"headers_elapsed_seconds": 1.937
}
]
},
"billing_read_only_followup": {
"generation_lookups": [
{
"stage": "transcriptions",
"generation_id": "gen-stt-1792161394-vJMHFfdwTmHBDSBW48aH",
"http_status": 404
},
{
"stage": "completions",
"generation_id": "gen-1792161398-BRPNxd79tYYoQZdg43Ce",
"http_status": 404
},
{
"stage": "speech",
"generation_id": "gen-tts-1792161399-3YAyVlL5MSSKbqaZWnIz",
"http_status": 404
},
{
"stage": "transcriptions",
"generation_id": "gen-stt-1792161402-nvlLMzXrx1QdjtVT6Nuu",
"http_status": 404
},
{
"stage": "completions",
"generation_id": "gen-1792161403-FNP9pxaRHEq63J0h1qbo",
"http_status": 404
},
{
"stage": "speech",
"generation_id": "gen-tts-1792161415-n472pZcpHCoMng79OO5S",
"http_status": 404
}
],
"key_http_status": 200,
"key": {
"usage": 0.134551603,
"limit": 5,
"limit_remaining": 4.865448397
}
},
"observed_shared_key_usage_delta_since_initial_components_usd": "0.001118333",
"billing_verdict": "Earlier three successful standalone component calls now total $0.001118333 in provider generation records. All six newer native-test generation records still return404; newest turn and warmup costs are not finalized. Retain reservation; no new paid call.",
"audio": {
"path": ".local-s2s-build/native-paid/native-real-output.wav",
"sha256": "106d419d45eaa67e334489a2be18a78dba705da4de55914178cba46bef1f1e9e",
"human_listening": "accepted",
"rate_basis": "native declared 24000Hz PCM16 mono; WAV header constructed locally",
"frames": 60672,
"rate": 24000,
"channels": 1,
"seconds": 2.528,
"human_acceptance": {
"date": "2026-10-16",
"user_observation": "تاییدش میکنم",
"scope": "the 2.528-second native output WAV"
}
},
"operational_changes": false,
"audio_tuning_changes": false,
"owned_containers_remaining": false,
"remaining": [
"isolated backend/browser/microphone acceptance within reconciled authorization",
"final component billing",
"broader Persian/noise/domain vocabulary quality",
"cold-start qualification, prior DB and rollback gates"
],
"source_sha256": {
"docs/evaluation/local-s2s/image-session-smoke.py": "c7448f766e03c34321b495c86c6da06e95b369f2078ef69c4b527e97476fc2b4",
"docs/evaluation/local-s2s/native-budget-transport.py": "506830f949ba62ab637ebe06c589dc4ecff131bb87ab083feeb7381f256ced0a",
"docs/evaluation/local-s2s/run-image-session-smoke.py": "9995e61a5488164a9be0afbc95c612c042da00e9d2729001349b7d2c45905e7f",
"docs/evaluation/local-s2s/check-native-budget.py": "a2f3aea7b3598774fc145ad93f49931def80348e081313a6d10c5e9816d542c0",
"docs/evaluation/local-s2s/check-native-runner.py": "85f6d845198a542dae7f5232e1e549eff0b60ec9502ee61688ac62138bc0745e"
},
"latest_billing_followup": {
"native": [
{
"stage": "transcriptions",
"generation_id": "gen-stt-1792161394-vJMHFfdwTmHBDSBW48aH",
"http_status": 404
},
{
"stage": "completions",
"generation_id": "gen-1792161398-BRPNxd79tYYoQZdg43Ce",
"http_status": 404
},
{
"stage": "speech",
"generation_id": "gen-tts-1792161399-3YAyVlL5MSSKbqaZWnIz",
"http_status": 404
},
{
"stage": "transcriptions",
"generation_id": "gen-stt-1792161402-nvlLMzXrx1QdjtVT6Nuu",
"http_status": 404
},
{
"stage": "completions",
"generation_id": "gen-1792161403-FNP9pxaRHEq63J0h1qbo",
"http_status": 404
},
{
"stage": "speech",
"generation_id": "gen-tts-1792161415-n472pZcpHCoMng79OO5S",
"http_status": 404
}
],
"earlier_components": [
{
"stage": "tts_pcm",
"generation_id": "gen-tts-1792147214-vtWNLNMAyxlzEM87Oz23",
"http_status": 200,
"billing": {
"total_cost": 0.00078,
"native_tokens_prompt": 12,
"native_tokens_completion": 129,
"provider_name": "Google",
"created_at": "2026-10-16T10:40:14.709Z"
}
},
{
"stage": "stt",
"generation_id": "gen-stt-1792147218-l61CrhLNYq2tgkQjV8TS",
"http_status": 200,
"billing": {
"total_cost": 0.000308333,
"native_tokens_prompt": null,
"native_tokens_completion": null,
"provider_name": "Groq",
"created_at": "2026-10-16T10:40:18.23Z"
}
},
{
"stage": "llm",
"generation_id": "gen-1792147219-rEyCmMLKSrqpXjdZyj4I",
"http_status": 200,
"billing": {
"total_cost": 3e-05,
"native_tokens_prompt": 39,
"native_tokens_completion": 9,
"provider_name": "OpenAI",
"created_at": "2026-10-16T10:40:19.452Z"
}
}
],
"key_http_status": 200,
"key": {
"usage": 0.134551603,
"limit": 5,
"limit_remaining": 4.865448397
}
}
}