Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesAdds LiveKit SIP calling and native RTC audio to the existing Voice Call plugin. Example: An operator uses LiveKit trunk ST_OUTBOUND with caller extension 1001 to call +15550000002.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open: it contains meaningful carrier integration work absent from main, and its paired feature request remains unresolved; bundled ownership still needs a maintainer decision. Priority: P3 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe carrier adapter translates signed SIP events and native RTC audio into Voice Call manager events and realtime transport operations; existing owners retain model selection, consultation, transcripts, and call termination. flowchart LR
A[Phone caller] <--> B[LiveKit SIP room]
B <--> C[LiveKit carrier adapter]
C <--> D[Voice Call manager]
C <--> E[Realtime handler]
E <--> F[Voice model and consultation]
D --> G[Call history]
Technical reviewBest possible solution: Choose the carrier ownership boundary, retain existing call and realtime owners, and complete acceptance for the agreed integration. Do we have a high-confidence way to reproduce the issue? Source confirms that main lacks LiveKit carrier selection and an external carrier attachment contract; this is a new capability request rather than a reproducible promised-behavior failure. Is this the best way to solve the issue? The SIP and native-audio adapters reuse the appropriate manager and realtime owners, and the lifecycle extraction supports joined disposal; whether that implementation belongs bundled remains a product choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3caeb92ac30b. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1511, Tests +2529, Docs +62, Config +2, Generated 0, Other +216. Total +4320 across 36 files. Added test files: 8. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed November 4, 2026, 4:59 PM ET / 21:59 UTC (Revision 5). |
|
|
The P2 connection-admission defect is fixed in b7634a6 and retained in current head 0b6b04c. The PR body now includes the observed baseline failure (one token-bearing connect in both retirement cases), repaired zero-connect outcome, exact-head 257-test/15-file results, independent scoped review, and explicit remaining proof/placement gates. The requested private-Set test was removed. The actual main manifest conflict was resolved without rewriting the published branch; frozen-lock installation passed. Marked ready for review to request maintainer discussion, not as a merge-readiness claim. Bundled-versus-external ownership and installed/live isolation, delayed consultation, and stable-upgrade acceptance remain open; no private call data is published. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Author-owned CI findings are addressed on current head |
Merge a830e2e into the LiveKit provider branch. Adapt the RTC binding to StreamDisconnectGrace, inline host speech and end-call handling, and regenerate the config baseline and lockfile with the maintained tools. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…audio - stop() retries/rejects manager terminal persistence failures after carrier disposal, including retained terminal rooms with an active manager record. - Cancelled outbound admission with a failed final drain no longer gets terminalized as failed by the generic dial catch (typed ProviderSetupDurabilityError). - Track active audio readers per SID with exact-owner retirement so a resubscribed track is read again. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Resolve conflicts with current main: adopt the inline webhook exposure config type and real config owners in runtime tests, keep LiveKit dependencies on the current package version, and regenerate the lockfile and config baseline with the pinned pnpm. Co-Authored-By: Claude Opus 5.5 <[email protected]>
JavaScript and JSON Schema `$` already reject a trailing newline, so the extra end-of-input lookahead was redundant. Use synthetic extension fixtures in the regressions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Let shutdown disposal reject directly instead of rethrowing an unknown. - Mark the end-call tool's binding close as handled; completion tracking already reports close failures. - Realtime providers redact connect errors, so the connect-failure log now records whether the carrier session had already closed. This separates a LiveKit-side abort from a model relay failure without logging error content. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Updated the durable PR body with inspectable, redacted @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Resolve conflicts with main c5b56f2: - voice-call package.json/pnpm-lock: keep LiveKit SDK deps, take typebox 1.4.3 and jose 6.2.13 from main; jose 5.10.0 stays for livekit-server-sdk. - runtime.test.ts: keep the LiveKit lifecycle double and main's guarded Twilio request mock side by side. - config baseline: regenerated with pnpm config:docs:gen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve conflicts with origin/main aeeff2c: - voice-call package.json: take 2026.10.10 version, keep LiveKit deps and description. - realtime-handler.ts: keep the extracted createRealtimeTelephonyBinding; port main's removal of the idle-monitor armed log (openclaw#191794) into realtime-call-binding.ts and drop its now-unused idleHangupMs param. - config baseline counts/sha256: regenerated with config:docs:gen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Record exactly 2529 new test LF bytes against captured main for SIP/RTC admission, native audio, joined teardown and compiled-package boundaries. Use the documented per-change allocation mechanism; leave the shared baseline, test timeouts, assertions and production inputs unchanged.
|
Refreshed this existing PR onto current main and updated the durable body with exact source checks, the measured per-change test-line allocation repair, and inspectable complete-package / normal-install / private-lab transport evidence. Current head is @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Merge main da3cea2 into feat/livekit-provider (ae5340a). Conflicts resolved: - extensions/voice-call/package.json: main's 2026.11.1 version, keep the LiveKit description and dependencies. - pnpm-lock.yaml: main's lockfile re-resolved with pnpm 12.15.0 --lockfile-only; +206/-0 versus main, LiveKit entries only. - docs/.generated config baseline: regenerated with config:docs:gen.
Merge main 6a60076 into the published head 42099fa. Conflicts were metadata only: - extensions/voice-call/package.json: main's version 2026.11.4 with the LiveKit description and dependencies kept. - docs/.generated/config-baseline.{counts.json,sha256}: main's files, regenerated with pnpm config:docs:gen (plugin 5080 -> 5089). pnpm-lock.yaml merged cleanly; pnpm install --lockfile-only leaves it unchanged and its delta against main is the previously reviewed +206 LiveKit lines.
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
Preserve the upstream Twilio stream admission flow and attach LiveKit RTC only to its already-admitted manager call. Retain the current plugin version and regenerate the config baseline.
Related: #169991
What Problem This Solves
Operators who run telephony on LiveKit SIP cannot use Voice Call: it only accepts Twilio, Telnyx, Plivo, and mock carriers.
User Impact
Operators can select
provider: "livekit"to place and receive phone calls over a LiveKit SIP trunk. Native RTC audio feeds the existing Voice Call realtime bridge, so model, voice, agent consultation, tools, call history, and playback stay with their current owners. Existing carriers are unchanged.Supported:
inboundPolicy: "disabled") with no public webhook or media WebSocket.fromNumberas an E.164 number or, for LiveKit only, a 1–15 digit PBX extension. Targets and allowlists still require E.164, and other carriers still require an E.164fromNumber.wss://by default.allowInsecureWsallowsws://only to loopback or private literal IPs.Not supported: classic STT/TTS mode, carrier XML notify playback, pre-connect DTMF and
send_dtmf, and Twilio answering-machine detection. Restored calls are retired after a restart, not resumed. The Linux musl native binding is not supported.New runtime dependencies:
@livekit/rtc-node1.1.0 (native) andlivekit-server-sdk2.19.1. These need maintainer dependency review.Why This Change Was Made
The provider reuses the existing manager, realtime handler, and transcript owners instead of adding a separate LiveKit agent worker. Admission is rechecked immediately before the token-bearing RTC connect. Joined disposal persists final transcripts before the call terminates. Shutdown keeps manager finalization failures visible instead of reporting success after carrier cleanup.
Changes since the previously published head (42099fa)
main(6a6007663b3) to clear the new GitHub merge conflict. The new head is1634010b66c, a normal merge commit on top of42099fawith no rebase or history rewrite. All three conflicts were metadata only:extensions/voice-call/package.json: took main's2026.11.4version and kept the two LiveKit dependencies and the description that names LiveKit.counts.json,sha256): took main's files and regenerated withpnpm config:docs:gen; the plugin count is again +9 (5080 → 5089).pnpm-lock.yamlmerged without conflict.pnpm install --lockfile-only(pnpm 12.15.0) leaves the merged file byte-identical and the supply-chain policy check passes. Its delta againstmainis +206/−0 and is line-for-line the delta already published on42099fa; no dependency version changed in this refresh.42099fa. Comparinggit diff da3cea2 42099fawithgit diff 6a60076 1634010(lockfile excluded) shows only the regenerated baseline hashes and counts. Feature code, tests, docs,tsdown.config.tsand the test-line allocation are unchanged.mainchanged two files this PR also touches, and both merged cleanly as main wrote them: theisProviderConfiguredcontext pass-through inwebhook.ts(improve(talk): live transcription uses a saved Deepgram, ElevenLabs or Mistral API key #199858) and thetsdown.config.tsbuild restructuring (perf(build): halve warm rebuilds with hook filters, parallel asset hooks, cache-hit fixes and an optional worker bundle #198664, improve(build): reduce runtime source retained by module loaders #196386), where the single@livekit/rtc-nodeexternal entry keeps its place. No plugin SDK subpath imported by the LiveKit files changed exceptprovider-selection-runtime, whose only Voice Call caller is thatwebhook.tsline.Earlier refresh (ae5340a → 42099fa)
main(da3cea2ce4a) to clear the new GitHub merge conflict. The new head is42099fa42e8, a normal merge commit on top ofae5340awith no rebase or history rewrite. All four conflicts were metadata only:extensions/voice-call/package.json: took main's2026.11.1version and kept the two LiveKit dependencies and the description that names LiveKit.pnpm-lock.yaml: took main's lockfile and re-resolved it with pnpm 12.15.0--lockfile-only. The supply-chain policy check passed. Compared withmainit is still +206/−0 (LiveKit entries only). The one change from the earlier LiveKit delta is the transitivefast-copy4.3.1 (was 4.2.0), pulled in throughlivekit-server-sdk→pino-pretty.pnpm config:docs:gen; the plugin count is again +9.ae5340a; metadata and lockfile resolutions are described above. Comparinggit diff aeeff2c ae5340awithgit diff da3cea2 42099fa(lockfile excluded) shows only the regenerated baseline hashes and counts and theversioncontext line. Feature code, tests, docs,tsdown.config.tsand the test-line allocation are unchanged. Main's auto-merged Voice Call changes are kept as written: timer-probe cleanup (refactor(plugins): remove redundant native timer method probes #193309), TwiliolistenAfterPlayback/turnToken(fix(voice-call): preserve Twilio greetings and resume listening after silence #193137), manifest starter prompts (feat(plugins): add short starter prompts with activation confirmation #193694), and the harness serviceapiVersioncheck (feat(plugins): reauthorize accepted session work #176886).Earlier refresh (8278146 → 59eeeba → ae5340a)
main(aeeff2c6340) to clear the GitHub merge conflict. This is a normal merge commit on top of8278146, with no rebase or history rewrite. Conflicts:extensions/voice-call/package.json: took main's2026.10.10version and kept the two LiveKit dependencies and the description that names LiveKit.realtime-handler.ts: kept the extractedcreateRealtimeTelephonyBinding. Main's removal of the "idle monitor armed" log (fix(voice-call): end silent outbound realtime calls #191794) is ported intorealtime-call-binding.ts, and that file's now-unusedidleHangupMsparameter is dropped. Main's other realtime-handler changes auto-merged and are present: transcription language, transcript start timestamps, playback echo filtering, and greeting protection.pnpm config:docs:gen.main,pnpm-lock.yamlis +206/−0 (LiveKit entries only).extensions/openaiis unchanged, and fix(openai): voice calls fail when starting GPT-Live from plugin scope #189358 (181342878c0) is still an ancestor.ae5340aadds onlyconfig/test-lines-allocations/livekit-voice-call-provider-170000.txt, using the documented per-change allocation mechanism. The record explains the SIP/RTC admission, native audio, joined cleanup and compiled-package regression coverage. The shared baseline scalar, assertions, timeouts and production/build/dependency bytes are unchanged. The staged ratchet passes with 25 lines of headroom; this is not a blanket exception or a claim that the earlier failed hosted run passed.Evidence
Focused source checks used local offline fixtures. No phone calls, inference sessions or production credentials were involved.
Source head:
1634010b66c058159a86512d1db4cc8a90570c0d, which merges main6a6007663b36db8badd6967e7f2bed5c6b3a724einto the previously published42099fa42e8fb11b963a845848b4542bd2e0a92c. Pinned pnpm 12.15.0 frozen install. Local checks ran serially on a shared 9.9 GiB Linux host inside a task-owned cgroup capped at 3 GiB RAM, 1 GiB swap and two CPUs, so that no check could disturb other processes on the host.Not run locally on this head; exact-head hosted CI is required for each:
tsgo:extensions:test, type-aware oxlint on the changed Voice Call files, and the extension package-boundary compile. The first two exceeded the cap; the third was not attempted.database-workeranddatabase-dialectratchets (native TypeScript inventory). Not attempted here; the PR's only SQLite use is a syntheticnode:sqlitereopen inside a test file.Passed locally on this head:
tsgo:extensions(production typecheck of all extensions against the new base).6a60076: max-lines (including the env-var budget), line-cap (27 changed source files), assertion-safety, session-identity, timeout-race, mock-exports. Test lines pass: net +2,529, covered by the existing 2,529-line allocation record.git diff --check.Earlier head 42099fa (historical, not claimed for the current head)
Tested source head at that time:
42099fa42e8fb11b963a845848b4542bd2e0a92c, which merges mainda3cea2ce4a280ac6acc89b62693a19c6534f68dinto the previously publishedae5340a0e49c8c3fb999df9b0dc55f0603fa94a4. Pinned pnpm 12.15.0 frozen install. Checks ran serially on a shared 16-core / 9.9 GiB Linux host.test/scripts/tsdown-livekit-packaging.test.ts): 3 of 3 pass. The coldverbose=0build took 8.7 s.tsgo:extensionsandtsgo:extensions:testpass.da3cea2. That selection is codex, slack, telegram and voice-call.extensions/voice-callpasses.check:baseline-ratchets --base da3cea2runs line-cap, max-lines (including the env-var budget), assertion-safety, database-dialect, timeout-race, mock-exports, config docs and plugin inventory. All of them pass. Test lines also pass: 6,585,292 against a ceiling of 6,585,292, so the existing 2,529-line allocation is still exact.database-workerratchet did not complete locally. Its native TypeScript inventory child was OOM-killed on this 9.9 GiB host, in repeated attempts. This local gap is now covered by the successful exact-head hostedchecks-fast-baseline-ratchetsjob in CI run 42508135014; no local retry or bypass was used. The PR's only SQLite use is a syntheticnode:sqlitereopen inside a test file.tsgo:test:rootfails with 57 errors, all inherited frommain:mainworktree atda3cea2with its own frozen install gives the same 57 errors, line for line.42099fa. The compiled and lab evidence below was produced on the earlier59eeebaartifact. It is kept for history and is not claimed for this head.1634010. The compiled and lab evidence below was produced on the earlier59eeebaartifact. It is kept for history and is not claimed for this head.Earlier evidence: compiled package and private-lab runtime for
59eeeba(not the current head)voice-call: exit 0, 596.90 seconds, peak RSS 3,104,784,384 bytes; tarball integrity passed. Source stayed clean and manifests/lock unchanged. Control UI performance diagnostics were advisory; this is not independent performance qualification.78bffb1b6a3bf4c59d8a4521275520be53d0f7c7ec36305815a3e426bc59d3d1. Original build ID:2026.10.10-59eeeba60a54-2026-11-04T21-07-33.125Z.origin: bundled, trustbundled; initialized durable state, readinessready:true/failing:[], empty active-call and room inventories.2026.10.9prefix was normally upgraded to the exact59eeebaarchive. The unchanged config initially failed public CLI admission on legacyagents.defaults.heartbeat; the documenteddoctor --fix --yes --non-interactive --no-workspace-suggestionsmigration (not a manual deletion) completed with exit 0. It removed the legacy disabled heartbeat setting and performed ordinary Doctor metadata/agent/skill housekeeping. The original workspace marker and config validation then passed in separate clean-environment processes; 46 mirrored receipts verify by checksum. Exact main already owns this migration; the carrier has no config/Doctor source delta from that parent. This proves the previous-release configuration update path with Doctor, not current-latest stable carrier-history migration. npm latest is now2026.10.10, whose older official build has a different pre-Doctor contract despite the same version label. No synthetic SQLite history or successful model/consult response was injected.Private operator testing (summary only):
DataCloneErrorat media-worker construction, not a SIP delivery failure. The shared fix is fix(openai): voice calls fail when starting GPT-Live from plugin scope #189358, merged intomainand now included through this merge.3488f3f09731c1e1c0f83e9ce7ab7f080b0f70be, a short two-way conversation completed normally for about 89 seconds. That candidate contained carrier head9163172, the fix(openai): voice calls fail when starting GPT-Live from plugin scope #189358 fix, and temporary startup diagnostics. The caller confirmed clear speech and replies. Caller and assistant aggregate finals survived reopening the durable store. This human-confirmed conversation proof is for that candidate only. None of8278146,59eeebaor42099fahas a human-confirmed conversation result, and this PR does not claim to fix the separately investigated silent-call/startup issue. The narrower real private-lab SIP/RTP attempts on59eeebaare described above. The historical conversation is not current installed-package, inbound, isolation, consultation, upgrade or production acceptance.Event log from the recorded call on candidate 3488f3f (redacted)
This projection keeps the event timestamps and types from the original Gateway JSONL log. Session IDs are replaced with consistent aliases, and all utterances, endpoints, and credentials are removed.
{"time":"2026-10-31T11:53:41.875Z","session":"CALL_A","event":"session.started","provider":"openai","transport":"gateway-relay"} {"time":"2026-10-31T11:53:44.728Z","session":"CALL_A","event":"session.ready","provider":"openai","transport":"gateway-relay"} {"time":"2026-10-31T11:53:46.008Z","session":"CALL_A","event":"output.audio.started","provider":"openai","transport":"gateway-relay"} {"time":"2026-10-31T11:55:11.056Z","session":"CALL_A","event":"input.audio.committed","provider":"openai","transport":"gateway-relay","final":true} {"time":"2026-10-31T11:55:11.060Z","session":"CALL_A","event":"output.audio.done","provider":"openai","transport":"gateway-relay","final":true} {"time":"2026-10-31T11:55:11.061Z","session":"CALL_A","event":"session.closed","provider":"openai","transport":"gateway-relay","final":true}The call ended
completedafter 89,344 ms. Both caller and assistant aggregate finals were saved, and reopening the durable store confirmed them (quick_check=ok). Aggregate callback timestamps do not show per-turn latency.Open before merge
ci-gateanddependency-revieware waiting on this. The author is not requesting or issuing that approval.DataCloneError): merged as181342878c0and included through this merge.1634010has not run yet. It must cover the Voice Call tests, the LiveKit packaging test, the extension test typecheck, lint, the package-boundary compile and the database ratchets listed under Evidence as not run locally. The new head also needs its own maintainer approval and dependency review; the lockfile delta is unchanged from42099fa.42099facompleted successfully: run 42508135014, includingchecks-fast-baseline-ratchets. No job failed or was cancelled in that technical workflow. This covers the local database-worker ratchet resource gap. Separate maintainer admission still blocks merging; technical CI success does not grant dependency approval. The older CI results below remain historical.59eeebafound the missing per-change test allocation; that original failure remains disclosed. On the earlier headae5340a, technical CI is terminal: 65 CheckRuns succeeded, 67 skipped, 1 neutral, zero failures/cancellations/timeouts/in-progress. Bothchecks-fast-baseline-ratchetsand the technical workflow job namedopenclaw/ci-gatesucceeded; Darwin tooling succeeded too. Skipped and neutral checks are not counted as passing tests. The separate admission workflow completed its resolution/review jobs successfully, but the status contextsopenclaw/ci-gate(failure) andopenclaw/dependency-review(pending) still explicitly require a maintainer to approve this revision. They are not technical test failures and were not bypassed. The new head42099faneeds its own maintainer approval, including dependency review of the re-resolved transitive[email protected].1634010or on42099fa. For42099fa: An independent parent review of the final committed tree verified the four metadata merge resolutions, unchanged feature-patch bytes, exact tested-tree identity, clean worktree, dependency delta, preserved upstream changes, terminal focused-test logs and the exact-main root-typecheck comparison. No refresh-specific actionable finding was identified; this is not a full independent re-review of the original carrier implementation. Earlier, an independent parent review inspected the59eeebamerge resolutions, dependency and package scope, preserved upstream behavior, and terminal verification logs, and identified no actionable refresh-specific findings. None of this is a canonical autoreview or a complete independent re-review of the original carrier implementation.Status unchanged: ready for review, not ready to merge.
Refresh review
An independent parent review checked this exact committed range against main
6a6007663b3, the merge resolutions, preserved upstream owners and terminal verification logs. The carrier feature and dependency patch was independently compared with the previous published range and remains unchanged. For the shutdown repair, the parent also reran the real-process fixture on9ef4c65under a task-owned memory cgroup: it settled in 460 ms while the adopted child was a zombie, with all four fixture checks passing. This is a focused refresh review, not a canonical autoreview, not full original-feature re-review, and not a current installed Gateway or conversation proof. The disclosed missing Vitest / resource-limited checks still require exact-head hosted CI.