Repository navigation
fix(ci): remove unused internal exports - #189237
Conversation
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]>
|
🦞👀 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 a history fixture while moving existing authority tests through the repository credential reader. Example: Repository deadcode checks inspect captureRepositoryClientActor.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -1, Tests -12. Total -13 across 5 files. Added test files: 0. View PR surface stats
Review metrics
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 October 31, 2026, 5:34 AM ET / 09:34 UTC. |
Baseline-Refresh: 054f5feeb70adf78e84ee467ac511223a71e3cc9 Co-authored-by: steipete <[email protected]>
|
Merged via squash.
|
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]>
What Problem This Solves
Repairs the unused internal exports identified in
check-dependenciesin 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
resolveFollowupReplyAnchorinsrc/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.Requested by @steipete
Work sessions
Discussion, implementation and verification