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:
11linear11
2026-10-09 07:59:02 -04:00
parent 07245cd5ca
commit 996435d2ae
42 changed files with 4551 additions and 88 deletions
+3 -3
View File
@@ -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