Commit Graph
72 Commits
Author SHA1 Message Date
Théo Monnom ca6bc8d162 plugins: a provider is the vendor, one id each 2026-11-25 11:10:24 -08:00
Théo Monnom 4099b89381 plugins: provider names are lowercase ids 2026-11-25 10:48:07 -08:00
Théo Monnom 2d180fb04e plugins: report the vendor as the provider, never the endpoint host 2026-11-24 23:55:34 -08:00
Théo Monnom 7fed71d114 python: hand plugins and the Python version to product statistics
Plugin.register_plugin reports each plugin, and telemetry installation
passes the Python version. Regenerated bindings, stubs and registry.
2026-11-24 14:43:22 -08:00
Théo Monnom a63b7c1e3f voice: remove answering-machine and IVR detection
Drops the AMD detector and the IVR navigator with everything only they used:
the authorization pause, skip-replies, the detector interrupt cause, the system
tap fan-out, the closing and started host hooks, session-added tool pools, the
SIP attribute wait, the amd span and TimerName. send_dtmf_events stays.
2026-11-24 13:23:17 -08:00
Théo Monnom b21bcd50c4 storage: list_threads is unsorted, no sort_order
Thread listing order is unspecified but stable across pages: the cloud store
spreads lists over hash buckets. The ABI drops sort_order and SortOrder, the
cloud client sends no order and no longer refuses oldest_first, and SQLite
pages by thread id with an opaque token bound to its scope. Tests walk every
page and check each thread is listed once.
2026-11-20 00:05:09 -08:00
Théo Monnom f44e65bab8 storage: client-side agent-db metrics (request duration, retries, redials)
- lk.agents.storage.request_duration (s) by op (exec, batch, query, hello,
  thread_create/get/list/update/delete/items/tasks) and class (ok, client,
  redirect, capacity, server, unknown): one request from its call to its last
  answer, the connection's resend to a moved database included.
- lk.agents.storage.retries by reason (moved, unavailable, snapshot_expired,
  capacity, drained, transport, local): counted where the connection resends a
  drained request and where thread::Retry, the one retry owner, sends again.
- lk.agents.storage.redials by reason: each dial of the supervisor's redial.

Declared in ABI (telemetry/storage.rs). agent-db's error table carries each
code's retry reason and agent-store's outcome class. StorageError::Unavailable
carries an Unapplied: the typed reason a refusal is retried, so the retry owner
counts it without reading a message.
2026-11-19 23:55:09 -08:00
Théo Monnom da2dac64a9 storage: list_threads pages ThreadSummary rows by creation, newest or oldest first
list_threads(scope=None, *, sort_order="newest_first", page_token=None, limit=None)
returns ThreadPage(threads, next_page_token); the before cursor is gone. SortOrder is an
ABI enum. Rows are ThreadSummary, without last_active or expires_at; ThreadInfo keeps them.
No scope lists the project's threads (the local thread service follows the grant).
Pages are 50 by default and 100 at most on every backend. SQLite orders by creation in
either direction with page tokens bound to scope and order; agent-db stays newest first
and refuses oldest_first until AgentThread.ListRequest carries sort_order.
2026-11-19 22:13:52 -08:00
Long Chen 8c00869f8e a2a: fix delegation from a worker run as a script (#8602) 2026-11-20 12:56:36 +08:00
Théo Monnom bd62bd06e5 Merge remote-tracking branch 'origin/v2.0' into codex/delegation 2026-11-18 15:07:39 -08:00
github-actions[bot]andgithub-actions[bot] dc8eed21e1 livekit-agents@2.0.0b2 (#8659)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-18 13:28:33 -08:00
Théo Monnom cf4a670546 Merge branch 'feat/model-visible-task-ids' into codex/delegation
# Conflicts:
#	rust/crates/lk-agents-voice/src/experts_tests.rs
#	tests/host/test_delegation_tasks.py
2026-11-18 13:24:35 -08:00
Théo Monnom d40ec97c6b delegation: the frontend model reads each remote task's raw A2A ID, with its request, to continue, correct or cancel it 2026-11-18 13:00:26 -08:00
Théo Monnom f47d9fb1c5 Merge branch 'feat/realtime-model-swap' into codex/delegation 2026-11-18 12:44:03 -08:00
Théo Monnom 8ccd806cca voice: switching agents swaps the realtime model, carrying the conversation onto a new session 2026-11-18 12:41:24 -08:00
Théo Monnom 1dae5f7da6 delegation: the model cancels a remote task through cancel_<remote>, on the native cancel path 2026-11-18 12:26:32 -08:00
Théo Monnom 425431e376 Merge branch 'feat/say-outcome' into codex/delegation 2026-11-18 11:45:56 -08:00
Théo Monnom 53c457b64e tools: ctx.say() returns its SayOutcome (delivered, interrupted or failed) instead of raising 2026-11-18 11:41:56 -08:00
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