Commit Graph
54 Commits
Author SHA1 Message Date
Théo Monnom 4c0878c239 delegation: bounded remote journal retention, and duplicate artifact chunks are never appended twice 2026-11-18 11:35:05 -08:00
Théo Monnom cbbed6dc24 deps: Python SDKs from PyPI (livekit 1.3.0, livekit-api and livekit-protocol 2.0.1), rust-sdks at main; CI checks out no SDK sources 2026-11-18 10:36:16 -08:00
Théo Monnom 30fbb5ce4a text: a tool lost with its worker settles as an internal error, read-back failures are logged, e2e tests follow the binding and routing contract 2026-11-18 09:50:30 -08:00
Théo Monnom 34118eedd8 Merge remote-tracking branch 'origin/v2.0' into codex/delegation 2026-11-18 08:53:59 -08:00
Théo Monnom e2376131d8 Merge remote-tracking branch 'origin/v2.0' into codex/delegation
# Conflicts:
#	rust/crates/lk-agents-fuzz/src/drive/start.rs
#	rust/crates/lk-agents-fuzz/src/search/setup.rs
#	rust/crates/lk-agents-voice/src/agent_session/machine/activity/realtime/mod.rs
#	tests/plugins/test_elevenlabs_tts.py
2026-11-18 08:53:58 -08:00
Théo Monnom 5926717903 a2a_session: a handler may be an async generator streaming its answer's text
Each yielded str is delivered as ctx.stream delivers it; the outcome is the last
run_stream's RunResult, else the joined text. web-chat yields its deltas.
2026-11-18 04:56:55 -08:00
Théo Monnom d6235d5f34 delegation: live inbox, restart recovery, task-scoped cancellation and exact delivery 2026-11-18 04:56:45 -08:00
Théo Monnom ee19eb66e8 Merge STT lifecycle fixes into v2.0 2026-11-18 04:08:59 -08:00
Théo Monnom 09262038db Harden realtime, worker and recording boundaries
Run realtime DST scenarios through production provider bookkeeping, with
asynchronous transcription, provider failures, response correlation and
cross-provider history coverage. Ignore unknown provider messages and
settle pending operations when streams or host tasks disappear.

Make job phases own their operations, preserve token restrictions on
refresh, validate inference options and contain failures at external
boundaries. Remove the duplicate Rust media benchmark.

Compare recordings against independent speaker PCM and keep transcripts,
provider spans and reports on the session audio clock across wall-clock
corrections. Preserve silence duration in Gladia energy filtering.

Add regression tests and document the provider and recording audit
findings, including the remaining backend waveform issue and two
independently reproduced baseline storage DST failures.
2026-11-18 04:07:42 -08:00
Théo Monnom eb98b57479 fix: preserve final STT responses across provider shutdown 2026-11-18 04:06:31 -08:00
Théo Monnom b59264323c Bind input continuation to matched conversation occurrences
Remove named-tool and history-only local continuation, preserve exact approval provenance, checkpoint accepted child output, and scope live collectors to their own input.

Connect active bound RemoteTask cancellation through the native owner with persisted intent, reconciliation and coalesced callers. Cover checkpoint races through real executors and scripted host stories.

Validation: Rust rules and codegen checks; native suites with focused repaired regressions; 152 binding contracts; Python format, lint and strict type checks; changed host stories and focused reruns. Full campaign and remaining implementation milestones are still open.
2026-11-18 02:03:58 -08:00
Théo Monnom 6dedfd4724 Unify remote task routing and native response ownership 2026-11-18 00:16:07 -08:00
Théo Monnom fbf8468cff Correlate remote results by unique call items 2026-11-17 19:13:03 -08:00
Théo Monnom 0ba3fdb4d3 Evaluate routing and serialize voice response handoff
Add labeled development and held-out cases with real-model verdicts, native
reservations, prompt hashes and failed-case evidence. Freeze the tuned Gemma
prompt without hiding its remaining mixed-response miss.

Consume voice reservations through the existing live remote body. Keep local
handoff receipts idempotent, hold the floor during foreground callbacks, and
present the actual remote outcome without starting new work. Withdraw an
answered queued question while retaining other pending questions.

Record live Gemma, DST and SDK validation alongside the still-failing broader
project E2E gate and remaining delegation work.
2026-11-17 18:25:12 -08:00
Théo Monnom cf31b98085 Route voice responses through shared native admission 2026-11-17 16:13:14 -08:00
Théo Monnom 835e702084 Group input prompts with explicit source correlation
Keep input reservations separate from frontend observations and route native admission through each execution owner. Select grouped text prompts with validated source membership and admit their full delivery before offering them to the response detector.

Add opt-in real frontend and Gemma routing evaluations with stock A2A peer processes and retained conversation/task/journal reports. Six live cases pass, including grouped full and explicit partial answers. A bare-name exploratory case was ambiguous; it is not counted as passing clarification quality.

Validation: Rust rules/codegen and Python fix/check pass. Core 587 and voice 386 tests pass; session receipt follow-up 35, routing bindings 15 plus unconsumed regression pass, host/bindings 671 pass (one unfinished voice routing story deselected), authored DST 39 pass, selected process/room E2E 5 pass. Full extended DST and voice delegation completion remain separate release gates.
2026-11-17 14:54:51 -08:00
Théo Monnom 5ed0f6d15d Persist idle voice delegation and question delivery safely
Acquire a native checkpoint scope before voice commands read or mutate shared conversation state. Retain the lease through writes, keep admitted storage work alive after its caller ends, and preserve application save semantics when speech takes over an idle scope.

Carry the original remote input reference through question rephrasing and actual delivery. An unspoken question can be presented again without creating another input occurrence.

Validation: Rust architecture, codegen and lint checks; core, voice, storage and binding suites; authored DST with a cancellation regression verified against the earlier writer; Python formatting and type checks. The 77-test E2E run passed before the final storage ownership fix; that fix has dedicated storage, binding and DST coverage.
2026-11-17 14:05:07 -08:00
Théo Monnom bc3d240e73 Refuse text-local continuations before voice inference on every lease 2026-11-17 12:42:06 -08:00
Théo Monnom de2791f0a6 Run voice delegation commands through the native conversation owner 2026-11-17 12:32:24 -08:00
Théo Monnom 1bd4ae6f52 Publish voice conversation state from native effects 2026-11-17 12:00:15 -08:00
Théo Monnom b6f1464953 Keep voice roles transient and preserve borrowed conversation stores 2026-11-17 11:13:56 -08:00
Théo Monnom 3c84b34a67 Resume held remote responses across eligible agents 2026-11-17 10:10:40 -08:00
Théo Monnom f61c7e5f1b Route text responses through the conversation owner 2026-11-17 10:03:36 -08:00
Théo Monnom d2ad4cda1a Share input admission across local agents and remote tasks 2026-11-17 09:03:02 -08:00
Théo Monnom d0551db856 Backpressure awaited tool progress without dropping updates 2026-11-17 04:42:29 -08:00
Théo Monnom 795731aeb1 Use upstream A2A task states across client bindings and delegation 2026-11-17 04:35:42 -08:00
Théo Monnom c945835884 Recover unsent remote intents and distinguish repeated input requests 2026-11-17 04:10:33 -08:00
Théo Monnom dae9168138 Only announce explicitly flagged A2A working progress
Normalize the namespaced message/task progress flag into the generated TaskUpdate view. Keep ordinary working text as observable status and flag ctx.update output. Verify independent stock SDK and ADK peers, cancellation cleanup and all voice and v1 compatibility stories.
2026-11-17 03:30:57 -08:00
Théo Monnom df83ce2af4 Implement shared conversation state and journaled remote exchanges
Use store binding as the sole continuation path and one unreleased storage
encoding across execution modes. Generate agent and remote inspection views,
checkpoint protocol observations before transport continues, and exercise
restart reconciliation over the real client and storage executors.

Add the general process/audio E2E foundation and stock A2A peer. Fix reproduced
voice persistence, tool-record ordering and transcript-writer races; retain
foreign edits and distinguish our own delayed checkpoints across leases.

Validated Rust rules, codegen, bindings and native suites; 366 authored DST
stories and the 1024-seed survey; 76 local E2E/v1 compatibility tests. Python
checks pass. The Python suite had one Azure fixture readiness race, corrected
and verified by all 18 Azure tests.

This is a foundation checkpoint. Automatic routing, task controls, live
scheduling and complete voice delegation remain. The extended DST campaign
still fails; replay seeds and baseline results are recorded in the proposal.
Cloud AgentDB conformance has not run without project configuration.
2026-11-17 02:25:23 -08:00
Théo Monnom b441182255 Add shared RoomIO binding and ownership foundations
Expose RoomIO and RoomBinding, support named VoiceSession startup, and scope RTC resources through a room-local registry. Add core binding and legacy-primary state machines, cancellation-safe cleanup, and ownership regressions.

Update compatibility fixtures for the current TTS contract and real media playout bounds. Shared legacy transport routing and binding port composition remain follow-up work; broad validation still reports DST findings and live-service E2E failures.
2026-11-15 10:14:44 -08:00
Théo Monnom d25c618d76 docs: consolidate feature contracts and propose shared RoomIO 2026-11-14 21:23:11 -08:00
Théo Monnom b2c0fb5b0c Unify provider streams and harden voice lifecycle persistence
Migrate provider WebSocket handling to shared typed protocols, pooling, pacing, and idle timers. Preserve SmallestAI continuations with response-based silence completion and isolated segments.

Keep connection acquisition, reconnect controls, stream cleanup, and host wrapper ownership safe across cancellation. Consolidate provider interfaces and typed MCP contracts.

Normalize pending speech boundaries and preserve conversation identity, ordering, late results, and acknowledged checkpoints across overlapping voice runs. Extend deterministic regressions, storage observations, and lifecycle documentation.

Validation: rebuilt extension; 2900 Python tests passed; formatting, lint, and type checks passed. Rust, binding, codegen, and deterministic simulation checks are recorded in the audit and lifecycle verification records.
2026-11-14 16:10:47 -08:00
Théo Monnom fe4495f99c storage: a write of unknown outcome raises the typed StorageUncertain
StorageError::Uncertain reached Python as a plain StorageError; it now maps
to livekit.agents.storage.StorageUncertain, declared once in the ABI and
generated, so a caller can tell it from a refusal that applied nothing.
2026-11-14 11:13:19 -08:00
Théo Monnom 9b296ceb9f realtime: one RealtimeModel, a plugin without session() refused at definition; stt: a provider that transcribes after the speech ends holds its end for the final 2026-11-13 23:45:44 -08:00
Théo Monnom 72f4f34721 websocket: a private transport with one plain base per kind (stt, tts, realtime); STT turns take the interim at commit and late finals correct by utterance; layers enforced by an import-boundary test 2026-11-13 22:54:39 -08:00
Théo Monnom c74fa34dcc plugins: 29 socket plugins on the base, aws/azure/spatius/speechmatics/upliftai off their SDKs; host proxies weak unless owned, every facade freed after close 2026-11-13 18:12:49 -08:00
Théo Monnom b0e000325d stt: a stream ends after its input by the core's speech state: goodbye and drain when audio went out, a clean end when nothing is owed 2026-11-13 16:11:09 -08:00
Théo Monnom 0385bdcfa5 socket base runs STT speech state, TTS segments, realtime readiness and pings; avatars on one base closed with their session; deepgram, cartesia, ultravox, phonic, PersonaPlex and Gemini Live on the base; DST survey clean 2026-11-13 14:19:20 -08:00
Théo Monnom 89b146579d typed provider errors decided by the core, storage answers each request once and orders rows by position, socket/avatar/forwarding bases, plugin contract tests 2026-11-13 13:08:09 -08:00
Théo Monnom 9e79bc520b errors reach their owner: awaited outcomes are read, fallbacks decided in the core, one shared helper per provider protocol (close codes, retries, usage, input audio, G.711, provider detail) 2026-11-13 09:50:33 -08:00
Théo Monnom 523387a614 providers: values read when used, capabilities fixed at construction; every Python task owned; tests never wait in real time 2026-11-12 23:49:19 -08:00
Théo Monnom c67f932cb7 retries: one owner per request, every retry announced through one helper, each failure reported once per provider 2026-11-12 22:58:36 -08:00
Théo Monnom 234fc2b3bc streams: after a provider fails, every input call returns that failure; one InputState decides, enforced by rust/check and the DST 2026-11-12 21:54:59 -08:00
Théo Monnom 544d5a1584 async crates: every task has an owner and all time comes from the injected clock, enforced by rust/check and Clippy 2026-11-12 21:16:20 -08:00
Théo Monnom 1507bea7dd py: a native facade is its native class; identity resolved in the core; _core_leg removed 2026-11-12 20:09:45 -08:00
Théo Monnom d88f8df204 logs: only LiveKit's Rust lines below WARN unless RUST_LOG says otherwise; startup internals at DEBUG; refusals say why; registration names its transport 2026-11-12 17:15:04 -08:00
Théo Monnom e4d3c71a6a tts: options owned by the core, one final error event; tests current, fast and bounded by a 10 s timeout 2026-11-12 16:18:34 -08:00
Théo Monnom 5f527a3f61 py: a provider reaching the core runs as its _core_leg names, wherever it is passed 2026-11-12 15:10:36 -08:00
Théo Monnom b3d43d0c4c voice: a node over the session's default runs the native provider, not its Python wrapper 2026-11-12 14:28:43 -08:00
Théo Monnom 60d07ad7d6 tests: one top-level suite (host, plugins, smoke, e2e); CI split into rust, python and e2e workflows; the DST runs alone 2026-11-12 14:26:33 -08:00