Skip to content

fix(ci): remove unused internal exports - #189237

Merged
roboclaw-bot merged 2 commits into
mainfrom
roboclaw/fix-ci-unused-internal-exports-l163
Oct 31, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
roboclaw/fix-ci-unused-internal-exports-l163

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Repairs the unused internal exports identified in check-dependencies in full main run 41184597021 at 96ceb48 (original report: run 41176844002).

User Impact

No user-visible behavior changes. Public Plugin SDK contracts and runtime authority checks remain intact.

Why This Change Was Made

Keep repository-only authorization types and actor capture private, remove the unused Gateway type re-export, and move the two existing socket-replacement/revocation cases through the production credential reader in the integration fixture. The complete refreshed change is four files, +66/-71 lines (production +2/-3; tests +64/-68).

The native signed main-baseline merge incorporates b8b054c. Main #189183 already removed RuntimeApiKeySink and #189212 already removed boundEntry, so both superseded hunks are absent. The earlier overlap with #167069 was checked read-only; its independent history additions do not depend on boundEntry. Main #189244 also supplies the direct SDK-host fixture binding missing in the prior PR CI attempt.

Evidence

  • The two requested deadcode scripts were each run once after the main merge. Both exited 1 solely for a new main-owned export: resolveFollowupReplyAnchor in src/auto-reply/reply/queue/delivery-context.ts. Script unused-export scanning passed; production and full-tree export scanning reported that same export. The file and scan configuration match the selected main baseline; fix(auto-reply): stop queued turns replaying completed replies #189240 / 64daa25 replaced its external consumer. No passing aggregate scan is claimed and this PR does not expand into that separate owner repair.
  • All 169 focused tests passed across the ten requested files and four Vitest shards (177.55 s wrapper). No additional local test/package script was run. Earlier scoped types/lint/format remain historical evidence; exact-head PR CI supplies broad proof.
  • Fresh canonical autoreview of b8b054c..498eaae, with the relevant authority and Plugin SDK source context, is scoped-clean at P0–P2 with no findings. The prior documented local-ClawSweeper fallback is retained. Native review is validated READY for the published head. Exact-head CI 41191172045 completed successfully on 498eaae, including the previously failing changed-test lane.
  • Prior head 9cf8582 failed CI 41187104056 in checks-node-changed-2 because the X publication fixture lacked a bound SDK host. That is prior-head evidence; fix(test): bind SDK hosts in direct Gateway fixtures #189244 is now incorporated, and current-head CI now passes. No admin route, workflow rerun/dispatch or direct push is authorized.

Requested by @steipete

Work sessions

Discussion, implementation and verification

Privatize module-local types and repository actor capture, remove the unused repository re-export and history fixture, and preserve authority coverage through the public credential reader.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Oct 31, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 31, 2026 09:03
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 31, 2026 09:05
@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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes unused internal exports and a history fixture while moving existing authority tests through the repository credential reader.

Example: Repository deadcode checks inspect captureRepositoryClientActor.

  • Before: The function is exported solely for direct helper tests and is reported as unused in production.
  • After: The function stays module-local, and the same authority cases exercise repositoryDispatchCredentialReader.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-correct; supporting proof consists of reported scanner results and production-owner test coverage, with the required CI failure still unattributed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored maintenance change alters no runtime behavior; reported scanner passes support the cleanup, and the relocated tests exercise the existing credential reader and native revocation owner.
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 unused internal exports.
Reason: The maintainer-authored direction addresses recorded CI failures with a minimal cleanup and preserves runtime and public SDK contracts.

Merge readiness

✅ Ready for maintainer review

This PR provides useful, behavior-preserving export cleanup with no actionable code findings; required CI remains red with its cause unresolved.

Priority: P2
Reviewed head: 9cf8582eaff77db03dbe082112e5e327e1693a21

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway dispatch converts authenticated caller context into repository credential readers; plugin policy and native authority checks govern repository access.

flowchart LR
  A[Authenticated Gateway caller] --> B[Repository dispatch]
  B --> C[Module-local actor capture]
  C --> D[Credential reader]
  D --> E[Repository policy]
  E --> F[Native credential access]
Loading

Technical review

Best possible solution:

Retain the minimal export cleanup and consolidated authority tests, then resolve the required CI gate through evidence-based failure classification.

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

Main CI annotations confirm the deadcode-check failures, and current-main source plus the merged audit report identify the remaining unused exports; no scanner or test was executed during this read-only review.

Is this the best way to solve the issue?

The patch uses the existing credential-reader boundary to preserve meaningful authority coverage while removing unused exports, with no new owner, runtime machinery, or public SDK change.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit a4b07c6 adds src/gateway/repository-dispatch.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a4b07c63b60c; files: src/gateway/repository-dispatch.ts)
  • Peter Steinberger: Raw commit cd09e88 adds src/gateway/cli-session-history.test-support.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cd09e8848e78; files: src/gateway/cli-session-history.test-support.ts)

PR surface

Source -1, Tests -12. Total -13 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 2 3 -1
Tests 3 65 77 -12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 67 80 -13

Review metrics

Metric Value Why it matters
Production versus test/support LOC Production +2/-3; tests/support +65/-77 The test relocation removes the test-only production export while preserving both distinct authority cases.

Labels

Label changes:

  • add P2: Repairs concrete repository deadcode-check failures without changing user-facing runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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:

  • P2: Repairs concrete repository deadcode-check failures without changing user-facing runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the SDK resource-host failure using a comparable baseline or focused head-versus-revert result before selecting any repair.

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 October 31, 2026, 5:34 AM ET / 09:34 UTC.

@roboclaw-bot
roboclaw-bot disabled auto-merge October 31, 2026 09:52
Baseline-Refresh: 054f5feeb70adf78e84ee467ac511223a71e3cc9
Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 0616e6f into main Oct 31, 2026
121 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/fix-ci-unused-internal-exports-l163 branch October 31, 2026 10:13
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
Privatize module-local types and repository actor capture, remove the unused repository re-export, and preserve authority coverage through the production credential reader.

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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