Skip to content

fix(ci): clean up unused Decision transport exports - #197679

Merged
steipete merged 1 commit into
mainfrom
fix/2430-unused-decision-exports
Nov 12, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/2430-unused-decision-exports

Conversation

@steipete

@steipete steipete commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The shared Decision HTTP executor refactor in #197615 (81ec45243fd65) removed the last external consumers of seven exports, leaving main's production and full-tree unused-export guards red.

What Changed

Keep RerankRequest and TypeSafe's localBaseUrl private to their existing owners. Keep the three still-used fixture helpers private, and remove the unused request collector and ambient-proxy fixture setup. The TypeSafe support module and its remaining client, image, lazy-registration and live consumers stay intact; no test assertions are removed.

This finishes the consumer cleanup from #197615 without changing provider requests, configuration, runtime validation, or the shared HTTP executor. Production LOC delta is zero; test support shrinks by 16 lines. No public SDK or plugin entrypoint is removed.

Evidence

The canonical production and full-tree Knip configurations reproduce all seven failures on the exact main parent 4eb318d5eea7d5014772c41a0e480f8ab2b84dd5, using the two owning plugin workspace filters. The existing guard is the regression check; no duplicate source-text assertion test is added.

All 62 existing cases pass across rerank codec and TypeSafe client, images and lazy-registration tests. The native wrapper completes in 118.14 seconds, including a cold isolated compiler build (108.95 seconds Vitest; 92% transformation). Codex review is scoped-clean through P2. pnpm check:changed --base 4eb318d5eea7d5014772c41a0e480f8ab2b84dd5 passes, including production, full-tree and script unused-export scans with zero entries, both extension typecheck lanes, changed-file lint, and the generated plugin SDK declarations. Exact-head CI run 43195998044 attempt 2 passed at unchanged head 7c4e70e1eace522dd9aa23c8c2d3321c87869ec0. Attempt 1 failed during checkout with fatal: protocol error: bad pack header, before source execution; the diagnosed infrastructure failure received one failed-job retry. ClawSweeper reviewed this exact head with no findings or open items. The separate PR context check failed because this description lacked the required Evidence heading; this body correction fixes that authoring defect. These are diagnostic check timings, not runtime performance claims.

Complete the consumer cleanup from #197615: keep active module-local declarations private and remove two abandoned test helpers. The canonical export guards reproduce seven failures on the main parent and pass after the cleanup; 62 consumer tests and changed checks pass. Production line count is unchanged.
@clawsweeper

clawsweeper Bot commented Nov 12, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T09:59:00.184479Z 7c4e70e 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: 🐚 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. 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 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes five unused exports private and removes two unused TypeSafe test helpers.

Example: The unused-export guards inspect Rerank and TypeSafe after the shared HTTP executor migration.

  • Before: Seven declarations remain exported without external consumers.
  • After: Active declarations stay private to their modules, and the two abandoned helpers are removed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, minimal cleanup supported by source inspection and reported focused validation, with no introduced defect found.
Proof confidence 🐚 platinum hermit (4/6) This behavior-preserving export and fixture cleanup needs no shipped-entry-point demonstration; existing guard and consumer-test results are recorded in the PR body.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository validation fails on exports left unused after the Decision transport migration.
Reason: This maintainer-authored cleanup restores the existing static contract without adding policy, configuration, public API changes, or replacement machinery.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it completes necessary cleanup after the shared Decision transport refactor, with no actionable correctness or security findings.

Priority: P3
Reviewed head: 7c4e70e1eace522dd9aa23c8c2d3321c87869ec0

Before merge

None.

Findings

None.

Agent review details

How this fits together

Rerank and TypeSafe translate Decision inputs into provider requests and decode responses; this cleanup affects module visibility and test fixtures around that unchanged flow.

flowchart LR
  A[Decision input] --> B[Provider adapter]
  B --> C[Provider codec and config]
  C --> D[Shared HTTP executor]
  D --> E[Provider endpoint]
  E --> F[Typed Decision result]
Loading

Technical review

Best possible solution:

Keep the existing module owners and land this focused cleanup once the required CI gate clears.

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

Source inspection confirms the unused exports remain on current main, and the PR records guard failures on the exact parent; this read-only review did not execute checks.

Is this the best way to solve the issue?

The patch is the smallest complete fix: retain locally used declarations privately and delete only helpers whose consumers disappeared during the shared-executor migration.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 81ec452 adds extensions/rerank/decision-provider.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 81ec45243fd6; files: extensions/rerank/decision-provider.ts)

PR surface

Source 0, Tests -16. Total -16 across 3 files. Added test files: 0.

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

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 support Production net 0 lines; test support net −16 lines The cleanup removes abandoned fixture machinery while preserving production logic and all test assertions.

Labels

Label changes:

  • add P3: This is a focused internal export cleanup that restores static checks without changing user-facing runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused internal export cleanup that restores static checks without changing user-facing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 12, 2026, 5:12 AM ET / 10:12 UTC.

@steipete
steipete merged commit c06331c into main Nov 12, 2026
246 of 252 checks passed
@steipete
steipete deleted the fix/2430-unused-decision-exports branch November 12, 2026 11:23
@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 13, 2026
Complete the consumer cleanup from openclaw#197615: keep active module-local declarations private and remove two abandoned test helpers. The canonical export guards reproduce seven failures on the main parent and pass after the cleanup; 62 consumer tests and changed checks pass. Production line count is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: rerank P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: typesafe 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