Skip to content

fix(ci): remove unused implementation exports - #197271

Merged
steipete merged 1 commit into
mainfrom
fix/2412-local-exports
Nov 11, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/2412-local-exports

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes six unused-export failures in hourly full CI introduced with the Telegram widget, OpenClaw ID rebind, and session refusal diagnostic implementations (#196991, #196388, #196724).

User Impact

No user-visible behavior changes. Widget tap prompts, rebind validation, IPC message shapes, and diagnostic redaction keep their existing contracts.

Why This Change Was Made

Keep module-local implementation symbols private. The widget prompt and stack projection tests now exercise the existing router dispatch and diagnostic log boundaries, so production no longer exports helpers solely for tests. No Knip exceptions or new runtime abstractions are added. Production LOC is net -2; an exact 15-line test allocation preserves the meaningful assertions at those boundaries.

Evidence

@clawsweeper

clawsweeper Bot commented Nov 11, 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 gateway Gateway runtime size: S labels Nov 11, 2026
@steipete
steipete marked this pull request as ready for review November 11, 2026 15:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T15:46:30.419230Z dd2c9ea Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes six implementation symbols private and moves helper assertions to existing router and diagnostic logging boundaries.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and source-supported; supplied validation is focused harness and scanner reporting, with broad exact-head CI still incomplete.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal export cleanup introduces no runtime behavior or authority change; the prepared images show earlier Telegram widget demonstrations and are not evidence of this cleanup.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: There is no intended runtime behavior change; unused implementation exports add failures to dependency CI.
Reason: The maintainer-authored direction removes unnecessary module surface while keeping established behavior and avoiding new abstractions or exceptions.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a focused, useful export cleanup still needed on fetched main, with no actionable defects found; exact-head CI remains pending.

Priority: P3
Reviewed head: dd2c9ea3f776bc5be44f219ac889518aca3d0a0e

Before merge

None.

Findings

None.

Agent review details

How this fits together

The affected modules route Telegram widget taps into agent messages, validate OpenClaw ID rebind operations, define tunnel IPC messages, and emit bounded session-lease diagnostics.

flowchart LR
  A[Telegram widget tap] --> B[Widget query router]
  B --> C[Agent message dispatch]
  D[Rebind request] --> E[Rebind operation owner]
  F[Lease invalidation] --> G[Bounded diagnostic logger]
Loading

Technical review

Best possible solution:

Keep implementation helpers private and preserve their observable contracts through the existing router and logging owners.

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

Source inspection confirms all six unnecessary exports on fetched main and their local production uses; no scanner or tests were run during this read-only review.

Is this the best way to solve the issue?

The patch is the smallest complete fix: remove unused exports, migrate their direct test consumers to existing boundaries, and retain meaningful assertions without scanner exemptions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7f5697b3bf9d.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced diff: Production edits remove export modifiers from six locally consumed symbols, with only accompanying formatting; executable logic is unchanged. (dd2c9ea3f776)
  • Current main still needs the cleanup: All six symbols remain exported on fetched main; its affected production modules match the PR's original parent. (7f5697b3bf9d)
  • Boundary coverage preserved: Widget prompt assertions now inspect the actual router dispatch, and diagnostic projection assertions inspect emitted warning payloads; state, source-budget, unsafe-frame, four-frame, and C1-character checks remain. (src/config/sessions/session-delivery-generation.diagnostics.test.ts:308, dd2c9ea3f776)
  • Related cleanup has distinct ownership: fix: remove stale internal export paths #196862 explicitly assigns the Telegram, rebind, and diagnostic export findings to this PR while addressing other export paths.
  • Validation and inspection limits: The body reports matching Node/Bun focused passes and exact-parent export reductions. GitHub confirms the original dependency job failed, but its log download redirects to a blocked Azure host, so the precise failure signatures were not independently read. Current-head checks have pending PostgreSQL lanes and no reported failed conclusion. (dd2c9ea3f776)

Likely related people:

  • Ayaan Zaidi: Raw commit b22f35f adds extensions/telegram/src/widgets/widget-query-router.ts:75 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b22f35f7ed76; files: extensions/telegram/src/widgets/widget-query-router.ts)
  • Josh Lehman: Raw commit 5f2f21a adds src/gateway/openclaw-id/rebind-operations.ts:41 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5f2f21a7ee19; files: src/gateway/openclaw-id/rebind-operations.ts)
  • Jason (Json): Raw commit 2c4e34a adds src/config/sessions/session-delivery-generation-diagnostics.ts:69 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2c4e34a72f49; files: src/config/sessions/session-delivery-generation-diagnostics.ts)

PR surface

Source -2, Tests +15, Other +2. Total +15 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 6 8 -2
Tests 2 58 43 +15
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 8 66 51 +15

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.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +6/-8; tests +58/-43 The net 15 test lines move existing assertions to production boundaries without adding runtime machinery; a separate 15-line allocation covers that growth.

Labels

Label changes:

  • add P3: Internal export hygiene improves dependency-check signal without changing user-visible runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Internal export hygiene improves dependency-check signal without changing user-visible runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • 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 11, 2026, 11:01 AM ET / 16:01 UTC.

@steipete
steipete merged commit 1d72ad0 into main Nov 11, 2026
213 of 216 checks passed
@steipete
steipete deleted the fix/2412-local-exports branch November 11, 2026 16:38
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
RomneyDa added a commit that referenced this pull request Nov 15, 2026
Port Telegram callbacks, hook session keys, private-topic approvals and
interactive widgets with complete send/edit/route security companions.
Include Feishu captioned media, iOS permission Sendable callbacks,
WebKit animation/menu retirement and pending automations props handling.
Keep Matrix malformed formatted-mention parsing linear-time.
Adapt the 11.4 equivalents to the fixed beta baseline where available.

Source PRs: #196217, #191585, #196822, #194027, #197519, #198038,
#196991, #198380, #198658, #184432. Companion scope: #191647, #192162,
#198022, #197271, #194146; #197670 is folded into #197519 equivalent.

(cherry picked from commit 928c118)
(cherry picked from commit 569ca48)
(cherry picked from commit efa744e)
(cherry picked from commit c301da9)
(cherry picked from commit 641c4d5)
(cherry picked from commit b9d3fb4)
(cherry picked from commit a213a51)
(cherry picked from commit ec46689)
(cherry picked from commit 779d22e)
(cherry picked from commit 129ccc3)
(cherry picked from commit 849c050)
(cherry picked from commit b22f35f)
(cherry picked from commit 8b414e9)
(cherry picked from commit 01ecda4)
(cherry picked from commit f978e54)
(cherry picked from commit 6e60479)
(cherry picked from commit ec7b49a)
(cherry picked from commit 1d72ad0)
(cherry picked from commit 5e2c66f)

(cherry picked from commit dfb6454)

Co-authored-by: RomneyDa <[email protected]>

(cherry picked from commit f7c581c7f8bf0e57c7d8799e928a121b24462450)

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

Labels

channel: telegram Channel integration: telegram gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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