Repository navigation
fix(ci): resolve production export consumers - #206238
Conversation
|
🦞👀 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: passed. What this changesThis PR removes test-only internal exports and makes an existing lazy broker consumer visible to static analysis. Example: Knip analyzes the broker's startBrokerExeca consumer.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused correction to production export analysis, with no actionable correctness or security defects found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherProduction export analysis reads the source graph used by Knowledge settings, Doctor maintenance checks, and broker startup, then reports unused exports to dependency CI. flowchart TD
A[Source graph] --> B[Production export analysis]
B --> C[Dependency CI result]
A --> D[Knowledge settings button]
A --> E[Doctor pending trace]
A --> F[Broker command handlers]
Technical reviewBest possible solution: Retain this minimal use of existing owners and establish the dependency-check outcome before landing. Do we have a high-confidence way to reproduce the issue? Source confirms the test-only exports and existing broker consumer; the reported Knip fixture was not rerun, so the exact analyzer diagnostic is not independently reproduced. Is this the best way to solve the issue? The change is appropriately small: it removes a forwarding seam, tests through an existing settings entry point, and preserves lazy loading without analyzer exceptions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4a6c82f67958. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -12, Tests +25. Total +13 across 5 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. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 26, 2026, 7:02 PM ET / November 27, 2026, 00:02 UTC. |
|
Merged via squash.
|
What Problem This Solves
The production unused-export check fails on the Knowledge settings dialog, Doctor legacy-directory check, and broker command loader in main CI.
User Impact
No intended user-visible change. This removes unused internal exports and makes the broker's existing lazy consumer visible to the analyzer.
Why This Change Was Made
Keep the settings dialog private and exercise it through the existing settings button. Remove Doctor's forwarding helper and use its existing path owner directly. Destructure the broker function from the same parallel lazy imports instead of adding analyzer exceptions.
Evidence
startBrokerExecaunused; the new destructuring passes. An independent unused export still fails the positive control.git diff --checkpassed.eb0faf79a5be15593fc89ab577a4e4a5be47ea17through head71b2bc1f68ece292a4062cb9cc9206d6f28a6f0e.71b2bc1f68ece292a4062cb9cc9206d6f28a6f0e. All four Slack field tests and all eight Doctor maintenance-pending tests passed, including the real settings button, read-only path checks, and unreadable-path trace.test/helpers/openclaw-test-instance.test.ts: “reserves its idle port through refusal, CLI work, and stopped restarts” failed withEADDRINUSE. The port-handoff root cause is unresolved; no passing workflow or repair of that failure is claimed.71b2bc1f68ece292a4062cb9cc9206d6f28a6f0e:pnpm buildcompleted successfully at 00:05:26 UTC. The subsequent full check failed on existing line-limit violations outside all five changed files, before its test stage. This is build proof, not a green full-check result.b895301b66ee4299729fb024a1e36992b6759c7a(baselined1ac091955e689e38d9a35675bf5d5613651284bplus this PR). All scheduled jobs passed or were intentionally skipped, including production/test typechecking, selected Node tests, lint, and both UI jobs. CodeQL and the independent Security Review also passed.