Files
rag-technical-docs-assistant/docs/evaluation/local-s2s/phase-04-interruption-incident.md
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

26 lines
4.1 KiB
Markdown

# Browser interruption incident — 2026-10-16
User reported an error when interrupting speech. The attached console output contains an unexpanded server error Object, so its actual code is unavailable. Do not equate it with a proven retained-history defect.
Read-only API logs show two native cancellations acknowledged as cancelled terminals in session6319accb; a new user turn then started and a server error was emitted. Both browser sessions ultimately persisted `closed/user_requested`, which does not identify the transient error because V04 can win the finalization race. No audio existed at the two cancellation terminals in this session; this is not proof of heard-position repair.
The exclusive ledger has six STT and six LLM admissions (their exact caps), four TTS admissions, and cumulative reserve $0.704504399. Cancellation/failure holds are retained. A subsequent STT request would be refused before provider I/O. This is a plausible contributor, not conclusive identification of the unexpanded browser error.
## Scoped repair
The evaluation guard now persists a sanitized stage/count/attempt-limit denial and raises a distinct EvaluationBudgetExhausted exception. The local component gateway returns explicit HTTP429 on that evaluation-only exception, rather than closing the socket without any HTTP response. Other invalid/failed requests retain existing behavior. This does not promise that native SDK429 is nonfatal or eliminate legitimate budget stops. No budget increases, ledger reset, paid restart, audio timing/buffer/speed or history-policy changes.
Provider-free checks: 100 history/component tests passed, including a real loopback HTTP regression proving429, one budget-rejected count, zero generic failures and no sensitive response body. Exclusive guard regression passed, including persisted denial and unchanged number of provider calls after cap. Compose validation and diff whitespace checks passed.
Paid engine stopped; API and recorded owned frontend temporarily stopped to free RAM for network-disabled actual native replay. Operational PostgreSQL untouched. Candidate override mounts the reviewed gateway source read-only so a future authorized fresh-ledger launch includes the repair; existing exclusive ledger must never restart. No new paid request was made. Actual native reproduction outcome is recorded in private `.local-s2s-build/interruption-incident-native.log` and is not human/browser acceptance.
Remaining: collect expanded browser error code or reproduce the same error under controlled fixture conditions; do not declare this user incident fully resolved from unit tests alone. A new human test requires a newly carried-forward bounded admission handoff within the same $1 cap.
## Actual native replay
Network-disabled real native active-retention run passed in71.037s, exit0, minimum host headroom3821453312bytes. Active cancellation, two retained-history receipts, subsequent generation, stale-output exclusion and unit release verified; client_error null, paid_calls0. Fixture cleanup recorded close_errors1 (same diagnostic field, not suppressed); runtime/gateway stop/join all0 and shutdown_pending0. This verifies the existing interruption path under fixtures, not the exact unidentified browser error. Initial memory-preflight refusals performed no engine/provider work. The failed/exhausted browser runtime was not restarted.
## Restored UI and next bounded preparation
Frontend and isolated API restored after user requested continuation; actual `/login` and `/settings` return200. New exclusive next-run preparation carries the full $0.704504399 prior reserve, including every cancellation/failure, and permits four attempts per component (one each needed for startup), cumulative ceiling $0.940504399. Original and previous ledgers untouched; new live ledger not created. Temporary-copy regression confirms carry and ceiling; existing guard regression still passes. New override and watchdog are prepared, but not launched: actual host MemAvailable4723MiB is below the mandatory >5120MiB pre-start gate. Do not stop the restored UI again to claim browser readiness. No paid engine restart or new paid request. OpenAI/RAG preparation remains separately pending.