Skip to content

fix(voice-call): unblock unused-export checks - #166147

Merged
vincentkoc merged 1 commit into
mainfrom
fix/voice-call-unused-brief-export
Oct 6, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/voice-call-unused-brief-export

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The unused-export check fails on an unconsumed CallBrief type 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 in call-brief.ts.

Evidence

  • Reproduced the production and full-tree unused-export failures on the frozen baseline.
  • Native changed-check plan: all 28 commands covered, with seven prior passes qualified against unchanged inputs and 21 fresh passes, including all three unused-export scans and extension typechecks.
  • Whole call-brief.test.ts: 16 passed, zero skipped. The native plan also passed six doctor-contract tests in two whole files.
  • Independent diff review and fresh scoped P2 autoreview found no actionable findings.
  • Exact-head hosted CI remains required before landing. No live telephone-call proof is claimed.

@vincentkoc vincentkoc self-assigned this Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: voice-call Channel integration: voice-call size: XS labels Oct 6, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 11:03 AM ET / 15:03 UTC (Revision 3).

ClawSweeper review

What this changes

Remove 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
Reviewed head: 533d7e8220e13ad29ae61402e594e2afd969cf5d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, supported cleanup with preserved consumers and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR removes only a private type re-export, so contributor runtime proof is exempt; reported static scans and CI address the changed check surface. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR removes only a private type re-export, so contributor runtime proof is exempt; reported static scans and CI address the changed check surface. No stored-data contract changes.
Evidence reviewed 7 items Pinned introduced change: The pinned merge-base-to-head diff removes only the type-only CallBrief re-export; its private import and OutboundCallOptions.brief remain.
Still necessary on main: Fetched main retains the unused re-export. The supplied GitHub context identifies no merged fixing PR.
Existing callers and private boundary: Repository reference inspection finds CallBrief consumers importing from call-brief.ts or call-brief-schema.ts. The canonical export remains in call-brief.ts, api.ts does not expose this type, and extensions/AGENTS.md defines src helpers as private unless deliberately promoted.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -1. Total -1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 0 1 -1
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 1 -1

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #166147
Summary: This remains the open candidate for the identical unused-export cleanup.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a narrow static-check cleanup with no runtime, configuration, or public API change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR removes only a private type re-export, so contributor runtime proof is exempt; reported static scans and CI address the changed check surface. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The pinned merge-base-to-head diff removes only the type-only CallBrief re-export; its private import and OutboundCallOptions.brief remain. (extensions/voice-call/src/types.ts:2, 533d7e8220e1)
  • Still necessary on main: Fetched main retains the unused re-export. The supplied GitHub context identifies no merged fixing PR. (extensions/voice-call/src/types.ts:4, 493b90b2ba91)
  • Existing callers and private boundary: Repository reference inspection finds CallBrief consumers importing from call-brief.ts or call-brief-schema.ts. The canonical export remains in call-brief.ts, api.ts does not expose this type, and extensions/AGENTS.md defines src helpers as private unless deliberately promoted. (extensions/voice-call/src/call-brief.ts:4, 533d7e8220e1)
  • Actual merge result: The test merge has the exact pinned base followed by the exact PR head as recorded parents. Its diff against that base contains the same single type-only removal. (extensions/voice-call/src/types.ts:2, d518b1f19215)
  • Feature history: The available patch and raw parent record for the merged brief feature show the type import, redundant re-export, and brief option added together. Recent path history also identifies Peter Steinberger’s ownership and refactor work. (extensions/voice-call/src/types.ts:2, 9fa2a214dde1)
  • Related submission and validation: Captured GitHub context shows fix: remove unused voice-call type export #166154 proposes the identical cleanup and was closed unmerged. This PR reports baseline failures, passing unused-export scans and typechecks; captured exact-head CI reports a successful ci-gate. Previous reviews of this same head retained no findings. (533d7e8220e1)

Likely related people:

  • Mariano: Raw commit 9fa2a21 adds extensions/voice-call/src/types.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9fa2a214dde1; files: extensions/voice-call/src/types.ts)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-06T14:46:57.777Z sha 533d7e8 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-06T14:53:32.561Z sha 533d7e8 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review October 6, 2026 14:50
@vincentkoc
vincentkoc merged commit 27d3746 into main Oct 6, 2026
180 checks passed
@vincentkoc
vincentkoc deleted the fix/voice-call-unused-brief-export branch October 6, 2026 15:08
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Oct 6, 2026
## 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.
github-actions Bot pushed a commit to kickb1049kickb10492660/openclaw that referenced this pull request Oct 6, 2026
## 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.
steipete added a commit that referenced this pull request Oct 6, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
## 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.
steipete added a commit that referenced this pull request Oct 7, 2026
* 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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant