Skip to content

fix(ci): unused exports fail the dependency check - #198510

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/marine-lobster
Nov 14, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/marine-lobster

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #198306

What Problem This Solves

Fixes: main CI's dependency check fails when module-private implementation details are unnecessarily exported.

User Impact

No user-visible change. This removes five of the six findings in the observed main failure. The separate release-waiver finding was fixed by #198306, independently merged as a108302.

Why This Change Was Made

Keep the five implementation details private rather than suppressing Knip. Migrate the two Telegram test consumers to the existing public update boundary, preserving message identity, all assertions, and explicit three-second accepted/four-second rejected coverage. No production behavior or waiver files change.

Evidence

Contributor credit: @obviyus and @steipete.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 14, 2026 00:15
The check-dependencies job reported six unused exports. Keep the five
unclaimed implementation details private without changing their behavior;
PR #198306 by vincentkoc covers the separate release waiver table, which
remains untouched here.

QA_UX_STREAM_END_MARKER and TELEPORT_PT were introduced by #198293.
adoptTelegramDmTopicMessage and TELEGRAM_DM_TOPIC_ADOPT_WINDOW_SEC came
from #169444; migrate their direct tests to adoptTelegramDmTopicUpdate
and retain the explicit three-second accepted/four-second rejected window.
ChatModelRuntimeControl came from #192137 and keeps its local renderer.

Pinned formatting passes and independent P0-P2 review is clean. Named
tests could not collect without runtime dependencies; scoped lint could
not start with a wrapper import outside the requested sparse checkout.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
Worked on by:
- @obviyus
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 3bcacc77-7216-8f2e-9e43-4c1cf827724f
@clawsweeper

clawsweeper Bot commented Nov 14, 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: telegram Channel integration: telegram app: web-ui App: web-ui scripts Repository scripts extensions: qa-lab size: S labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes five implementation details module-private and migrates Telegram tests to the existing update boundary.

Example: The dependency checker inspects TELEGRAM_DM_TOPIC_ADOPT_WINDOW_SEC, whose value is 3.

  • Before: The constant is exported despite having no external production consumer.
  • After: The constant stays private, while tests independently verify acceptance at three seconds and rejection at four seconds.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The minimal patch is source-verified and has no actionable findings; exact-head checks provide support, while the actual dependency-scan result remains unestablished.
Proof confidence 🦐 gold shrimp (3/6) This internal export cleanup changes no user-visible behavior, so shipped-entry-point proof is unnecessary; exact-head CI supports validation, but the dependency scan's after-fix result is unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Repository CI rejects implementation details exported without production consumers.
Reason: The maintainer-authored direction restores the existing dependency-check contract while preserving supported callers and behavior.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a focused maintainer-authored CI repair that remains necessary on main, with no introduced correctness findings.

Priority: P2
Reviewed head: 54baac827460b27c1b8d5492321f5247653c11c0

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository dependency checks inspect exports across production, tests, and scripts; these modules supply Telegram topic adoption, QA streaming, iOS grading, and model-picker presentation.

flowchart LR
  A[Repository source] --> B[Knip export scans]
  B --> C[Dependency check]
  D[Telegram test updates] --> E[Existing adoption boundary]
  E --> F[Private message helper]
Loading

Technical review

Best possible solution:

Keep these implementation details private in their existing modules and retain the migrated boundary tests.

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

Source confirms unnecessary exports under the checker's zero-unused-export contract, and the official baseline job failed; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete repair: remove unnecessary export visibility and move the two test consumers to the existing production operation without changing runtime behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4cffd43ee043.

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 858b5b0 adds extensions/qa-lab/src/providers/mock-openai/mock-openai-ux-stream.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 858b5b01338e; files: extensions/qa-lab/src/providers/mock-openai/mock-openai-ux-stream.ts)
  • Arseniy Palagin: Raw commit 90c620b adds extensions/telegram/src/dm-topic-adopt.ts:106 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 90c620b8e554; files: extensions/telegram/src/dm-topic-adopt.ts)
  • Vyctor H. Brzezowski: Raw commit 56ca2fa adds ui/src/pages/chat/components/chat-model-settings.tsx:26 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 56ca2fae9015; files: ui/src/pages/chat/components/chat-model-settings.tsx)

PR surface

Source 0, Tests +1, Other 0. Total +1 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 4 4 0
Tests 2 40 39 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 6 45 44 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs an owned repository CI failure without a demonstrated user-facing runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 7:34 PM ET / November 14, 2026, 00:34 UTC.

@roboclaw-bot
roboclaw-bot merged commit 8978cbb into main Nov 14, 2026
168 of 172 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/marine-lobster branch November 14, 2026 01:34
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
* fix(ci): keep unused dependency exports module-private

The check-dependencies job reported six unused exports. Keep the five
unclaimed implementation details private without changing their behavior;
PR openclaw#198306 by vincentkoc covers the separate release waiver table, which
remains untouched here.

QA_UX_STREAM_END_MARKER and TELEPORT_PT were introduced by openclaw#198293.
adoptTelegramDmTopicMessage and TELEGRAM_DM_TOPIC_ADOPT_WINDOW_SEC came
from openclaw#169444; migrate their direct tests to adoptTelegramDmTopicUpdate
and retain the explicit three-second accepted/four-second rejected window.
ChatModelRuntimeControl came from openclaw#192137 and keeps its local renderer.

Pinned formatting passes and independent P0-P2 review is clean. Named
tests could not collect without runtime dependencies; scoped lint could
not start with a wrapper import outside the requested sparse checkout.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix(ci): unused exports fail the dependency check

Worked on by:
- @obviyus
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 3bcacc77-7216-8f2e-9e43-4c1cf827724f

---------

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: telegram Channel integration: telegram extensions: qa-lab P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S 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