Repository navigation
refactor(voice-call): deslop voice-call - #165276
Conversation
Consolidate carrier request and status configuration behind the existing provider contract. Remove redundant transcript, call-manager, runtime, CLI, and configuration plumbing while preserving carrier wire formats, webhook verification/replay, call ownership, persisted records, and public surfaces. Remove 546 net production TypeScript lines (15,786 to 15,240; 3.46%). Retain the contract-bearing paths after full subsystem coverage.
|
🦞👀 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: blocked before merge. Reviewed October 4, 2026, 10:44 PM ET / October 5, 2026, 02:44 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR consolidates Voice Call carrier requests, configuration defaults, transcript persistence, playback cleanup, and CLI plumbing while preserving existing behavior. Merge readiness⛔ Blocked before merge - 1 item remains The earlier stored-data compatibility blocker is resolved: source inspection confirms no changed stored-data contract or migration executor. No actionable introduced defect was found, and the refactor remains useful. Priority: P3 Review scores
Verification
How this fits togetherVoice Call connects OpenClaw agents to telephone carriers. It turns CLI, tool, and webhook inputs into call controls, spoken responses, and persisted call history. flowchart TD
A[CLI and agent tools] --> C[Voice Call manager]
B[Carrier webhooks] --> C
C --> D[Carrier request adapter]
D --> E[Telephone carriers]
C --> F[SQLite call history]
E --> G[Audio and transcripts]
G --> C
Before merge
Agent review detailsSecurityNone. PR surfaceSource -546, Tests +12, Other -1. Total -535 across 29 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one carrier transport owner and the existing persistence and migration contracts, without adding a migration for this refactor. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-preserving refactor, and source inspection found no introduced bug requiring reproduction. Is this the best way to solve the issue? Yes: consolidating private carrier and lifecycle plumbing is a focused maintenance path, and the inspected diff preserves the existing public and stored-data contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d4ce3b2f33d4. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review The Evidence section now explicitly records stored-data compatibility for this head. CallRecordSchema, the call-record store, and the config migration owner have no base-to-head changes; no SQL schema, migration identity, or executor changes. The full passing voice-call suite includes Doctor SQLite repair/legacy-source, config migration, persistence, and restore tests, and the before/after config-schema/default-sharing comparison passed. Please reconcile the filename-based data-model blocker with that evidence and the review's finding that no stored-data contract changed. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Consolidate carrier request and status configuration behind the existing provider contract. Remove redundant transcript, call-manager, runtime, CLI, and configuration plumbing while preserving carrier wire formats, webhook verification/replay, call ownership, persisted records, and public surfaces. Remove 546 net production TypeScript lines (15,786 to 15,240; 3.46%). Retain the contract-bearing paths after full subsystem coverage.
What Problem This Solves
Voice-call repeats carrier request configuration and owner-state plumbing across its PSTN, realtime, call-manager, and CLI paths, increasing maintenance cost.
User Impact
No user-visible change. Every feature, CLI/RPC/tool description, configuration key/default, persisted call shape, carrier payload, signature/replay rule, and number-ownership check is preserved. No migration or operator action is required.
Why This Change Was Made
VoiceCallProvideradapter contract and configure one shared carrier HTTP/status owner, retaining each carrier's headers, audit/error labels, regional host restrictions, and recovery behavior.Production TypeScript: 15,786 → 15,240 LOC, net −546 (3.46%), including the new shared carrier module and excluding tests, fixtures/support, docs, and generated metadata. Tests gain 12 fixture-adapter lines; behavioral assertions are unchanged. This is the single below-1,000 batch after full feature coverage; it does not meet the requested 20% reduction.
Evidence
node scripts/run-vitest.mjs extensions/voice-call— 68 files, 748 tests passed, two shards in 83.07 s.--maxWorkers=1: 1.26 s Vitest / 2.48 s wrapper wall time; equivalent CI work is one existing nine-test suite, with no added assertions or test cases.plugin-sdk-runtime-api-guardrails.test.ts:309expects 38 runtime API surfaces but finds 39 becauseextensions/x/runtime-api.tsis absent from its expected list. The identical failure reproduces on clean basedc518bfca481d64aef69f9a4f8435fc6d46ed46d, with the voice-call patch removed. None of those contract inputs changed here.node scripts/check-changed.mjspassed completely on the final candidate, including production/test types, all changed-file lint, ratchets, Doctor contracts, boundaries and dead-export scans. Final realtime handler/lifecycle rerun: 60 tests passed.src/types.ts(includingCallRecordSchema),src/manager/store.ts, andsrc/config-migration.tsunderextensions/voice-call. No SQL schema, migration identity, or migration executor changes. Doctor edits only replace description dispatch; setup edits retain the existing config migration owner and cloned output. The passing full suite includesdoctor-contract-api.test.ts(plugin-local SQLite repair and retained legacy-source behavior),config-migration.test.ts,manager/store.test.ts, andmanager.restore.test.ts. Exact config schema/default parity also passed. There is no changed data model requiring a new upgrade migration.Full coverage log: every production file over 200 lines
All smaller production files were also read. Larger reductions were rejected where they changed callback identity, exception propagation, transfer-error ordering, pacing/receipt accounting, or lifecycle authority. The exact signature implementation, record store, and persisted schemas remain unchanged.