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:
@@ -4,6 +4,7 @@ from copy import deepcopy
|
||||
from types import SimpleNamespace
|
||||
from uuid import uuid4
|
||||
import pytest
|
||||
from tests.support.local_s2s_runtime import make_local
|
||||
from tests.unit.test_realtime_phase1 import runner, persisted, make, input_turn, response, call, done, until
|
||||
from tests.unit.test_voice_reported_sources import evidence, source_events
|
||||
|
||||
@@ -27,9 +28,10 @@ class Store:
|
||||
|
||||
@pytest.mark.parametrize('ready_first', [False, True])
|
||||
@pytest.mark.parametrize('tool', ['reuse_last_evidence', 'search_knowledge'])
|
||||
def test_repeated_same_question_uses_one_retained_search(runner, persisted, monkeypatch, ready_first, tool):
|
||||
@pytest.mark.parametrize('provider',['openai','local_s2s'])
|
||||
def test_repeated_same_question_uses_one_retained_search(runner, persisted, monkeypatch, ready_first, tool, provider):
|
||||
async def scenario():
|
||||
runtime, wire, out = await make(SimpleNamespace(engine=None), runner, persisted)
|
||||
runtime, wire, out = await (make_local if provider=='local_s2s' else make)(SimpleNamespace(engine=None), runner, persisted)
|
||||
started, finish = asyncio.Event(), asyncio.Event()
|
||||
store = Store()
|
||||
runtime.tool_store = store
|
||||
|
||||
Reference in New Issue
Block a user