Repository navigation
test: remove obsolete provider runtime wrappers - #124182
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 9:37 AM ET / 13:37 UTC. ClawSweeper reviewWhat this changesThe PR removes unused provider-runtime wrapper exports and obsolete aggregate tests, and updates the Gateway live-model test helper to use the dedicated thinking-profile resolver. Merge readinessNo blocking findings. Current main still contains the obsolete provider-runtime façade, while the branch removes only internal wrappers whose behavior is now owned by dedicated replay, config, thinking, and memory paths. Priority: P3 Review scores
Verification
How this fits togetherProvider plugins supply runtime hooks for model transport and policy. Those hooks feed agent replay and Gateway model-selection paths; this cleanup removes an aggregate test bridge now bypassed by owner-specific modules. flowchart LR
A[Provider plugins] --> B[Provider hook resolution]
B --> C[Agent transport hooks]
A --> D[Transcript replay policy]
D --> C
A --> E[Thinking profile resolver]
E --> F[Gateway model checks]
G[Focused test suite] --> B
Before merge
Agent review detailsSecurityNone. PR surfaceSource -64, Tests -128. Total -192 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the deletion-only cleanup after exact-head required checks finish, keeping replay, config, thinking, and embedding behavior at their existing owner boundaries. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes internal test and runtime wrappers rather than repairing a reported user-visible failure. Is this the best way to solve the issue? Yes. The dedicated owner modules already execute the retained behaviors, so deleting the aggregate façade avoids duplicate dispatch paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 987c73e79304. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production delta: +1/-65, net -64. Tests: +2/-130, net -128. Total: +3/-195, net -192. No behavior, docs, config, schema, protocol, dependency, or changelog change. |
|
Merged via squash.
|
What Problem This Solves
Removes four provider-runtime wrappers and one aggregate testing façade that no production code calls. Their tests re-dispatched provider hooks through obsolete convenience layers after replay policy, config defaults, thinking profiles, and memory embeddings moved to dedicated owners.
The cleanup also removes the cache-clear export that became test-only. Plugin runtime resets already advance the registry lifecycle version included in provider cache keys, so the provider suite remains isolated without manually mutating the cache.
Why This Change Was Made
The retained behavior is now tested where it is owned:
src/agents/transcript-policy.tsand shared provider replay helpers;src/config/provider-policy.ts;src/plugins/provider-thinking.ts;The Gateway live-model helper now calls the same effective thinking-profile resolver as the production thinking path and no longer carries an unused config parameter. Public
ProviderPluginhook contracts and their owner tests remain unchanged.User Impact
No user-visible behavior change. Internal provider runtime APIs are smaller, tests no longer preserve dead dispatch seams, and provider cache state is lifecycle-keyed rather than manually reset by a test-only export.
Evidence
coreandcoreTestschanged gates 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, and architecture guards passed.git diff --checkpassed.Production delta: +1/-65, net -64. Tests: +2/-130, net -128. Total: +3/-195, net -192. No docs, config, schema, protocol, dependency, or changelog change.
AI-assisted: yes.