Repository navigation
fix(voice-call): unblock unused-export checks - #166147
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 maintainer review before merge. Reviewed October 6, 2026, 11:03 AM ET / 15:03 UTC (Revision 3). ClawSweeper reviewWhat this changesRemove an unused private voice-call type re-export so unused-export checks can pass while preserving per-call brief support. Merge readiness✅ Ready for maintainer review Keep open: the cleanup remains necessary on fetched main, preserves existing callers, and introduces no actionable defect. The author’s MEMBER association also excludes automatic closure. Priority: P3 Review scores
Verification
How this fits togetherThe voice-call plugin accepts per-call briefs through tools and CLI commands, validates them, and uses them to guide phone conversations. This change affects its internal TypeScript exports and static checks. flowchart LR
A[Tools and CLI] --> B[Brief validation]
B --> C[Outbound call options]
C --> D[Phone conversation]
E[Private type module] --> F[Unused-export checks]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1. Total -1 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the canonical brief exports and remove the unused private alias without changing runtime behavior or supported plugin contracts. Do we have a high-confidence way to reproduce the issue? Yes, source inspection identifies the unused main-branch re-export and the configured unused-export checks; the PR reports baseline failures. This read-only review did not execute the scans. Is this the best way to solve the issue? Yes, removing the unconsumed private alias is the narrowest repair; the canonical type export, schema, and existing consumers remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 493b90b2ba91. 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
History |
|
Merged via squash.
|
## What Problem This Solves Removes redundant guard bookkeeping in tool-call repair as part of the requested internal simplification. ## User Impact No intended runtime behavior or public API change. Fence protection, ambiguous-input fallback, and incomplete payload handling remain unchanged. ## Why This Change Was Made The fence scanner already rejects indented openings before recording protection, so it can record the resolved fence state directly. An early incomplete-prefix return duplicates the later undefined block-end return. ## Evidence - Independent source/diff review and scoped autoreview found no actionable findings; the reviewed two-file patch is unchanged after incorporating main. - The original aggregate failed on the baseline `CallBrief` re-export. Its other 31 commands passed, including the separately completed nine-command suffix. The blocker was repaired separately in #166147. - Refreshed native plan: all 32 commands covered by seven input-qualified retained passes and 25 fresh passes, including all three unused-export scans and all 27 core-test type graphs. - Fresh whole focused suites passed: protection fast path (13), stream normalizer (52), payload (27), and the SDK tool-payload consumer (38): 130 tests across four files, zero skips. - Exact-head required hosted CI and native landing gates remain required. This does not claim complete CommonMark coverage or live-provider proof.
## What Problem This Solves Removes redundant guard bookkeeping in tool-call repair as part of the requested internal simplification. ## User Impact No intended runtime behavior or public API change. Fence protection, ambiguous-input fallback, and incomplete payload handling remain unchanged. ## Why This Change Was Made The fence scanner already rejects indented openings before recording protection, so it can record the resolved fence state directly. An early incomplete-prefix return duplicates the later undefined block-end return. ## Evidence - Independent source/diff review and scoped autoreview found no actionable findings; the reviewed two-file patch is unchanged after incorporating main. - The original aggregate failed on the baseline `CallBrief` re-export. Its other 31 commands passed, including the separately completed nine-command suffix. The blocker was repaired separately in openclaw/openclaw#166147. - Refreshed native plan: all 32 commands covered by seven input-qualified retained passes and 25 fresh passes, including all three unused-export scans and all 27 core-test type graphs. - Fresh whole focused suites passed: protection fast path (13), stream normalizer (52), payload (27), and the SDK tool-payload consumer (38): 130 tests across four files, zero skips. - Exact-head required hosted CI and native landing gates remain required. This does not claim complete CommonMark coverage or live-provider proof.
Prune obsolete profile mock allowances and keep the media session type private after moving its last external consumer. Carry Vincent Koc’s already-landed private CallBrief export fix from #166147 so the pinned base passes the same unused-export guard.
Remove the unused CallBrief type re-export from the private voice-call types module. Keep its private import, OutboundCallOptions.brief, schema, and canonical call-brief.ts exports unchanged. No intended runtime or public API change. Validation: 28 native changed-check commands covered, including all three unused-export scans and extension typechecks; 16 tests in the whole CallBrief suite and six native doctor-contract tests passed. Independent source review and scoped autoreview found no actionable findings. Co-authored-by: Vincent Koc <[email protected]>
## What Problem This Solves Removes redundant guard bookkeeping in tool-call repair as part of the requested internal simplification. ## User Impact No intended runtime behavior or public API change. Fence protection, ambiguous-input fallback, and incomplete payload handling remain unchanged. ## Why This Change Was Made The fence scanner already rejects indented openings before recording protection, so it can record the resolved fence state directly. An early incomplete-prefix return duplicates the later undefined block-end return. ## Evidence - Independent source/diff review and scoped autoreview found no actionable findings; the reviewed two-file patch is unchanged after incorporating main. - The original aggregate failed on the baseline `CallBrief` re-export. Its other 31 commands passed, including the separately completed nine-command suffix. The blocker was repaired separately in openclaw#166147. - Refreshed native plan: all 32 commands covered by seven input-qualified retained passes and 25 fresh passes, including all three unused-export scans and all 27 core-test type graphs. - Fresh whole focused suites passed: protection fast path (13), stream normalizer (52), payload (27), and the SDK tool-payload consumer (38): 130 tests across four files, zero skips. - Exact-head required hosted CI and native landing gates remain required. This does not claim complete CommonMark coverage or live-provider proof.
* perf(profiles): prepare disclosure through the profile reader Read self-profile details with the existing authority snapshot, prepare exact project aliases in the reader, and hydrate the resident catalog without native SQL. Keep physical-store aliases attached to one replacement catalog and retain current profile facts for cookie and media disclosure. Preserve synchronous SDK fallbacks, existing schemas, write ordering, settlement, and permission behavior. * fix(profiles): reject inadmissible cookie reads before preparation Select one agreeing cookie profile reference before preparing its catalog, and avoid starting preparation for responses that already ended or closed. Keep the final policy and post-await lifetime checks. Exercise the real asynchronous HTTP boundary and preserve zero storage work for mixed grants and terminal responses. * chore(profiles): keep ticket assertion invariant adjacent * chore(profiles): finish cutover guard cleanup Prune obsolete profile mock allowances and keep the media session type private after moving its last external consumer. Carry Vincent Koc’s already-landed private CallBrief export fix from #166147 so the pinned base passes the same unused-export guard. * refactor(gateway): express projection startup drain condition * fix(gateway): satisfy profile cutover lint contracts * test(gateway): finish profile reader fixture migration * refactor(gateway): reuse prepared row owner type Reuse the existing prepared-reader owner parameter type for projection callbacks, removing the duplicated structural declaration. This restores the line cap without changing emitted JavaScript or runtime behavior. * perf(sessions): skip unused worker participant profile reads Resolve profile aliases only after an exact participant miss in the sharing worker. Preserve native eager preparation, merge attribution, participant limits, and transaction publication through the shared implementation. * perf(trajectory): reuse retention facts for metadata patches Advance the active sweep's committed mutation counter after session metadata patches without re-aggregating unchanged trajectory rows. Keep foreign-write, lease, rollback and connection-lifetime checks and the existing append/trim receipt behavior. Cover the worker patch boundary for commit, generation replacement, rollback and foreign writes, including the aggregate-read budget and retention outcome. * refactor(gateway): derive stored entry type from projection row Reuse the row owner's optional stored-entry type and remove the redundant session-entry type import. This keeps the integrated projection within its line limit with byte-identical emitted JavaScript and no signature change. * test(sessions): split metadata retention coverage from patch suite Move the six retention cases without changing their assertions and share the existing database fixture. Keep the patch suite within its line budget while preserving both callback and worker-reducer coverage.
…aw#166283) * perf(profiles): prepare disclosure through the profile reader Read self-profile details with the existing authority snapshot, prepare exact project aliases in the reader, and hydrate the resident catalog without native SQL. Keep physical-store aliases attached to one replacement catalog and retain current profile facts for cookie and media disclosure. Preserve synchronous SDK fallbacks, existing schemas, write ordering, settlement, and permission behavior. * fix(profiles): reject inadmissible cookie reads before preparation Select one agreeing cookie profile reference before preparing its catalog, and avoid starting preparation for responses that already ended or closed. Keep the final policy and post-await lifetime checks. Exercise the real asynchronous HTTP boundary and preserve zero storage work for mixed grants and terminal responses. * chore(profiles): keep ticket assertion invariant adjacent * chore(profiles): finish cutover guard cleanup Prune obsolete profile mock allowances and keep the media session type private after moving its last external consumer. Carry Vincent Koc’s already-landed private CallBrief export fix from openclaw#166147 so the pinned base passes the same unused-export guard. * refactor(gateway): express projection startup drain condition * fix(gateway): satisfy profile cutover lint contracts * test(gateway): finish profile reader fixture migration * refactor(gateway): reuse prepared row owner type Reuse the existing prepared-reader owner parameter type for projection callbacks, removing the duplicated structural declaration. This restores the line cap without changing emitted JavaScript or runtime behavior. * perf(sessions): skip unused worker participant profile reads Resolve profile aliases only after an exact participant miss in the sharing worker. Preserve native eager preparation, merge attribution, participant limits, and transaction publication through the shared implementation. * perf(trajectory): reuse retention facts for metadata patches Advance the active sweep's committed mutation counter after session metadata patches without re-aggregating unchanged trajectory rows. Keep foreign-write, lease, rollback and connection-lifetime checks and the existing append/trim receipt behavior. Cover the worker patch boundary for commit, generation replacement, rollback and foreign writes, including the aggregate-read budget and retention outcome. * refactor(gateway): derive stored entry type from projection row Reuse the row owner's optional stored-entry type and remove the redundant session-entry type import. This keeps the integrated projection within its line limit with byte-identical emitted JavaScript and no signature change. * test(sessions): split metadata retention coverage from patch suite Move the six retention cases without changing their assertions and share the existing database fixture. Keep the patch suite within its line budget while preserving both callback and worker-reducer coverage.
What Problem This Solves
The unused-export check fails on an unconsumed
CallBrieftype re-export in the private voice-call types module.User Impact
No intended runtime or public API change.
Why This Change Was Made
Remove only the unused re-export. Keep the private type import,
OutboundCallOptions.brief, schema, and canonical exports incall-brief.ts.Evidence
call-brief.test.ts: 16 passed, zero skipped. The native plan also passed six doctor-contract tests in two whole files.