Skip to content

Prevent Auto Mix from choosing another copy or edit of a loaded song - #44

Draft
gitwide-cloud wants to merge 4 commits into
fix/automix-trick-selectionfrom
fix/automix-song-identity
Draft

gitwide-cloud wants to merge 4 commits into
fix/automix-trick-selectionfrom
fix/automix-song-identity

Conversation

@gitwide-cloud

@gitwide-cloud gitwide-cloud commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

eligible song → current/loaded identity guard → recent identity guard → musical ranking

Keeps library IDs stable while recognizing identical decoded audio and normalized artist/title aliases. Covers desktop six-deck selection, server selection, Android queue/refill/replacement and regular ordering. Deliberate later repeats and inactive destination reuse remain allowed; the current song is always excluded independently. New requested analysis records a decoded-audio hash. Existing music is not automatically reanalyzed.

Evidence

  • Before: duplicate-index regression chose index 1 while every candidate was the playing song or an edit; expected no candidate.
  • After: base core 211 passed / 2 ignored; optional analysis core 266 passed / 5 ignored; full Windows desktop 600 passed / 75 ignored. Zero failures.
  • Real decoder test passed: differently tagged WAVs have different file hashes and the same decoded-audio hash. Strict all-target Clippy passed for core/desktop/server and separately for optional analysis.
  • Windows and Linux workspace tests, strict Clippy, release builds, native audio/update checks and Companion passed in run 47242856765 at 049c950. Native inputs are unchanged at final 6ee2572.
  • Android build/unit/lint run 47245260214 and emulator run 47245263028 passed at 6ee2572. All 55 emulator cases passed, including identity snapshots and offline/streamed Dislike.
  • Failed evidence retained: initial device-test signature mismatch; then staged-destination reuse was over-excluded, and the offline fixture's supposedly distinct songs had identical audio. Corrected the API call and destination exemption; fixture now serves distinct PCM with matching hashes. Original playback/Dislike assertions remain intact.
  • Independent spec and standards reviews completed; cycle exhaustion, adjacency repair, snapshots and paused-current guard findings resolved.

Source-only draft, stacked on #43. No app release or household installation. Physical listening and the reported edits' differing key readings remain unverified. The red X is the existing Clear deck control. Details: docs/AUTO_MIX_REPEAT_GUARD.md.

Merge Danger

Door: two-way

Library IDs and saved preparation remain intact. Older clients ignore the optional hash.

Blast Radius: cross-platform

Automatic song eligibility and cycle exhaustion change. With no distinct next song, Auto Mix retains current audio instead of mixing a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant