Repository navigation
improve(tests): fixture wizard model auth policy - #118417
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 1:37 AM ET / 05:37 UTC. ClawSweeper reviewWhat this changesThe PR adds typed hoisted mocks for manifest auth-choice and setup-provider discovery so the model-auth wizard test stays isolated from real plugin inventory work. Merge readinessThis remains necessary: current Priority: P3 Review scores
Verification
How this fits togetherThe setup wizard prepares an authentication choice, derives that provider's model-selection policy, then prompts for and validates the selected model. Plugin manifest and setup-provider discovery feed that policy; this PR replaces those discovery boundaries only inside a focused unit test. flowchart LR
A[Wizard auth choice] --> B[Auth preparation]
B --> C[Model-selection policy]
C --> D[Manifest auth-choice lookup]
D --> E[Setup-provider policy lookup]
C --> F[Model picker and validation]
G[Focused unit-test fixtures] --> D
G --> E
Decision needed
Why: The patch has no concrete review defect, but the PR carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +25. Total +25 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the production policy implementation unchanged and merge the typed test fixtures once a maintainer confirms the refreshed head is clean and required checks have completed. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a test-only performance and isolation change, not a report of broken user-facing behavior. Source inspection identifies the discovery calls that the fixture replaces. Is this the best way to solve the issue? Yes. The test owns its isolation boundary, while manifest-policy and setup-provider behavior retain dedicated owner tests; the typed mocks avoid real inventory work without changing production policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 59cd041c37a9. 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
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
007a62e to
8b1411e
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
One default-agent model-auth wizard case accidentally entered real plugin manifest and setup-provider discovery after its auth/model owners were already mocked. That unrelated inventory work consumed virtually the entire test file.
Why This Change Was Made
Provide narrow hoisted fixtures for the manifest auth-choice identity and the absence of an explicit setup-provider policy. The real wizard target-selection branch and every default-agent assertion remain unchanged; manifest policy, provider auth, setup registry, and agent targeting retain dedicated owner coverage.
User Impact
No runtime or user-visible behavior changes. The same wizard coverage completes much faster with lower memory use.
Evidence
git diff --check, and autoreview are clean.