feat(voice): add authenticated Phase 2 live lifecycle
Add cookie authentication, owned conversations, durable Live reservations, tool completion/replay fencing, revocation, and startup reconciliation. Introduce forward lifecycle/owner-chain migrations and the temporary Gemini adapter while preserving the existing OpenAI Realtime adapter. Include the executable audio client, regression coverage, configuration, API/database documentation, and recorded acceptance evidence. Validation: focused review suite 82 passed; Python/TOML parsing, JavaScript syntax, and whitespace checks passed. Full PostgreSQL/provider-free results are recorded in the repair report; real-provider/browser acceptance is unrun. Follow-up work remains for configurable OpenAI/Gemini selection, transport admission, authority diagnostics, playback message bounds, and client replay identity after ambiguous creation responses.
This commit is contained in:
@@ -742,9 +742,9 @@ def test_operator_harness_actual_fake_transport_tool_correlation(
|
||||
response_id=rid, item_id="a_" + rid, output_index=0, content_index=0, transcript="Provider-supplied fixture answer")))
|
||||
await self.incoming.put(canonical_json(terminal(rid, output=output)))
|
||||
transport = Scripted()
|
||||
async def connection(*_):
|
||||
return transport
|
||||
monkeypatch.setattr(voice_smoke, "connect", connection)
|
||||
async def connection(config, limits):
|
||||
return RealtimeAdapter(transport, settings=limits)
|
||||
monkeypatch.setattr(voice_smoke, "create_adapter", connection)
|
||||
config = SimpleNamespace(openai_api_key=SecretStr("fixture-not-a-key"),
|
||||
openai_realtime_model="gpt-realtime-mini", openai_proxy=None)
|
||||
assert asyncio.run(voice_smoke.run(service, runner, uuid4(), config, "q", 3, 4)) == 0
|
||||
|
||||
Reference in New Issue
Block a user