Repository navigation
refactor(plugins): trim test-only barrel exports - #124192
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:22 AM ET / 15:22 UTC. ClawSweeper reviewWhat this changesThis PR removes test-only Signal installer and Matrix/Telegram thread-binding helpers from broad plugin API barrels while retaining their narrow owner contracts. Merge readinessKeep open for normal maintainer merge flow. The branch cleanly narrows never-released broad plugin barrels while preserving the owner-local and dedicated session-binding contracts used by tests; no blocking defect was found. Priority: P3 Review scores
Verification
How this fits togetherChannel plugins own their installer and conversation-binding logic. Core session-binding tests load dedicated contract sidecars, while broader API barrels describe the general plugin surface. flowchart LR
A[Plugin consumers] --> B[Broad API barrels]
B --> C[Channel owner modules]
D[Core session-binding tests] --> E[Dedicated contract sidecars]
E --> C
C --> F[Signal installer]
C --> G[Matrix and Telegram bindings]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -10, Tests 0. Total -10 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge the narrow-barrel cleanup while keeping the dedicated session-binding sidecars and owner-local installer tests as the sole access paths for these test helpers. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-neutral barrel-surface cleanup, and source inspection establishes the retained owner and contract paths. Is this the best way to solve the issue? Yes. The helpers were added only on current main, their narrow test contracts remain, and the branch removes the misleading broad exports without changing runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c0824d284e95. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production delta: +1/-11, net -10. Tests: +1/-1, net 0. Total: +2/-12, net -10. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes test-only helpers from broad plugin API barrels when their real owners already provide a narrower path.
install-signal-cli.ts, where production and owner tests use them directly.The broader cache-reset candidates were deliberately left unchanged because removing those underlying exports requires a separate cache-state owner refactor.
Why This Change Was Made
Broad
api.tsandruntime-api.tsbarrels are production/plugin surfaces. Re-exporting test-only helpers makes them look supported and increases compatibility and dead-code pressure without adding runtime capability.The retained owner tests still exercise Signal install selection/extraction and Matrix/Telegram binding reset behavior. Core session-binding tests continue to load the narrow contract sidecars rather than the broad barrels.
User Impact
No runtime behavior change. Plugin public surfaces are smaller and more accurately describe supported capabilities.
Evidence
pnpm buildpassed, including bundled plugin assets, package builds, runtime postbuild, and import guards.core,coreTests,extensions, andextensionTestschanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready. Typechecks, formatting, lint, dead-export scans, plugin boundaries, import cycles, database/sidecar/security guards, and architecture checks passed.git diff --checkpassed.Production delta: +1/-11, net -10. Tests: +1/-1, net 0. Total: +2/-12, net -10. No docs, config, schema, protocol, dependency, or changelog change.
AI-assisted: yes.