Repository navigation
fix: remove stale internal export paths - #196862
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: needs maintainer review before merge. What this changesThis PR removes unused internal exports and redirects tests to the existing implementation owners. Example: An MCP tool description contains Unicode separators and full-width characters.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup removes stale internal export paths, and review found no actionable correctness or security defects. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAgent, provider, process, and Gateway modules expose internal operations consumed by runtime callers and tests; this change removes redundant forwarding paths while retaining their implementation owners and published entry points. flowchart LR
A[Runtime callers] --> B[Canonical implementation owners]
C[Focused tests] --> B
D[Published SDK entry points] --> B
B --> E[Provider and Gateway behavior]
F[Export scanner] --> B
Technical reviewBest possible solution: Land the focused owner cleanup through the normal exact-head CI gates while preserving published SDK entry points and active compatibility constructors. Do we have a high-confidence way to reproduce the issue? Fetched main contains the redundant exports, and caller searches confirm the migrated ownership paths; scanner results are reported in the maintainer evidence and were not rerun during this read-only review. Is this the best way to solve the issue? The patch follows the smallest complete fix: remove redundant exports, migrate their test consumers, and retain the existing runtime implementations and supported public boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f5697b3bf9d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -49, Tests +20, Other -2. Total -31 across 42 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: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed November 11, 2026, 11:01 AM ET / 16:01 UTC (Revision 2). |
Integrate main's OAuth fixture correction while preserving the original export-owner repair. Keep key creation private and route fresh-key fixtures through the existing load-or-create owner. The exact +21 test-line allocation preserves scoped provider hook receiver semantics and assembled MCP output contracts without changing the shared scalar or inherited debt. Co-authored-by: Vincent Koc <[email protected]>
|
@clawsweeper re-review Updated head: Both focused runtime proofs passed 239 tests across 20 files (18 conditional skips explicitly listed in the body). All 35 other selected check:changed gates pass. Canonical export scans remove 28 production and 7 full-tree findings, with zero new findings; remaining 29/25 signatures match exact main parent |
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. |
|
🦞👀 Re-review progress:
|
|
|
Merged via squash.
|
Co-authored-by: Vincent Koc <[email protected]>
Related: #192954
What problem this solves
Hourly full CI reports stale internal exports after production consumers moved to their canonical owners. Remove the redundant facade paths, and make the tests consume the same owners as production. Published SDK entrypoints and active compatibility constructors are preserved.
This continues @vincentkoc's original repair. Main has since supplied production consumers for four of the five key-file exports in the original qualification hold. The remaining helper,
createKeyFile, is now private; its fixture callers use the existingloadOrCreateEndpointKeyoperation. Main's corrected OAuth fixture is retained when resolving the integration conflict.Changes and behavior
Provider/session/model/OOM tests now import their actual owners. MCP-directory tests exercise assembled output while preserving Unicode sanitization, truncation, deterministic ordering, and the independent 4096-byte contract. The billing-warning reply implementation moves unchanged to a leaf shared by runtime and tests. No dependencies, overrides, runtime configuration, schema, or scanner exemption are added.
The change removes 49 net production lines. Test/helper growth is 20 lines; the canonical test ratchet counts 21, covered by the separate exact allocation for provider hook scope/receiver and MCP output contracts. The shared scalar and inherited debt are unchanged.
Validation
pnpm check:changed --staged --base 8ae6b3852f9775007478e69692068828e3c7fc14: all 35 other selected checks pass; exit 1 solely for the attributed inherited export findings below. This is a scoped green repair with a retained failing overall check, not a claim that main dependency CI is green.The exact main parent has 57 production and 32 full-tree findings. The candidate removes 28 production and 7 full-tree findings, leaving exactly 29 production and 25 full-tree inherited signatures; scripts remain 0. There are no new findings or resolution errors. Full check:changed completed in 550.31s, with only the inherited export scan failing. Older-head skipped CI is not passing proof. The exact-head CI watcher is green for run 43053047481, with no pending current-head checks. This does not substitute for the next hourly full-main run. ClawSweeper reviewed final head
dea8997cae1c080452dd761047860f6b1d780cfdwith no findings or open checklist items (review).Release-note context
Internal export-owner cleanup restores dependency-check signal without changing product behavior. Original repair by @vincentkoc; contributor credit is preserved.
All 18 conditional skips in both local runtime proofs
src/gateway/openclaw-id/tunnel-child/tunnel-child.test.ts(13; native Iroh unavailable):src/gateway/server-methods/config.test.ts(1; Linux only): returns actionable headless environment error when xdg-open is missing.src/process/linux-oom-score.test.ts(4; Linux only): sets the child OOM score while preserving argv0 and parent score (undefined and/opt/shims/claude); protects Bash-as-sh imported functions (both prepareOomScoreAdjustedSpawnPreservingExecEnv and prepareOomScoreAdjustedSpawn).Introducing changes and author attribution
625945b7ae01)f63e5cd0f6d3)964fa991c0af)071f606eae77)33d8f24c9926)a7436c8b4a93cf1ae7bb6a72)c7152f3bda8e)80ba593b8b14)56617cd00086)37a3b162a0c5)Remaining inherited export failures on the exact main parent
These are unresolved main regressions, not noise or newly introduced findings. Each is present in the exact parent
8ae6b3852f9775007478e69692068828e3c7fc14scan and the candidate residual set. Separate coherent repairs are linked; their final status is tracked on those PRs.9b7dcdc7a66dc1bbcb0767b8109e798eb826954e)b22f35f7ed76552778bc185cc65a6177e8ad8b02)2c4e34a72f490c710bc155319fcabf872f482b3e)5f2f21a7ee193fdd4aa8ac42a407eefc04905255)Exact staged test-budget gate passed: 6,659,880 LF-counted test lines against 6,659,881 ceiling (1 line of existing slack). The separate 21-line allocation covers only this change.