Repository navigation
fix(ci): remove unused OpenClaw ID node exports - #195338
Conversation
Keep node invitation, pairing, removal-error, and key-loading declarations private to their implementation modules. Seed the native Gateway fixture through the existing endpoint-key owner at the same path. Co-authored-by: Josh Lehman <[email protected]> Co-authored-by: steipete <[email protected]>
|
🦞👀 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 makes four internal declarations private and seeds the native transport fixture through the existing endpoint-key loader. Example: The native transport fixture prepares node-openclaw-id/endpoint.key.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it provides a focused cleanup of unused internal exports, with no introduced correctness or security defect found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherOpenClaw ID invitation, pairing, and node-transport modules connect approved nodes to a Gateway; the dead-code checks inspect their exported declarations. flowchart LR
A[Native transport fixture] --> B[Endpoint key loader]
C[Node transport] --> B
B --> D[Endpoint key file]
C --> E[OpenClaw ID tunnel]
E --> F[Gateway admission]
Technical reviewBest possible solution: Retain this minimal export cleanup and the fixture's direct use of the existing endpoint-key owner. Do we have a high-confidence way to reproduce the issue? Source references establish the unused export surface, and GitHub confirms the scheduled job failed; the detailed failure log was unavailable, and no target code was executed. Is this the best way to solve the issue? The patch is the smallest complete cleanup: it removes unnecessary exports and reuses the existing key loader without changing runtime behavior or weakening tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e12c298743e. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests 0. Total 0 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:
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 8, 2026, 1:29 PM ET / 18:29 UTC. |
Keep node invitation, pairing, removal-error, and key-loading declarations private to their implementation modules. Seed the native Gateway fixture through the existing endpoint-key owner at the same path. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Josh Lehman <[email protected]> Co-authored-by: steipete <[email protected]>
Related: #194001, #193982
What Problem This Solves
The scheduled main dependency-check job fails both
deadcode:dependenciesanddeadcode:exportsafter the OpenClaw ID node additions.User Impact
Internal CI cleanup; runtime behavior and public package contracts are unchanged.
Why This Change Was Made
Keep
NodeInviteView,OpenClawIdNodePairingInput, andOpenClawIdNodeRemovedErrorprivate because they have no consumer outside their modules. KeeploadNodeTunnelKeyprivate by having the native Gateway fixture seed the same file through the existing endpoint-key owner. Assertions and skip conditions are unchanged.The first two declarations originated in
c1b75daf7946(#194001); the latter two originated in21c02885fb1a(#193982). Raw parent-relative patches and current references were inspected. No dependency versions, Knip exemptions, baselines, or test allocations change. Production and test line counts are each unchanged after simplification.Evidence
git diff --checkpassed. All local checks were timed and serialized under the shared lock.gpt-6.1-sol, P0–P2, scoped-clean, no findings.Named test files:
src/node-host/openclaw-id-connection.test.ts,src/gateway/openclaw-id/authority.nodes.test.ts,src/gateway/openclaw-id/tunnel-child/keyfile.test.ts, andsrc/gateway/server.auth.openclaw-id-node-host.test.ts. Combined runner time: 61.25s, including first-use worker preparation; hosted CI seconds pending.