Repository navigation
fix(ci): clean up unused Decision transport exports - #197679
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRerank 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]
Technical reviewBest 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
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests -16. Total -16 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 5:12 AM ET / 10:12 UTC. |
|
Merged via squash.
|
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.
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
RerankRequestand TypeSafe'slocalBaseUrlprivate 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 4eb318d5eea7d5014772c41a0e480f8ab2b84dd5passes, 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 head7c4e70e1eace522dd9aa23c8c2d3321c87869ec0. Attempt 1 failed during checkout withfatal: 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.