Repository navigation
test(music): remove redundant registration coverage - #134548
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 10:32 PM ET / September 1, 2026, 02:32 UTC. ClawSweeper reviewWhat this changesThe branch deletes a duplicate music-tool registration test, inlines a one-use model-resolution wrapper at its caller, and removes the corresponding lint size exemption. Merge readinessKeep this maintainer-authored cleanup open: the direct shared-resolver call preserves the wrapper’s arguments, while the retained registration test is stronger than the deleted smoke case. Priority: P3 Review scores
Verification
How this fits togetherThe music-generation tool resolves configured or explicitly requested models before invoking a music provider. This cleanup simplifies that internal request path without changing its user-visible behavior. flowchart LR
A[Agent music request] --> B[Music generation tool]
B --> C[Shared model resolver]
C --> D[Provider discovery when needed]
D --> E[Music provider]
E --> F[Generated audio result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -17, Tests -14, Other -1. Total -32 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the behavior-neutral simplification after the required exact-head checks complete, retaining the stronger lazy-discovery coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes redundant internal coverage and a forwarding wrapper rather than fixing a reported user-facing failure. Is this the best way to solve the issue? Yes: calling the established shared resolver directly removes a one-use wrapper, and the retained test protects the same registration behavior plus lazy provider discovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c50533f9d944. LabelsLabel 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
History |
356ed2e to
42a3918
Compare
|
Merged via squash.
|
What Problem This Solves
The music tool has two registration tests with the same configured-model invocation. The stronger case also makes provider discovery throw and verifies it never ran. A private model-selection forwarding function has one caller and no independent contract.
Why This Change Was Made
Remove the duplicate registration case and call the shared model-selection owner directly, preserving configuration, workspace, agent directory, auth store, call override and lazy provider discovery. The shorter file no longer needs its max-lines exemption, so remove that suppression and its exact baseline row.
User Impact
Runtime and public tool behavior are unchanged. Production is +3/-20 (net -17), tests -14, and the lint baseline loses one entry. Explicit-model laziness, timeout overrides, cancellation, detached-task continuation, SSRF, persistence rollback and delivery protection retain their coverage. The separately landed fallback documentation correction is preserved; this PR does not change fallback policy.
Evidence
The ordinary Music/shared-helper group passed 52 cases before and 51 after, removing exactly the duplicate registration case. Four temporary fault controls were captured and restored: inverted availability failed both old registration cases and the stronger retained case; eager discovery failed the retained explicit-execution case before and after deletion. The final suppression/baseline cleanup does not change executable or test bytes.
Full changed checks and the standard build passed for the reviewed three-file patch, including SDK declarations, CLI bootstrap and UI budgets. Managed review and independent owner/lifecycle inspection found no actionable issue. These are retained results from their recorded source bases, not new build results after this refresh.
Hosted CI subsequently failed unrelated Teams inline-code and unpinned promotional-price fixtures. This failure-justified refresh incorporates the canonical repairs from #134528 and #134564. All three candidate afterimages and the complete binary patch remain unchanged. The canonical pricing repair's 107-case main proof retains all 20 source contexts; it is not claimed as a new branch run.
Because the base updates TypeBox to 1.3.17, the composed commit was run through the ordinary Music/shared-helper group again: all 51 cases passed with the exact inventory and order preserved. A fresh managed Codex review of the complete composed diff is scoped-clean at the configured P0 threshold. Exact-head hosted CI 33462496843 completed successfully; the latest completed review has no findings.
This is internal composition proof using existing provider, persistence and task fixtures. It does not claim a live provider call, performance improvement or durable background-task proof. No assertion is weakened and no timeout, mock surface, dependency or public API is added by this PR.
The same 51-case group also passed on the current-main composition at 9597f65, including its changed transitive auth imports, with exact case names and execution order. An independent closeout verified the complete patch, source contexts, raw logs and restoration. This is a Music owner composition check, not independent auth-storage validation.