Repository navigation
test: consolidate model and plugin metadata fixtures - #133570
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 7:13 PM ET / 23:13 UTC. ClawSweeper reviewWhat this changesThe branch centralizes repeated model-normalization and plugin-metadata test fixtures, while preserving each suite’s existing assertions and provider-specific metadata shape. Merge readinessNo blocking correctness finding was identified in the exact introduced test-only diff. This PR remains open for explicit maintainer handling because it is member-authored, carries the protected Priority: P3 Review scores
Verification
How this fits togetherAgent model selection uses plugin metadata to normalize configured and persisted model references, while plugin runtime paths reuse lifecycle-owned metadata snapshots. This PR changes the test fixtures that verify those contracts, not the runtime owners themselves. flowchart LR
Config[Agent configuration] --> Selection[Model selection]
Metadata[Plugin metadata snapshot] --> Selection
Fixtures[Shared test fixtures] --> ModelTests[Model selection tests]
Fixtures --> SnapshotTests[Plugin snapshot tests]
ModelTests --> Contracts[Runtime contract coverage]
SnapshotTests --> Contracts
Decision needed
Why: Protected maintainer-labelled, member-authored work requires explicit maintainer handling even though no patch defect was found. Before merge
Agent review detailsSecurityNone. PR surfaceSource +50, Tests -140. Total -90 across 4 files. View PR surface stats
Review metrics
Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Retain the shared test-support constructors and land the focused cleanup once the exact-head required checks complete and a maintainer accepts it. Do we have a high-confidence way to reproduce the issue? Not applicable: the PR reorganizes test fixtures and does not report a user-facing defect to reproduce. Is this the best way to solve the issue? Yes. The shared helpers serve the two equivalent metadata suites, and the provider suite preserves its intentionally alias-free fixture after construction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6cf8e884edbd. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
85a0762 to
95c0469
Compare
|
Merged via squash.
|
Related: #130706
What Problem This Solves
Repeated model-normalization and plugin-metadata fixtures make tests harder to maintain and inflate the larger Gateway performance refactor.
Why This Change Was Made
Share identical index and manifest constructors through the existing test-support module, reuse the legacy-model normalizer, and table the two visibility-policy variants. Keep the original test names, assertions, option omission, and empty command aliases in provider-only fixtures.
This is an independent extraction from #130706. It contains no runtime ownership changes; the Gateway CPU report (#130324) remains unresolved.
User Impact
No production behavior change. Production LOC: +0/-0. Tests: +53/-193; test support: +50/-0. Total: four files, +103/-193, 90 fewer lines. No dependency or documentation changes remain.
Evidence
The temporary docs-navigation correction was dropped during rebase because upstream now derives release expectations from navigation. The docs test matches main exactly and is outside this PR's final diff. The earlier Matrix crypto native download failure was an installation/network failure; no dependency workaround was added.
The reduction is measured against this PR's pinned main base. It overlaps cleanup already present in #130706 and is not additional savings on top of the earlier cleanup tally.