Skip to content

refactor(agents): remove unused catalog runtime export - #166077

Merged
vincentkoc merged 1 commit into
mainfrom
fix/voice-call-private-greeting-fallback
Oct 6, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/voice-call-private-greeting-fallback

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The unused-export gate exposed an unused voice-call constant export and an unused model-catalog runtime alias. The exact voice-call cleanup has since landed in #166037; the catalog alias and its obsolete test spy remain.

User Impact

No intended runtime or public API change.

Why This Change Was Made

  • Remove the unused loadManifestModelCatalog re-export from the runtime barrel, while retaining its implementation and direct consumers.
  • Remove the obsolete spy on that alias from the reply config-override test. All assertions and prepared-catalog mocks remain.

The tested branch also contains the voice constant cleanup already present on main. It is not a new voice-call change in this landing.

Evidence

  • Full unused-export gate: production, script, and full-tree scans pass.
  • Four whole focused suites: 45 tests passed, no skips, covering voice-call session control, reply config overrides, model catalog, and the SDK catalog contract.
  • pnpm build passed, including public SDK declaration validation. Non-blocking toolchain and bundle warnings remain recorded.
  • Native 39-command changed-check plan fully covered: eight unchanged-input results retained, the repaired unused-export gate passed, and all remaining 30 commands passed, including all 27 core-test type graphs. The selected doctor contract suites separately passed 6 tests across 2 files.
  • Fresh scoped review: no actionable findings.

The original one-file aggregate failure remains part of the investigation; it is not reported as a passing run. Exact-head hosted CI is still required before landing. No live voice-call behavior is claimed from the fixture suites.

@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 agents Agent runtime and tooling 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
@vincentkoc
vincentkoc marked this pull request as ready for review October 6, 2026 10:42
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 6:46 AM ET / 10:46 UTC (Revision 2).

ClawSweeper review

What this changes

The branch removes an unused model-catalog runtime re-export and its obsolete test spy, and makes a voice-call greeting constant private.

Merge readiness

✅ Ready for maintainer review

The remaining catalog cleanup is still useful and has no actionable correctness findings. The merged voice-call cleanup covers only the overlapping constant change; this member-authored PR should remain open.

Priority: P3
Reviewed head: 96e93b88c73e966fcee3d3f0e5f63cadfdd09149

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with reported validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored internal cleanup is exempt from contributor runtime proof; source confirms retained catalog implementations and unchanged voice-call timing. Reported suites and build are supplemental validation, and 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 internal cleanup is exempt from contributor runtime proof; source confirms retained catalog implementations and unchanged voice-call timing. Reported suites and build are supplemental validation, and no stored-data contract changes.
Evidence reviewed 7 items Pinned introduced patch: The merge-base-to-head patch changes only export visibility and removes one test spy; implementations, assertions, and prepared-catalog mocks remain.
Current-main necessity: Fetched main still exports loadManifestModelCatalog through the runtime barrel and retains the obsolete spy. The latest supplied release is v2026.9.8; its runtime barrel also retains the alias, so the central cleanup remains outstanding.
Consumer and public-boundary check: Active manifest-catalog consumers import model-catalog.js directly. Reply selection accesses the retained prepared snapshot and scoped thinking helpers. Searches of SDK sources, package exports, and plugin docs found no public contract for the removed runtime alias.
Findings None None.
Security None None.

How this fits together

The model catalog combines plugin metadata and configured models for agent model selection. Reply handling consumes lifecycle-prepared catalog helpers, while manifest-catalog consumers access the implementation directly.

flowchart LR
  A[Plugin model metadata] --> C[Manifest catalog builder]
  B[Configured models] --> C
  C --> D[Prepared model catalog]
  D --> E[Runtime catalog helpers]
  E --> F[Reply model selection]
  C --> G[Direct catalog consumers]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -1, Tests -1. Total -2 across 3 files.

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

Review metrics

None.

Technical review

Best possible solution:

Keep catalog access on its existing owners and remove the unused internal alias without changing public SDK behavior.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is dead-export cleanup, and source inspection confirms the remaining alias is unused by production consumers.

Is this the best way to solve the issue?

Yes: removing the internal re-export and its unused spy preserves the implementation, direct consumers, and behavioral assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8dc04b001e10.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This removes unused internal exports and test setup without changing intended user behavior.
  • 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 internal cleanup is exempt from contributor runtime proof; source confirms retained catalog implementations and unchanged voice-call timing. Reported suites and build are supplemental validation, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: 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 (1 earlier review cycle)
  • reviewed 2026-10-06T10:40:56.413Z sha 96e93b8 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc merged commit ece9d9c into main Oct 6, 2026
198 checks passed
@vincentkoc
vincentkoc deleted the fix/voice-call-private-greeting-fallback branch October 6, 2026 11:24
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
Remove the unused catalog runtime re-export and its obsolete test spy.

Keep the catalog implementation, direct consumers, prepared-catalog mocks, and behavioral assertions unchanged.
RomneyDa pushed a commit that referenced this pull request Oct 7, 2026
Remove the unused catalog runtime re-export and its obsolete test spy.

Keep the catalog implementation, direct consumers, prepared-catalog mocks, and behavioral assertions unchanged.

(cherry picked from commit ece9d9c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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