← Back to Pull requests

fix(spotify): migrate to the February 2026 Web API endpoints #94

Closed
unknown closed this pull request without merging on Nov 21, 2026 02:29 UTC
View on GitHub
unknown unknown commented on Nov 15, 2026 14:24 UTC
Author

Change

Restore Spotify Development Mode operations after the February 2026 API migration: create playlists through /me/playlists, use playlist /items endpoints, and save/remove/follow through /me/library. Accept both current and Extended Quota response shapes, including an explicit zero count.

Search requests page at ten results while retaining the caller's requested count and offset. Library mutations use batches of at most 40 URIs and stop at the first failed batch, preserving operations that exceeded the replacement endpoint's smaller limit.

Refresh compatible Go dependencies and build with Go 1.27.4 to fix the reachable GO-2026-6859 HTTP-server vulnerability. The source minimum remains Go 1.26.7. Document Connect's unavailable playlist counts without changing JSON/plain output or issuing a request per playlist.

Fixes #93. Resolves #96 through its documented-limitation option.

Validation

Reproduced the old search behavior with failing tests: requests for 25 and 15 results were sent as single oversized requests. Reproduced the unbatched library failure for track/album/artist saves and removals against a synthetic endpoint enforcing the 40-URI limit.

The affected Spotify, CLI, and cookie packages pass locally. Independent P0–P2 review identified the missing mutation batching; the completed fix passed a fresh independent review. Final isolated Linux proof on Go 1.27.4 passed: race coverage 90.7%, go vet ./..., deadcode v0.52.0, no findings from the current govulncheck, golangci-lint v2.15.0, built CLI version/completion smoke, and docs generation. A discovered empty-input batching regression was fixed and the full final gate rerun. Hosted exact-head CI passed on Linux, Windows, and macOS before merge.

The contributor's original live Development Mode evidence remains available at https://gist.github.com/RtYkk/1a82179076d9de81afba11a77f3327c7. Maintainer verification uses synthetic HTTP servers; no personal Spotify account or library was changed.

No application version change, tag, or release.

Diff: 264 lines (+198 / -66) across 3 files Reviewer: steipete Review duration: 7925m
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.62) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.62 · 264 lines diff across 3 files
0.62
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
57%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.334
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.062
Real PR Conversation Timeline
1 comments
"Review active on #94"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 58.0% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 62.5% (MEDIUM) · Higher = larger blast radius
62.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 58.0% · Lower = rushed or shallow review
58.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 26.2% · Safe to merge
26.2%
Repository