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:
@@ -36,11 +36,12 @@ def bounded_call(action, timeout):
|
||||
def cleanup(runtime, guard, thread, stop, *, timeout=2, emit=print):
|
||||
stop.set()
|
||||
counters = {}
|
||||
# Every operation is independent; a failed or wedged stop cannot skip I/O cleanup.
|
||||
# Cancel owned provider I/O before joining workers which may be awaiting it.
|
||||
# Every operation is independent; one failure cannot skip later cleanup.
|
||||
for name, action in (
|
||||
('runtime_stop', runtime.stop if runtime is not None else lambda: None),
|
||||
('gateway_shutdown', guard.shutdown),
|
||||
('gateway_close', guard.server_close),
|
||||
('runtime_stop', runtime.stop if runtime is not None else lambda: None),
|
||||
('gateway_join', lambda: thread.join(timeout)),
|
||||
):
|
||||
counters[name] = bounded_call(action, timeout)
|
||||
|
||||
Reference in New Issue
Block a user