Repository navigation
test(extensions): remove type-only probe contracts - #124190
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 10:58 AM ET / 14:58 UTC. ClawSweeper reviewWhat this changesThe PR removes six compile-time-only extension tests that restate probe and token types’ direct inheritance from shared channel contracts. Merge readinessKeep open for normal maintainer handling. This is a narrow, source-supported test-value cleanup, and the protected Priority: P3 Review scores
Verification
How this fits togetherChannel extensions define probe and token result types used by channel health and setup flows. Shared SDK contracts provide their common fields, while extension suites cover concrete runtime probing, token resolution, and directory behavior. flowchart LR
A[Shared channel contracts] --> B[Extension probe and token types]
B --> C[Channel health and setup flows]
B --> D[Compile-time checks]
C --> E[Runtime behavior tests]
D --> E
Before merge
Agent review detailsSecurityNone. PR surfaceTests -55. Total -55 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Remove the redundant extension-local assertions while retaining the shared SDK export contract checks and runtime-focused owner tests. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes compile-time-only checks rather than repairing a runtime failure; source shows the assertions repeat direct type intersections. Is this the best way to solve the issue? Yes. Removing tests that only restate their own type declarations is the narrowest maintainable cleanup, while public SDK export and runtime behavior coverage remain. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b365f7ec891f. 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: 0. Tests: +3/-61, net -58. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes channel tests that only ask TypeScript whether a declared channel-specific result type is assignable to the base type it directly extends.
Three complete probe-contract files and the type-only cases inside Discord, Telegram, and Slack directory suites re-stated production declarations such as
SignalProbe = BaseProbeResult & ...andDiscordTokenResolution = BaseTokenResolution & .... They had no runtime input or independent protocol/schema source.Why This Change Was Made
Production typechecking already enforces these relationships at the declarations and every typed owner return/caller boundary. Substantive owner tests remain for probe behavior, token resolution, status/setup surfaces, directory filtering, unresolved SecretRefs, live Slack identity, and Discord intents.
The six cases originated together as coverage relocation rather than a demonstrated behavior regression. Keeping them adds maintenance churn whenever private type organization changes without increasing failure detection.
User Impact
No behavior change. Extension tests remain focused on runtime behavior and independently meaningful contracts.
Evidence
extensionTestschanged gate passed through the documented trusted-source local fallback because no Crabbox/Testbox provider was ready. Typecheck, formatting, lint, dead-export scans, plugin boundaries, and architecture guards passed.git diff --checkpassed.Production delta: 0. Tests: +3/-61, net -58. No docs, config, schema, protocol, dependency, or changelog change.
AI-assisted: yes.