Repository navigation
fix(ci): retire unused model normalization wrapper - #198768
Conversation
|
🦞👀 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 changesRemoves the unused one-shot model normalization wrapper and migrates its live-test callers to the existing factory. Example: A live-model test normalizes dynamic-test-provider/glm-5.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-authored cleanup of an unused internal export still present on main, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherModel discovery passes model rows and scoped configuration through provider normalization and compatibility hooks; production discovery already uses the retained factory. flowchart TD
A[Production model discovery] --> C[Normalizer factory]
B[Live model tests] --> C
C --> D[Provider normalization hooks]
D --> E[Model compatibility hooks]
E --> F[Normalized model rows]
Technical reviewBest possible solution: Retire the forwarding export while retaining the existing normalizer factory and both callers’ current normalization lifetime. Do we have a high-confidence way to reproduce the issue? Source confirms that the exported wrapper has only live-test callers and that production discovery already uses the factory; the reported scanner diagnostic could not be inspected because its log storage host is blocked. Is this the best way to solve the issue? The patch is the smallest complete cutover: it removes the redundant wrapper, updates both remaining consumers, and leaves normalization implementation and scope unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 896cc0cc44d7. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -9, Tests -2, Other -1. Total -12 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 14, 2026, 4:05 AM ET / 09:05 UTC. |
Preserve the independent normalizer repair in #198768 and current main. The only remaining delta is the maintained opt-in Vitest configuration root. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
|
Merged via squash auto-merge.
|
* fix(ci): retire unused model normalization wrapper * test: document isolated model normalizer fixture
What Problem This Solves
The scheduled main dependency checks fail on
normalizeDiscoveredAgentModel, an exported one-shot wrapper whose only remaining callers are live-test code.User Impact
No user-visible change. Production model discovery keeps the same normalizer factory and implementation.
Why This Change Was Made
Remove the obsolete wrapper and have both live-test callers invoke the existing factory with the same arguments and per-call lifetime. The prepared/resolved dynamic-model tests now assert that the returned candidate contains the normalized model rather than spying on the removed wrapper. The closed normalizer mock documents its isolation from provider runtimes, and its obsolete mock-baseline entry is removed. No Knip exception or new baseline allowance is added.
Related: #198591
Evidence
git diff --checkpassed. The complete change removes 9 production lines and has a net reduction of 2 test/helper lines plus one removed mock-baseline entry.08ae8c62b83ede02db3a8d2bc3ce36206008d253..b748dc1c821d1cddf26ad72f00459b008a1d6cf8.