Commit Graph
100 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 c6a9535cf7 fix(auth): a password reset signs out Subsonic apps too, and a change can (#8107)
A reset ended every session but left the API key and Subsonic password
working, and anyone signed in to the account can make either. So whoever had
the account kept it through a Subsonic app after the owner reset the
password. The forgotten-password reset and an admin's reset now replace the
API key with one nobody holds and clear the Subsonic password.

A self-service change keeps Subsonic apps signed in by default, since it
would sign out the owner's own apps too. The web and Android password forms
gain "Sign out Subsonic apps too", sent as sign_out_subsonic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:48:21 -05:00
bvandeusenandClaude Opus 5.5 1c28e17dfc fix(auth): one invite makes one account, and a burst of sign-ups can't outrun the limit (#8106)
release / go (push) Successful in 2m8s
release / govulncheck (push) Successful in 19s
release / web (push) Successful in 1m13s
release / integration (push) Successful in 4m7s
release / android (push) Successful in 4m15s
release / Build signed APK (push) Successful in 4m46s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
Registration inserted the user and only then claimed the invite. When the
claim lost a race it kept the account anyway, so parallel sign-ups on one
invite link each made an account. The insert and the claim now run in one
transaction: RedeemInvite's row lock makes the second sign-up wait for the
first, find the invite used, and roll its account back with invite_invalid.

The register and forgot-password limits checked and counted in two steps,
so a parallel burst all read the count before any attempt was added. They
now call AttemptLimiter.Allow, which does both under the lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:45:07 -05:00
bvandeusenandClaude Opus 5.5 1b13aa8b7f fix(library): drop the stray zero a tagger writes after every UTF-16 string, not only the last (#8060)
release / go (push) Successful in 2m0s
release / web (push) Successful in 1m10s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m10s
release / android (push) Successful in 4m56s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
The first repair trimmed one stray zero at the end of a UTF-16 frame. The
same tagger writes one after every string, so a custom field (TXXX) such
as ARTISTS or REPLAYGAIN carries one between its name and its value as
well, and dhowden/tag still refused those files. Zeros between a
terminator and the next byte order mark, or the end of the frame, are now
dropped too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 15:52:03 -05:00
bvandeusenandClaude Opus 5.5 c9e058b3c9 fix(library): a UTF-16 tag frame with a stray trailing zero no longer hides the whole file (#8060)
release / go (push) Successful in 2m4s
release / web (push) Successful in 1m21s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m9s
release / android (push) Successful in 4m28s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
Some taggers end a UTF-16 text frame with a two-byte terminator and then
one more zero byte, so the frame holds an odd number of bytes.
dhowden/tag refuses the whole tag when it meets one, and the scanner
then skipped the file: 61 tracks on dev (whole albums from one tagger,
with a genre or year frame written this way) never reached the library.

internal/tagread.ReadFrom reads with dhowden/tag first. When that fails
on an ID3v2.3/2.4 tag, it rebuilds the tag in memory with the stray
byte trimmed from each such frame and reads it again. Anything else
still fails with dhowden/tag's own error. The scanner, both MBID
backfills, embedded cover art and Subsonic lyrics all read through it.

The ID3v2 primitives (syncsafe and frame sizes, the extended header,
unsynchronisation) move from library/id3v2genre.go into tagread, so the
genre reader and the repair share one copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:05:55 -05:00
bvandeusenandClaude Opus 5.5 17a9052acb refactor(api): the cover-source and tag-source admin cards share their handlers (#8002)
release / web (push) Successful in 1m16s
release / go (push) Successful in 1m49s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 3m56s
release / android (push) Successful in 4m8s
release / Build signed APK (push) Successful in 4m29s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 13s
release / Verify release artifacts (tag releases only) (push) Skipped
admin_cover_sources.go and admin_tag_sources.go were the same list,
update and test handlers over two settings services, each with its own
copy of the response mapping. With both services now a
providers.Service, admin_provider_sources.go holds the handlers and wire
types once, and each family's routes pass their own service. The wire
shape is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:01:48 -05:00
bvandeusenandClaude Opus 5.5 d8abc457e7 fix(providers): Last.fm's rate limit retries art later, and both Last.fm sources share one pace (#8002)
The cover-art Last.fm provider read every JSON error code as "no art",
so a burst of rate-limit (29) or service-unavailable (8, 11, 16)
answers marked albums and artists as having nothing on Last.fm. The tag
provider already retried those. providers.LastfmError is now the one
mapping, used by both.

Each family also paced Last.fm on its own at 4 requests a second, so
together they could reach 8 a second against the 5-per-key limit when
an admin uses one key for both. Both now wait on providers.LastfmPacer.
The client's own spacing is a providers.Interval, so a pace can be
shared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:00:51 -05:00
bvandeusenandClaude Opus 5.5 b901560edf refactor(providers): one paced, retrying HTTP client for cover art and tags (#8002)
coverart/httpclient.go and tags/httpclient.go were the same client:
pacing, exponential backoff with jitter, 401/403-as-transient, body
caps. Tags had added a User-Agent and a shared Pacer, cover art an image
GET. providers.HTTPClient now has all of it, with the tests that were in
coverart. ErrTransient is shared too, so both families' errors.Is still
match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:58:55 -05:00
bvandeusenandClaude Opus 5.5 487e11f59f refactor(providers): cover art and tags share one registry and settings service (#8002)
coverart and tags each carried a line-for-line copy of the provider
registry and the settings service: reconcile at boot, seal and reveal
API keys, bump the sources version when the enabled set or the
registered set changes. A fix to either had to be made twice.

internal/providers now holds Registry, Service (over a small Store
interface) and EnabledAs[T]. Each family keeps its own tables, provider
set and capabilities: a 40-line Store adapter over its sqlc queries and
its capability views (EnabledAlbumProviders, EnabledTrackTagProviders).
Provider, ProviderSettings, TestableProvider, ProviderInfo and
ProviderUpdatePatch stay as the families' names for the shared types.
The service has unit tests over an in-memory store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:57:19 -05:00
bvandeusenandClaude Opus 5.5 58fb2bbe9d refactor: drop code nothing calls, and the sync log rows no app reads (#8002)
release / go (push) Successful in 1m56s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 19s
release / android (push) Successful in 4m20s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / integration (push) Successful in 4m0s
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
- library.ProbeDurationMs and IsAudioFile, and db.MigrationsFS, had no
  callers.
- The delta sync logged and hydrated like and playlist changes on every
  like, playlist edit and duplicate merge, including a GetPlaylistsByIDs
  query per sync. Android applies only artists, albums and tracks, and
  the web doesn't sync; likes and playlists reach both through their own
  endpoints and live events. The like and playlist-entry deletes also
  went to every caller unscoped, user ids included. They are no longer
  written or served, and migration 0112 clears the rows already logged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:52:35 -05:00
bvandeusenandClaude Opus 5.5 39fa740bff test: one test-database opener, dbtest.Pool, in place of 39 copies (#8002)
Every package carried its own testPool/newPool/newTestPool: skip under
-short or without MINSTREL_TEST_DATABASE_URL, migrate, connect,
register the close, and usually ResetDB. dbtest.Open does the first
four (migrating once per test binary) and dbtest.Pool adds the reset.
The per-package wrappers that did nothing else are gone; fixture
helpers that seed rows keep their own signatures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:49:02 -05:00
bvandeusenandClaude Opus 5.5 47e749225e refactor(recommendation): both candidate pools score through one listener context (#8002)
LoadCandidates and LoadCandidatesFromSimilarity each loaded contextual
likes, the taste profile and context affinity, and each built
ScoringInputs field by field, so a new scoring input added to one pool
would be missing from the other. loadScoringContext loads them once
and scoringContext.inputs builds every candidate's inputs; the
similarity pool adds its similarity score on top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:46:44 -05:00
bvandeusenandClaude Opus 5.5 55a290cf4d refactor(coverart): one image Content-Type table for /api and Subsonic (#8002)
api/media.go and subsonic/stream.go each had imageContentType, the
same map in a different order, serving the same files.
coverart.ImageContentType is now the one copy, with its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:45:50 -05:00
bvandeusenandClaude Opus 5.5 074d9ffb0e refactor(api): one password rule, one hash, one unique-violation check (#8002)
The length check and bcrypt call were copied into sign-up, reset,
change and both admin paths; the unique-violation test into three api
handlers and the library. checkNewPassword and hashPassword now sit in
api/prelude.go, and db.IsUniqueViolation serves api and library. The
taken-username and taken-email conflicts now carry a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:45:18 -05:00
bvandeusenandClaude Opus 5.5 cfdd6b916f fix(subsonic): a handler without a caller answers error 50 everywhere (#8002)
Sixteen handlers answered a missing caller with error 50 "Not
authenticated"; the star, unstar and scrobble handlers answered error 0
"Unauthenticated". Middleware stops such a request first, so no app saw
it, but the next handler copied would pick one at random. requireUser
now holds the check, the same shape as /api's, at all 21 sites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:44:05 -05:00
bvandeusenandClaude Opus 5.5 0811775af6 fix(api): every /api error answers in one envelope, so Android shows the real reason (#8002)
Three error shapes were on the wire: {"error":{"code","message"}} from
writeErr, a flat {"error":"code"} from the admin queues, playback errors
and RequireAdmin, and plain text from RequireUser's 401s. Android reads
only the first, so an admin's quarantine, duplicate or suspect-file
error, and "you're not an admin", all showed "Something went wrong."

apierror.Write is now the one writer, and api.writeErr, RequireAdmin,
RequireUser, the client-APK endpoints, the events stream, the unknown-
route 404 and the admin scan all go through it. The flat writers are
gone, and the web client drops its second branch. The admin codes keep
their names; each now carries a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:43:27 -05:00
bvandeusenandClaude Opus 5.5 125099ede2 fix(server): a background job that panics no longer stops the server (#8002)
release / go (push) Successful in 2m6s
release / web (push) Successful in 1m25s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m18s
release / android (push) Successful in 4m19s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 30s
release / Verify release artifacts (tag releases only) (push) Skipped
Background jobs run in their own goroutines, outside the router's panic
recovery, and only five of them recovered. A panic in the scrobble,
similarity, co-play, gc, tags, compactor, notification, backup or
safety-net loop, or in a scan or rebuild started off a request, ended
the process and every stream in it.

internal/periodic now runs each job: a pass at start (or after one
interval, Delayed), then one per interval and on any WakeOn channel,
each pass under recover with the stack logged. Detached one-shot work
(scans, the lazy system-playlist build, bulk cover refetch, leveled
prerender, the backup run, the playlist catch-up) runs under
periodic.Safe. The duplicate resolver keeps its own loop for its
retry-soon timer, and its pass already recovers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:38:56 -05:00
bvandeusenandClaude Opus 5.5 9b36effbaf fix(android): playlist screens and the replay loop meet detekt's limits (#8023)
release / go (push) Successful in 1m49s
release / web (push) Successful in 1m11s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m6s
release / android (push) Successful in 4m19s
release / Build signed APK (push) Successful in 4m44s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
The replay loop's per-row choice moves to replayRow, so the loop has no
continue. The playlist detail's top bar and the playlists list's body
move into their own composables. ReorderableRow.kt is named for its row,
not for ReorderHandles, its parameter type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:42:27 -05:00
bvandeusenandClaude Opus 5.5 7e112ac523 feat(android): make, rename, delete and reorder playlists, offline-first (#8023)
release / go (push) Successful in 2m5s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 19s
release / android (push) Failing after 1m21s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 1m43s
release / integration (push) Canceled after 3m24s
- Add to playlist opens with a New playlist row, which makes the list
  and adds the song; the sheet lists only the listener's own lists.
- Playlists has a + to make an empty playlist and open it.
- On a playlist the listener owns: rename, make public or private and
  delete from the top bar; swipe a song away and long-press its cover to
  drag it to a new place. Mixes and other people's lists stay read-only.
- Each change shows at once and goes through the offline queue: a
  create carries the phone's own id, a removal names the song expected,
  a reorder sends the new order, and one playlist's queued changes go
  out in the order they were made.
- The queue's drag-and-swipe row is now shared by the queue and
  playlists (ReorderableRemovableRow).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:32:43 -05:00
bvandeusenandClaude Opus 5.5 a77f3ae6ff feat(playlists): changes a phone queues offline are safe to send twice (#8023)
release / go (push) Successful in 1m59s
release / web (push) Successful in 1m23s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m38s
release / android (push) Successful in 4m45s
release / Build signed APK (push) Successful in 5m22s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
- A new playlist can carry the client's own id; sending the create
  again finds the same list.
- Removing a song can name the song expected at that position; if
  another song is there now, nothing is removed (409 list_changed).
- A reorder can give the songs in their new order (track_ids); sending
  it again changes nothing.
- The playlist service tells the owner's clients about every change
  itself, so a change made from a Subsonic app refreshes the web and
  Android apps too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:22:40 -05:00
bvandeusenandClaude Opus 5.5 1df91678ba fix(subsonic): someone else's private playlist reads as absent when an app tries to change it (#8021)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:22:40 -05:00
bvandeusenandClaude Opus 5.5 df2095baae feat(subsonic): apps can make, change and delete playlists (#8021)
release / web (push) Successful in 1m43s
release / go (push) Successful in 2m21s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m31s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m44s
release / android (push) Canceled after 3m43s
createPlaylist makes a playlist, or with playlistId replaces its songs;
updatePlaylist renames it, sets its comment and visibility, removes songs
by the index the app was shown and adds songs; deletePlaylist deletes it.
A song index counts only the entries getPlaylist lists, so a hidden
entry ahead of it doesn't shift which song goes.

The playlist service gains ReplaceTracks and RemovePositions; the owner
and system-mix checks that each change repeated are one function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:17:15 -05:00
bvandeusenandClaude Opus 5.5 3491cf4c58 feat(admin): switches for ListenBrainz similarity and MusicBrainz track lists
release / go (push) Successful in 1m50s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 4m33s
release / Build signed APK (push) Successful in 4m40s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
Both lookups ran with no way to stop them. Admin › Metadata sources now
has an "Other lookups" group with a switch each, both on by default
(lookup_settings, migration 0111). Off, the similarity worker asks
ListenBrainz nothing and still links what it already fetched; the
duplicate resolver gets ErrLookupOff and decides from the track lists it
already has. The setting is backed up, and docs/security.md names the
switches. docs/security.md also says every account but the first needs an
invite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:59:25 -05:00
bvandeusenandClaude Opus 5.5 1942cb39cf test: example addresses come from the documentation range
Sonos, UPnP and public-address tests used addresses from a real home
network. They now use 198.51.100.x (RFC 5737), keeping the last number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:59:25 -05:00
bvandeusenandClaude Opus 5.5 dd27e014c0 fix(auth): an invite is the only way to an account
The README offered open registration, and the register handler still had
a branch for a registration_settings mode nothing could set. Now every
account after the first needs an invite; the first still needs the setup
token from the log. Migration 0110 drops registration_settings and its
queries, and backups no longer carry it (an older backup that holds it
restores without it). The web form asks for the invite token as required.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 08:59:25 -05:00
bvandeusenandClaude Opus 5.5 de335333da test(subsonic): a library download by search3 leaves out the missing song
release / web (push) Successful in 1m18s
release / go (push) Successful in 1m46s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m56s
release / android (push) Successful in 4m15s
release / Build signed APK (push) Successful in 4m46s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 23s
release / Verify release artifacts (tag releases only) (push) Skipped
The fixture's C has a missing file, and search3 now lists only what the
listener can play, as getAlbumList2 already did with the same fixture.
The paging test expected the old behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:13:00 -05:00
bvandeusenandClaude Opus 5.5 9207a7529d docs: say which outside services Minstrel contacts, what it sends and how to turn each off
release / web (push) Successful in 1m24s
release / go (push) Successful in 1m52s
release / govulncheck (push) Successful in 19s
release / integration (push) Failing after 4m6s
release / android (push) Successful in 4m25s
release / Build signed APK (push) Successful in 4m59s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:02:00 -05:00
bvandeusenandClaude Opus 5.5 14aa3dcd5e chore: remove code left from acquisition and Discover suggestions, and uncalled queries
Nothing reached any of it:
- MusicBrainz search (artists, albums, songs), artist lookups and the
  query escaping they used. The release-group lookups the duplicate
  resolver uses stay.
- Release-group covers, and artist-level tags for artists not in the
  library.
- Nine named queries with no caller (CountTracksByArtist went with the
  previous commit), two of them describing request-progress reporting.

The MusicBrainz client's retry and not-found tests now drive the
release-group lookup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:02:00 -05:00
bvandeusenandClaude Opus 5.5 987c2a68fa fix(web): a failed like reverts only itself
A like or unlike that failed restored the whole liked list from before it
started, undoing any like made while it was in flight. Now only its own id
goes back to how it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:02:00 -05:00
bvandeusenandClaude Opus 5.5 785b15ab5f fix(library): a scan cut off by a restart no longer blocks saving library folders
A restart mid-scan left its scan_runs row unfinished, and saving library
folders refused ("A library scan is running") until a later scan reaped it,
up to 12 hours on. Startup now closes such rows with the reason before the
boot scan, as backups already do. Saving folders and the duplicate sweep
share one check that treats a run past StuckScanThreshold as dead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:02:00 -05:00
bvandeusenandClaude Opus 5.5 1ff4bc8258 fix(subsonic): albums, folders and search list only what the listener can play
getAlbum, getMusicDirectory and search2/3 ignored the listener's quarantine
and listed missing files, which an app then failed to stream; song counts
counted both. They now pass the listener and leave out missing files, as
the mixes already did. Subsonic can't mark a song unplayable, so leaving it
out is how the native apps' greyed-out row comes across.

Song search filters in SQL (SearchPlayableTracks), so a library sync paging
through search3 never gets a short page that reads as the end. Album song
counts come from one query for the whole page (CountPlayableTracksByAlbums)
instead of one per album.

tracks.sql also drops CountTracksByArtist, which nothing called; see the
next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:02:00 -05:00
bvandeusenandClaude Opus 5.5 d0675e1817 fix(android): a device's cached data stays with the account that made it
Queued offline writes, Home, history, the quarantine list, notifications and
the resume queue carry no user id, and nothing cleared them when someone
signed out. The next person to sign in on a shared phone inherited them,
and the queued likes and plays were sent under their session.

The cached data now has an owner (Room v15, auth_session.cacheOwnerUserId).
When a different account signs in, AccountCache clears those tables in one
transaction and empties the player before adopting it. The replayer only
sends queued writes while their owner is signed in. The same person signing
back in, after a sign-out or an expired session, keeps everything. Signing
out from Settings sends what is still queued first, for up to five seconds.

An install updated from before this adopts whoever is signed in, keeping
their data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 22:02:00 -05:00
bvandeusenandClaude Opus 5.5 333523b30e fix(subsonic): one listen is one play, and a daily mix played in a Subsonic app is credited to it
release / web (push) Successful in 1m23s
release / go (push) Successful in 1m55s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m16s
release / android (push) Successful in 4m50s
release / Build signed APK (push) Successful in 5m29s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
A Subsonic app reports "now playing" when a song starts and "played" when
it ends. The played report used to close the now-playing row as a play of
its own and write a second one, so every listen counted twice, and as a
skip when the app sent the song's start time. The report now completes the
app's own row for that song. A late report for an earlier song no longer
cuts short the song playing now.

Subsonic's scrobble doesn't say where a song was played from, so Minstrel
remembers, per user and app, the daily mix the app last opened (for six
hours). A play of a song in that mix is credited to it: the mix's metrics
count it and its rotation moves on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:48:17 -05:00
bvandeusenandClaude Opus 5.5 7f7e946bad feat: artist pictures in the web and Android apps
release / web (push) Successful in 1m59s
release / go (push) Successful in 2m23s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m59s
release / android (push) Successful in 5m29s
release / Build signed APK (push) Successful in 6m26s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 31s
release / Verify release artifacts (tag releases only) (push) Skipped
Minstrel fetched artist pictures but showed them only to Subsonic apps.
GET /api/artists/{id}/image now serves the picture, or else the artist's
newest album cover, the same image Subsonic apps get. Artist listings
point at it when the artist has a picture and keep the album cover
otherwise; the artist page points at it whenever the artist has albums,
and the web artist page shows it beside the name.

Android shows the picture for cached artists that have one, and the
album cover for the rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:32:55 -05:00
bvandeusenandClaude Opus 5.5 1965e82013 feat(subsonic): artist pictures in Subsonic apps
release / go (push) Successful in 1m47s
release / web (push) Successful in 1m10s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m3s
release / android (push) Successful in 4m27s
release / Build signed APK (push) Successful in 5m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
getCoverArt now answers an artist's id: the artist picture Minstrel
fetched, when its file is there, or else the cover of the artist's most
recently added album that has one, which is what Minstrel's own artist
cards show. Every artist entry carries its id as coverArt, so apps ask.

The lookup is coverart.ResolveArtistPath, beside the album one, and looks
through at most ten of an artist's albums for a cover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:20:30 -05:00
bvandeusenandClaude Opus 5.5 6dfa7b25fb fix(subsonic): the lint findings in artist info and the lyrics handler name
release / go (push) Successful in 2m1s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m11s
release / web (push) Successful in 1m20s
release / android (push) Successful in 4m23s
release / Build signed APK (push) Successful in 5m11s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:48:57 -05:00
bvandeusenandClaude Opus 5.5 f87aba5b86 feat(subsonic): scan status, artist and album info, lyrics, ratings and users
release / go (push) Failing after 1m15s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 3m57s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 4m33s
release / Build signed APK (push) Canceled after 4m9s
The last Subsonic methods apps call that Minstrel didn't answer:

- getScanStatus counts the songs whose files are present and says
  whether a scan is running; startScan, for an admin, starts the scan the
  web app's Rescan starts, and answers "scanning" straight away since the
  scan records itself a moment later.
- getArtistInfo and getArtistInfo2 give the artist's MusicBrainz id and the
  artists in this library that sound like them, from an artist, album or
  song id; getAlbumInfo and getAlbumInfo2 give the album's MusicBrainz id.
  Minstrel fetches no biographies or outside images, so none are sent.
- getLyrics (by artist and title) and getLyricsBySongId (OpenSubsonic
  songLyrics, now declared) read lyrics when asked: a .lrc file beside the
  song gives timed lyrics, otherwise the song's own lyrics tag.
- setRating accepts a rating and keeps none: a like is Minstrel's only
  rating, and a low rating is never read as a dislike.
- getUsers lists every user, for an admin only.

ArtistRef no longer fixes its XML element name, so it can appear as
similarArtist; every field holding it names the element.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:43:13 -05:00
bvandeusenandClaude Opus 5.5 b801f81058 feat(subsonic): an artist's top songs, and the play queue carried between devices
release / go (push) Successful in 1m50s
release / web (push) Successful in 1m14s
release / govulncheck (push) Successful in 44s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 6m15s
release / Build signed APK (push) Successful in 7m51s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
getTopSongs ranks the named artist's songs by how often they were played
through on this server, then by likes, then in album order, so an artist
nobody has played yet still has songs to offer. Missing files and the
listener's quarantined songs are left out.

savePlayQueue keeps one queue per listener: the songs in order, the one
playing, how far into it, and the app that saved it. getPlayQueue gives it
back to that listener only; a song no longer in the library drops out.
Saving no songs clears it. The queue lives in a new play_queues table,
which backups carry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:03:29 -05:00
bvandeusenandClaude Opus 5.5 8731e9695a feat(subsonic): browse by genre and by folder
release / web (push) Successful in 1m16s
release / go (push) Successful in 1m47s
release / android (push) Successful in 4m30s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m59s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
Subsonic apps can now list genres and play one (getGenres,
getSongsByGenre), and apps that browse by folder, such as DSub, can open
an artist to its albums and an album to its songs (getMusicDirectory),
with the album lists and search they use in that mode (getAlbumList,
search2).

Genres are split and counted as the web's genre index counts them, now
with an album count beside the song count. A genre's songs leave out the
listener's quarantined ones and missing files. Folders are Minstrel's
artists and albums, under the same ids as the tag-based calls.

getAlbumList2 and search3 now share their selection with the folder
versions, so the two modes list and find the same things.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:40:21 -05:00
bvandeusenandClaude Opus 5.5 da64d95264 test(subsonic): read similar songs from their own keys, not a map over the whole response
release / web (push) Successful in 1m30s
release / go (push) Successful in 1m59s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m18s
release / android (push) Successful in 4m37s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:34:20 -05:00
bvandeusenandClaude Opus 5.5 bb2897dfd5 feat(subsonic): playlists and daily mixes, the weighted shuffle, and radio
release / go (push) Successful in 2m0s
release / web (push) Successful in 1m23s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m23s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m8s
release / android (push) Canceled after 3m38s
Subsonic apps now get what Minstrel picks, not only what it holds:

- getPlaylists lists the listener's daily mixes first, then their own
  playlists, then other people's public ones; getPlaylist returns the
  playable songs in order, as <entry> elements in XML.
- getRandomSongs answers with the weighted shuffle (likes up, skips down,
  the last hour's plays out), narrowed by genre and release year.
- getSimilarSongs and getSimilarSongs2 answer with Minstrel's radio, seeded
  from a song, or from a random song of an album or artist.

Radio's selection moves out of the /api/radio handler into
recommendation.Picker, built by recsettings.Service.Picker, so the web and
Android apps and the Subsonic apps pick through one piece of code and one
tuning. SongRef loses its XMLName so the field holding it names the element.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:25:49 -05:00
bvandeusenandClaude Opus 5.5 66861a2bc4 test: the case-and-spacing duplicate title matches its renamed pair
release / go (push) Successful in 2m6s
release / web (push) Successful in 1m11s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m17s
release / android (push) Successful in 4m58s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 26s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:34:43 -05:00
bvandeusenandClaude Opus 5.5 4e1807cbba test: invented artists, albums and MusicBrainz ids in place of real ones
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Test data and example comments named real artists, records and songs, and
carried real MusicBrainz ids. One mapping swaps them for invented ones
throughout (Fields of Ontario, Plastic Apes, Marlo Davies, ...), keeping
what each case tests: sort order, index letter, escaping, title keys,
artist-prefix stripping. A test username is no longer the operator's name.

The cover-art and Last.fm connection checks still query real releases;
they reach live services and need something that exists there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:21:34 -05:00
bvandeusenandClaude Opus 5.5 4244d81dfd build: keep the pipeline's own files out of the source release export
git archive, which makes the public source release, now leaves out the
workflow, ci/version.sh, ci-requirements.md and the two tests that pin the
workflow file (without it they would fail go test ./...). docs/security.md
no longer points readers at the workflow file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:14:58 -05:00
bvandeusenandClaude Opus 5.5 29ab3f93fc docs(readme): tell iPhone users to use a Subsonic app, and what it can do
release / web (push) Successful in 1m25s
release / go (push) Successful in 1m55s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m7s
release / android (push) Successful in 4m45s
release / Build signed APK (push) Successful in 5m15s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
There is no iOS app. The first-run steps now say which Subsonic apps to use
on an iPhone and where to make their password, and the README no longer says
Subsonic apps get Minstrel's mixes: they browse, search, play, like and
scrobble, and the mixes, smart shuffle and radio stay in the web and Android
apps for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:14:31 -05:00
bvandeusenandClaude Opus 5.5 cd78529ae8 fix(subsonic): answer what the OpenSubsonic spec and Subsonic apps require
- getOpenSubsonicExtensions answers, without credentials, as the spec
  requires of a server that says openSubsonic=true; it lists
  apiKeyAuthentication. An apiKey sent with u is error 43 and an unknown
  apiKey error 44, the extension's codes; a wrong key still counts toward the
  sign-in throttle.
- search3 with an empty query (or two quote marks) matches everything, paged
  in a stable order, so apps that keep a copy of the library (Symfonium) can
  download it. A page of songs reads its albums and artists in two queries,
  not two per song.
- getAlbumList2 serves type=starred and highest (the listener's liked
  albums) and byYear (oldest first, newest first for a backwards range).
- Internet radio, podcasts, bookmarks, shares, chat and now-playing answer
  with an empty list instead of "Method not implemented", so an app shows an
  empty tab rather than an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:14:31 -05:00
bvandeusenandClaude Opus 5.5 1efc65ee10 docs: retake the Home screenshots now a featured guest is a credit, not a mix
The demo library's "Low Tide Choir feat. Ruby Calloway" track no longer
makes a "Songs like Low Tide Choir feat. Ruby Calloway" mix on Home. The
demo README's teardown line now sets DEMO_MUSIC, which compose needs even to
stop the stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:30:23 -05:00
bvandeusenandClaude Opus 5.5 6351b4651a fix(scanner): a featured guest or a listed collaborator is a credit on the track, not an artist of their own
release / web (push) Successful in 1m13s
release / go (push) Successful in 1m46s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m52s
release / android (push) Successful in 4m11s
release / Build signed APK (push) Successful in 4m42s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
A track tagged "Low Tide Choir feat. Ruby Calloway" was filed under an
artist of that whole name, with its own page, its own place in the artist
list and its own "Songs like" mix. It is now filed under Low Tide Choir and
keeps "Low Tide Choir feat. Ruby Calloway" as its credit, shown wherever the
track is listed, sent to Subsonic apps and scrobbled.

A collaboration is split only when the file lists its artists one by one
(Picard's ARTISTS tag, read from FLAC, Ogg, Opus, MP3 and M4A). "A & B" on
its own may be one band, so it stays whole. A Vorbis file's artist id is now
its first, not the guest's.

Tag-read version 10 re-reads the library once; the scan's tidy-up removes
the credit-named artists it leaves empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 12:08:55 -05:00
bvandeusenandClaude Opus 5.5 2bc6c60938 docs: README screenshots come from an invented demo library
release / web (push) Successful in 1m16s
release / go (push) Successful in 1m47s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m1s
release / android (push) Successful in 4m31s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 13s
release / Verify release artifacts (tag releases only) (push) Skipped
Every artist, album, cover and song in the screenshots is generated by
tools/demo-library, so none of it is anyone's real music or art. The
folder builds the library (ffmpeg-synthesised audio, drawn covers),
gives a demo account two months of listening so every Home mix appears,
runs Minstrel and Postgres on a network with no internet, and retakes
the screenshots with Playwright. The README now shows Home, Now playing
and Home on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:24:15 -05:00
bvandeusenandClaude Opus 5.5 f4336cdc23 fix: an album's tracks are credited to their own artists, not all to the album's
release / go (push) Successful in 1m52s
release / web (push) Successful in 1m6s
release / integration (push) Successful in 4m15s
release / govulncheck (push) Successful in 23s
release / android (push) Successful in 4m9s
release / Build signed APK (push) Successful in 4m39s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 23s
release / Verify release artifacts (tag releases only) (push) Skipped
Albums are now filed under their album artist, so a compilation's tracks
and a featured guest's track have a different artist from their album.
The web album page and Subsonic getAlbum named every track after the
album's artist, so a compilation read Various Artists on every row. Both
now name each track by its own artist, read in one query, and fall back
to the album's artist if that lookup fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:05:58 -05:00
bvandeusenandClaude Opus 5.5 55a6f1e437 fix(web): opening an admin or Collection page directly no longer bounces an admin to Home
The two route gates read the signed-in user without waiting for the root
layout to load it. SvelteKit runs layout loads side by side, so a
refresh or a bookmark found no user yet and redirected to Home. Each gate
now awaits parent() before it judges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:05:58 -05:00
bvandeusenandClaude Opus 5.5 c4eaa33e24 fix(web): a Home row with one or two items no longer stretches them across the page
release / go (push) Successful in 1m50s
release / web (push) Successful in 1m14s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m9s
release / android (push) Successful in 4m13s
release / Build signed APK (push) Successful in 4m39s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
Home rows size their tiles to fill the window, and a row with fewer
items than fit split the whole width between them. One suggestion in
You might like became an album cover as wide as the page. Tiles now
grow to at most twice their minimum width; rows with enough items
still fill the window exactly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:01:35 -05:00
bvandeusenandClaude Opus 5.5 6dda9ef219 fix(web): the app opens over plain HTTP on a home network instead of showing a blank page
Browsers offer crypto.randomUUID only on HTTPS pages and localhost. The
player's client id called it at startup, so opening Minstrel at
http://<host>:4533, as the README's quick start says to, threw before
anything rendered. The id now falls back to crypto.getRandomValues,
which every page has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:01:35 -05:00
bvandeusenandClaude Opus 5.5 8530b838b0 fix(db): the startup wait closes its probe connection without dropping the error check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 10:01:35 -05:00
bvandeusenandClaude Opus 5.5 040b90898b fix: Minstrel waits for its database at startup instead of exiting
release / web (push) Successful in 1m12s
release / go (push) Failing after 1m12s
release / govulncheck (push) Successful in 16s
release / integration (push) Successful in 3m49s
release / android (push) Successful in 4m28s
release / Build signed APK (push) Successful in 5m54s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
A first docker compose up starts Minstrel and a new Postgres together, and
the database spends several seconds initialising before it takes
connections. Minstrel tried once and exited, and with no restart policy
in the quick-start compose it stayed down. It now retries every two
seconds for up to two minutes, logging each attempt, and only then exits
with the last connection error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 09:46:19 -05:00
bvandeusenandClaude Opus 5.5 34c0690667 test(library): drop an unused field from the album-artist test
release / go (push) Successful in 1m49s
release / web (push) Successful in 1m14s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / android (push) Successful in 4m28s
release / Build signed APK (push) Successful in 4m48s
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:16:16 -05:00
bvandeusenandClaude Opus 5.5 1a98a23d1f feat(library): albums are filed under their album artist, and empty rows are tidied after a scan
release / go (push) Failing after 1m13s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m4s
release / android (push) Successful in 4m48s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
The scanner read only the track artist, so a compilation tagged
Various Artists, or an album with one featured-artist track, became one
album per track artist. It now files the album under the album artist
the file names (ALBUMARTIST / TPE2 / aART, with its MusicBrainz id),
and each track keeps its own artist. Tag-read version 9 re-reads the
library so existing tracks move back onto one album.

A scan now ends by removing album rows no track points to, and artists
left with no albums or tracks, telling clients they are gone. Albums
whose tracks are only missing stay for Needs a file, an artist a Songs
like playlist is seeded from stays, and rows made in the last ten
minutes are left alone so a file being added is never caught half way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:08:21 -05:00
bvandeusenandClaude Opus 5.5 ad75f3ac7e chore: comments and tests explain themselves, and the dev compose drops its healthcheck
release / go (push) Successful in 1m39s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m3s
release / android (push) Successful in 4m46s
release / Build signed APK (push) Successful in 5m5s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 26s
release / Verify release artifacts (tag releases only) (push) Skipped
Test names, assertion messages and comments no longer cite internal
task or rule numbers; each says the reason itself. The dev compose
starts Minstrel after the database without a healthcheck to gate on,
since Minstrel waits for its database at startup on its own. The
published-names test is removed; that check is a local grep before
publishing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:58:58 -05:00
bvandeusenandClaude Opus 5.5 104f9fd141 feat: Your genres leads with the genres you play most, not A to Z
release / web (push) Successful in 1m8s
release / go (push) Successful in 1m40s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m43s
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
release / android (push) Successful in 4m21s
release / Build signed APK (push) Successful in 4m55s
release / Attach APK to the Release (tag releases only) (push) Skipped
The genre mix builder already ranks genres by how much you listen to
them (taste profile, then plays and likes, then library size), but the
rank was lost when the mixes were stored and both apps sorted the shelf
by name. Each playlist now has a shelf_rank (migration 0107), which the
genre builder fills 1..n in that listening order, even where it picked a
narrower genre before a broader one. The list and detail endpoints carry
it, and the web and Android Home sort the genre shelf by it, unranked
playlists after by name. Android's playlist cache gains the column
(Room v14).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 18:10:08 -05:00
bvandeusenandClaude Opus 5.5 7cc14da1a7 feat(android): Home's album and artist shelves step down in size, as on web
release / go (push) Successful in 2m3s
release / web (push) Successful in 1m32s
release / integration (push) Successful in 4m39s
release / govulncheck (push) Successful in 19s
release / android (push) Successful in 5m3s
release / Build signed APK (push) Successful in 5m10s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
Recently added keeps the 144dp album cover. The You might like and
Rediscover album shelves use 120dp covers, and every artist shelf 104dp
circles, following web's 176 / 144 / 128px tile ranking. Album and
artist cards and their skeletons take the size as a parameter; other
screens keep the defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:54:45 -05:00
bvandeusenandClaude Opus 5.5 3f0980a815 docs(db): UpsertArtist matches on mbid only; the comment said name too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:54:45 -05:00
bvandeusenandClaude Opus 5.5 38d138a759 fix(android): the square playlist card dims by the shelf tiles' shared alpha
release / web (push) Successful in 1m37s
release / go (push) Successful in 2m3s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m19s
release / android (push) Successful in 4m52s
release / Build signed APK (push) Successful in 5m54s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 23s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:33:00 -05:00
bvandeusenandClaude Opus 5.5 a00fb5a0e0 feat(android): tall playlist cards on a phone held upright, two in view
release / web (push) Successful in 1m24s
release / go (push) Successful in 2m2s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m2s
release / android (push) Failing after 4m1s
release / Build signed APK (push) Failing after 4m14s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Below 600dp the Playlists shelf's wide cards left one playlist in view.
There the shelf now uses tall cards: the cover on top, and under it the
cover-coloured panel with the name, what the mix is built from and the
play button, sized so two show whole with a glimpse of the third. Wider
screens keep the wide cards; placeholders follow the same switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:23:24 -05:00
bvandeusenandClaude Opus 5.5 23a7b18076 fix(android): the update bar moves while a download already under way finishes
release / web (push) Successful in 1m13s
release / go (push) Successful in 1m42s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m53s
release / android (push) Successful in 4m37s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 27s
release / Verify release artifacts (tag releases only) (push) Skipped
On Wi-Fi the app fetches a new build ahead, holding the download turn.
An Update tap during that waited behind it with a bar stuck at zero,
because the fetch reported its progress to nobody. The repository now
publishes the running download's progress, and the bar follows it
whoever started the download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 13:00:24 -05:00
bvandeusenandClaude Opus 5.5 ad7609e4c1 fix(android): name the HSL thirds, give PlaceholderShape its own file, trim the cards file
release / web (push) Successful in 1m14s
release / go (push) Successful in 1m47s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m6s
release / android (push) Successful in 4m27s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:38:58 -05:00
bvandeusenandClaude Opus 5.5 d42a355612 feat(android): Home shelves you can tell apart, matching web
release / go (push) Successful in 1m56s
release / web (push) Successful in 1m8s
release / govulncheck (push) Successful in 20s
release / android (push) Failing after 1m16s
release / integration (push) Successful in 3m59s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 4m29s
Playlists show as wide cards washed in their cover's colour, Songs like
as circles labelled with the artist, and genres as colour bands with a
fan of three covers across 80% of the band, leftmost on top. Each tile
on a shelf gets a cover no tile before it shows, and the size and
refresh time the mixes share sit once beside the shelf's title.

The cached playlist row keeps the cover albums and creation time the
playlists list now carries (Room v13, MIGRATION_12_13). Placeholders
take their shelf's shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:29:00 -05:00
bvandeusenandClaude Opus 5.5 e71c132cc7 test(playlists): key the same-day snapshot by mix, not by name
release / web (push) Successful in 1m20s
release / go (push) Successful in 1m49s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m8s
release / android (push) Successful in 4m48s
release / Build signed APK (push) Successful in 5m39s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 1m20s
release / Verify release artifacts (tag releases only) (push) Skipped
The fixture makes one artist row per track, so artists share names, and
with twelve Songs like mixes two can both be "Songs like X". Keyed by
name, their tracks merged and interleaved in tie order, so the snapshot
varied though the mixes did not. Name plus seed artist identifies a mix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:17:17 -05:00
bvandeusenandClaude Opus 5.5 e4728e003a test(playlists): the same-day determinism test names the mix that changed
release / go (push) Successful in 1m47s
release / web (push) Successful in 1m8s
release / govulncheck (push) Successful in 27s
release / integration (push) Failing after 4m2s
release / android (push) Successful in 4m48s
release / Build signed APK (push) Successful in 5m7s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:45:43 -05:00
bvandeusenandClaude Opus 5.5 806658aa60 feat(playlists): twelve Songs like mixes a day, drawn from a top-24 artist pool
release / go (push) Successful in 2m2s
release / web (push) Successful in 1m14s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m5s
release / android (push) Successful in 4m38s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Six mixes stretched to oversized circles on a wide window; twelve fill
the row at its normal tile size. The pool doubles with the count so the
daily shuffle still rotates which artists get a mix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:24:58 -05:00
bvandeusenandClaude Opus 5.5 46d97e51f7 fix(web): a genre band's fan spans 80% of its width, leftmost cover on top
release / go (push) Successful in 1m59s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m22s
release / android (push) Successful in 4m28s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 4m43s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:15:12 -05:00
bvandeusenandClaude Opus 5.5 c4ac14d77a fix(web): genre fans grow with their band, and short shelves fill the row
release / go (push) Successful in 1m51s
release / web (push) Successful in 1m31s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m22s
release / android (push) Successful in 4m58s
release / Build signed APK (push) Successful in 5m6s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 27s
release / Verify release artifacts (tag releases only) (push) Skipped
A genre band's fan of covers is sized to the band's height (74% of it),
larger than before, and may run under the genre's name again; the name
sits on a dark translucent backing that keeps it readable over any cover.

A shelf with fewer items than fit across the page now splits the whole
width between them, so no shelf ends partway across.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:09:52 -05:00
bvandeusenandClaude Opus 5.5 ca70cf7678 test(web): a wide card's wash is its cover colour as washTone tones it
release / web (push) Successful in 1m45s
release / go (push) Successful in 2m10s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m23s
release / android (push) Successful in 4m58s
release / Build signed APK (push) Successful in 5m36s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 40s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:51:13 -05:00
bvandeusenandClaude Opus 5.5 b8aacc71e3 fix(web): import the shelf helpers the shelf tests use
release / go (push) Successful in 2m6s
release / web (push) Failing after 1m18s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m2s
release / android (push) Successful in 4m19s
release / Build signed APK (push) Successful in 5m5s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:29:39 -05:00
bvandeusenandClaude Opus 5.5 e311e434a8 fix(web): home shelves fill the window and their text stays readable on any cover
release / web (push) Failing after 11s
release / go (push) Successful in 1m52s
release / govulncheck (push) Successful in 23s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / integration (push) Canceled after 4m12s
release / android (push) Canceled after 4m3s
release / Build signed APK (push) Canceled after 2m3s
A wide card or genre band's wash keeps its cover's hue but caps its
lightness and saturation, so a pale or loud cover no longer washes the
card too light for its text; the faintest text on it is 80% parchment,
and a test checks 4.5:1 against the lightest wash allowed. A genre's
name keeps clear of its fan of covers.

Shelves size their tiles to the window: each shows a whole number of
tiles that fill its width, a short shelf grows its tiles up to a cap,
and the arrows page by whole tiles. On a very wide screen the page stops
at 140rem and centres.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:25:27 -05:00
bvandeusenandClaude Opus 5.5 16225f09f7 fix(web): shelf headings count through plural(), and the day-count test matches calendar days
release / go (push) Successful in 1m53s
release / web (push) Successful in 1m44s
release / govulncheck (push) Successful in 24s
release / integration (push) Successful in 5m6s
release / android (push) Successful in 5m21s
release / Build signed APK (push) Successful in 5m49s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:13:57 -05:00
bvandeusenandClaude Opus 5.5 5e7b8a7694 feat(web): home shelves you can tell apart at a glance
release / go (push) Successful in 1m46s
release / web (push) Failing after 1m8s
release / govulncheck (push) Successful in 23s
release / integration (push) Successful in 4m12s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 1m38s
release / android (push) Canceled after 3m3s
Each home shelf now has its own shape. Main mixes and playlists are wide
cards: the lead album's cover on a wash of its own colour, with the name
and what the mix is built from beside it rather than over the art. Songs
like mixes are circles, the shape artists already have. Genre mixes are
short bands with a fan of three covers. Shelf sizes step down from the
main mixes.

Tiles show album covers in place of the four-cover collage, and no cover
repeats along a shelf while a tile still has an unused one. The size and
refresh time every mix on a shelf shares is said once, beside the shelf's
title. Library pages keep the square card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:09:02 -05:00
bvandeusenandClaude Opus 5.5 ec017838a2 feat(playlists): playlists list their cover albums, and system mixes say what they hold
release / go (push) Successful in 2m2s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 4m10s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m48s
Each playlist on the wire (list and get) carries cover_album_ids: up to
six distinct albums with art, in the order they first appear. A shelf of
playlist tiles takes each tile's first album that no tile before it
shows, so no cover repeats along the shelf.

System mixes are stored with a one-line description of what they are
built from, written in one place so the web and Android apps show the
same words. Songs like and genre mixes have none; their names say it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:59:44 -05:00
bvandeusenandClaude Opus 5.5 0e2538e888 chore: license Minstrel under the AGPL-3.0
release / go (push) Successful in 2m1s
release / web (push) Successful in 1m23s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m9s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m14s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped
LICENSE is the GNU Affero General Public License v3.0, verbatim from
gnu.org, replacing the MIT text from the first commit. The README says
what it means for someone running a changed copy as a service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:41:03 -05:00
bvandeusenandClaude Opus 5.5 84d700b036 docs(screenshots): home page on the current UI
The account name in the header reads "demo" so no real account ships
with the repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:32:29 -05:00
bvandeusenandClaude Opus 5.5 dbe075c686 test(release): the published tree names no music-finding tool
release / go (push) Successful in 2m16s
release / web (push) Successful in 1m26s
release / integration (push) Successful in 4m37s
release / govulncheck (push) Successful in 22s
release / android (push) Successful in 4m35s
release / Build signed APK (push) Successful in 5m4s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
A go-lane test reads every tracked file and path and fails on any of the
music-finding tools Minstrel no longer uses or ships beside. It holds their
names only as hashes, so it does not name them itself, and a second test
shows the matcher catching a stand-in name in any case and inside a word.

Also gone: the screenshots of the removed integration, requests and
auto-approve screens (the README no longer shows the old admin page), and
comments that still spoke of indexer keys and re-acquisition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:24:04 -05:00
bvandeusenandClaude Opus 5.5 71a1a7414a fix(library): a file back at a waiting track's path brings it back at once
release / go (push) Successful in 1m40s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m50s
release / android (push) Successful in 4m29s
release / Build signed APK (push) Successful in 4m45s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 42s
release / Verify release artifacts (tag releases only) (push) Skipped
The watcher scans single files and never reconciles, and a file restored
with its old mtime takes the unchanged skip, so a track whose file came
back at the same path waited in Needs a file for the next full scan. The
scan now clears the mark when the path it reads belongs to a waiting
track, and tells clients it plays again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:05:48 -05:00
bvandeusenandClaude Opus 5.5 813c289bc0 fix(web): track menus open past a short list, and the player's flag box opens up
release / web (push) Successful in 1m24s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m55s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m2s
release / android (push) Canceled after 2m53s
TrackList no longer clips its rows, so a row's menu shows under a one-row
search result; the first and last rows round their own corners instead.
The flag box takes its menu's direction, so on the player bar it opens
above the bar instead of off the screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:01:40 -05:00
bvandeusenandClaude Opus 5.5 285a24f0ab feat(db): fold every migration into one baseline at version 106
release / web (push) Successful in 1m13s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m56s
release / android (push) Successful in 4m19s
release / Build signed APK (push) Successful in 4m40s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
0106_baseline.up.sql is the schema at version 106 and the settings rows
it starts with, taken from a database migrated through 0001–0106; a
database built from the baseline alone dumps identically. A database
already at 106 skips it. Comments that pointed at a migration number now
name the table or constraint instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:57:18 -05:00
bvandeusenandClaude Opus 5.5 13df3d756d style(api): gofmt the playback-error resolutions
release / go (push) Successful in 2m6s
release / web (push) Successful in 1m27s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m16s
release / android (push) Successful in 4m18s
release / Build signed APK (push) Successful in 4m40s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:44:53 -05:00
bvandeusenandClaude Opus 5.5 27b52c3993 feat(db): migration 106 also drops the request enums
release / go (push) Failing after 1m16s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 19s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 2m16s
release / Build signed APK (push) Canceled after 1m7s
release / integration (push) Canceled after 3m40s
request_kind and request_status were the requests table's column types
and outlived it. No database has run 106 yet, so it carries the drop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:36:23 -05:00
bvandeusenandClaude Opus 5.5 c5e5387977 chore: clear the request-era leftovers
release / integration (push) Canceled after 0s
release / web (push) Canceled after 0s
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 8s
A playback error can no longer be resolved as "requested": the server
refuses it, migration 106 takes it out of the CHECK (no row used it), and
the Reports history and types drop its label. The web and Android error
tables lose the copy for errors only the wanted list, follows, release-type
profiles, downloads and indexers sent, and comments stop naming Discover,
following and the requests page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:33:18 -05:00
bvandeusenandClaude Opus 5.5 8c6bbac48d feat(db): drop the acquisition and Discover tables
release / web (push) Successful in 1m22s
release / go (push) Successful in 1m49s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m10s
release / android (push) Successful in 4m27s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
Migration 105 removes the tables the acquisition and Discover features
kept, and users.auto_approve_requests. Before library_album_matches goes,
an album with no release-group MBID takes the one its match listed.
Tables drop without CASCADE, in reference order, so a reference from a
table that stays stops the migration. The down migration refuses: the
data is gone, and a backup from before it is the way back.

The backup table list, the test reset list and the duplicate and user
queries follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:20:22 -05:00
bvandeusenandClaude Opus 5.5 741c748135 test(api): quarantine tests no longer clear the requests table
release / web (push) Successful in 1m32s
release / go (push) Successful in 1m58s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m34s
release / android (push) Successful in 4m37s
release / Build signed APK (push) Successful in 5m15s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
dbtest.ResetDB clears it, and the table is on its way out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:11:08 -05:00
bvandeusenandClaude Opus 5.5 51afbb8df5 feat(android): Admin Quarantine is Reports, with the web's two removals
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / web (push) Canceled after 11s
release / integration (push) Canceled after 11s
release / go (push) Canceled after 12s
The Admin card is Reports ("Tracks listeners flagged"). Each report
offers Resolve, Remove the file (the file goes and the track waits for a
good copy, with its likes and plays) and Remove from library (track,
file and history). Both removals now ask first; Delete file used to
delete on the tap.

They stay online-only: each deletes a file for good against a live
queue, so a replay hours later could act on a decision another admin
has since made. Offline they fail with the reason and the row returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:11:00 -05:00
bvandeusenandClaude Opus 5.5 f52eb1a6fa test(web): the Reports history names a full removal as the page now does
release / go (push) Successful in 1m59s
release / web (push) Successful in 1m33s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m34s
release / Build + push container image (push) Successful in 24s
release / Verify release artifacts (tag releases only) (push) Skipped
release / android (push) Successful in 4m51s
release / Build signed APK (push) Successful in 5m21s
release / Attach APK to the Release (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:51:58 -05:00
bvandeusenandClaude Opus 5.5 bcd9e422a5 feat(web): every Collection queue can remove the file and keep the track
release / web (push) Failing after 1m28s
release / go (push) Successful in 1m53s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m16s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m13s
release / android (push) Canceled after 2m59s
Reports offers "Remove the file" ahead of "Remove from library": the
bad file goes and the track waits in Needs a file, with its likes and
plays, for a good copy. Suspect sources gets "Remove this file", and the
Duplicates wrong-slot action and its route are named for what they do
(remove-files). Their toasts and copy name Needs a file.

Missing files becomes Needs a file in the rail, the Collection header and
the Overview counts. Each track says why it waits and who removed it, and
can be forgotten one at a time or by folder; the list exports as a CSV or
copies to the clipboard. The empty state says how a track gets there and
how it leaves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:47:36 -05:00
bvandeusenandClaude Opus 5.5 492eb2fb9a feat(library): Missing files says why each track waits, and can forget or export it
release / go (push) Successful in 1m49s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m29s
release / android (push) Successful in 4m43s
release / Build signed APK (push) Successful in 5m1s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
- The missing list carries each track's disc and track number, its
  recording and release-group MBIDs, the Collection queue its file was
  removed from, and the admin who removed it.
- POST /api/admin/library/missing/forget deletes waiting tracks for good,
  tidying away an album or artist they leave empty, and writes a
  track_forget audit row naming each. It is all or nothing: a track that
  has its file again is refused with 409 track_has_file.
- GET /api/admin/library/missing.csv exports every waiting track (artist,
  album, disc, track, title, MBIDs, why, since) to hand to whatever finds
  music.
- DELETE /api/admin/tracks/{id} is retired. No client called it; its
  service becomes tracks.Service.ForgetTracks.

Grimoire #7744 (milestone 635).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:34:01 -05:00
bvandeusenandClaude Opus 5.5 9462052625 feat(library): removing a bad file keeps its track, waiting for a good copy
release / go (push) Successful in 2m6s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m46s
release / android (push) Successful in 4m47s
release / Build signed APK (push) Successful in 5m38s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 31s
release / Verify release artifacts (tag releases only) (push) Skipped
Reports, Duplicates and Suspect sources now end the same way: the file
goes and the track stays, marked missing with its likes, plays and
playlist places, until a good copy lands in the library and move
adoption or missing-pair folding brings it back.

- library.RemoveFile removes one track's file and marks the track
  missing with the queue it was removed from and who removed it
  (tracks.removed_reason / removed_by, migration 0104). The duplicate
  resolver's wrong-slot removal shares the same marking.
- POST /api/admin/quarantine/{id}/remove-file removes a reported file,
  clears the listeners' reports, marks open playback errors deleted and
  records removed_file in the Reports history. A wrong-file or
  wrong-tags report drops the file's recording MBID.
- POST /api/admin/library/suspect-sources/{id}/remove removes a video
  rip's file and its MBID, and writes a suspect_file_remove audit row.
- The removal reason clears with the missing mark when a file returns.

Grimoire #7743 (milestone 635).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:17:26 -05:00
bvandeusenandClaude Opus 5.5 e5f11647ee test(web): the bell test reads the new-music body
release / web (push) Successful in 1m31s
release / go (push) Successful in 2m6s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m42s
release / android (push) Successful in 5m25s
release / Build signed APK (push) Successful in 6m19s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 36s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:35:43 -05:00
bvandeusenandClaude Opus 5.5 561c1d5eae feat: new-music notices come from the scanner; request notices and the original specs go
release / web (push) Failing after 1m29s
release / go (push) Successful in 1m55s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m22s
release / android (push) Successful in 4m57s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 4m23s
Request notifications (approved, declined, completed, pending) are removed
along with the request flow that produced them. A new_music kind takes the
"new music arrived" slot: when a scan or a watcher batch finishes, the
scanner claims every album not yet announced (albums.announced_at) and tells
every user about the ones that are new: an album with a track on disk and
no track older than itself. The first import into an empty library, and an
album formed only by retagging tracks already held, announce nothing. One
notice per scan, carrying up to 50 albums and the total; it is never
coalesced, so a notice already emailed can't quietly absorb later arrivals.
It feeds the daily summary email, grouped by artist. Defaults: inbox and
email on, phone off.

Migration 0103 deletes request-kind notification rows and prefs, swaps the
kind CHECKs to new_music, and adds albums.announced_at with every album
held marked announced, so the first scan after it announces nothing old.

Web and Android: labels, the Android "Requests" settings section becomes
"New music", the shade channel your_requests becomes new_music (the old one
is deleted at startup), and "/" opens Home in the app. TrackLabel moves to
the notifications package. docs/smart-music-{server,client}-spec.md are
deleted per the operator; an Android comment loses the word "exchanges".

Grimoire #7666, #7671.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:29:13 -05:00
bvandeusenandClaude Opus 5.5 9d267ba8dd feat(android): the app drops requests, Discover and auto-approve
release / go (push) Successful in 1m52s
release / web (push) Successful in 1m17s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m12s
release / android (push) Successful in 4m46s
release / Build signed APK (push) Successful in 5m50s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 23s
release / Verify release artifacts (tag releases only) (push) Skipped
The server no longer takes requests or suggests music, so the app's
screens for them go:
- My requests (Settings), Discover (the app bar menu) and Admin >
  Requests, with their routes, view models, repositories, API
  interfaces and models;
- the auto-approve toggle on Admin > Users;
- the Requests card and its count on the Admin landing.

The offline queue loses its request_create, request_cancel and
suggestion_snooze_toggle kinds. A phone that still holds rows of those
kinds drops them on the next drain, through the replayer's existing
unknown-kind path, so nothing is retried against the removed endpoints.
The toggle-collapse tests that used snoozes now use likes and settings.

Notification links to /requests and /admin/requests open nothing. The
request notification kinds and their settings section stay until the
server decides what replaces them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:09:08 -05:00
bvandeusenandClaude Opus 5.5 0eae7a247a test(similarity): only library artists are stored
release / android (push) Successful in 4m34s
release / web (push) Successful in 1m21s
release / go (push) Successful in 1m52s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m6s
release / Build signed APK (push) Successful in 5m13s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 37s
release / Verify release artifacts (tag releases only) (push) Skipped
The similarity worker stops keeping the similar artists the library does
not hold, now that Discover is gone. The test keeps its check that the
in-library match lands scored against the seed's best, and drops the
assertions on the unmatched table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:03:10 -05:00
bvandeusenandClaude Opus 5.5 797fb1f4b4 fix(web): take the patched SvelteKit and adapter-static
release / go (push) Successful in 1m44s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m12s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 3m59s
release / Build signed APK (push) Canceled after 2m33s
npm audit now flags @sveltejs/kit 3.0.1 (high: GHSA-mw6w-2fmv-pvw3,
GHSA-m9j8-jcmv-hp69 and others) and @sveltejs/adapter-static 4.0.0
(moderate: GHSA-jf9x-2fg2-hx4w). The lockfile moves to kit 3.4.0 and
adapter-static 4.0.1, inside the ranges package.json already allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:57:29 -05:00
bvandeusenandClaude Opus 5.5 55c7497ca7 feat: Minstrel stops acquiring music and drops Discover
release / go (push) Successful in 1m54s
release / web (push) Failing after 5s
release / integration (push) Failing after 3m44s
release / govulncheck (push) Successful in 20s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 19s
release / android (push) Canceled after 2m37s
Minstrel is now a viewer of the library it is pointed at. Finding,
downloading and filing music moves out of it.

Removed from the server:
- the request flow (requests, approval, auto-approve) and the wanted list,
  follows, release profiles and release blocks;
- searching indexers, the download clients, the importer, the album
  lifecycle and missing-file re-acquisition;
- the catalogue's discography, search and art (the MusicBrainz release and
  track-list cache stays, for the duplicate resolver);
- Discover: its suggestions of artists not in the library, snoozes, the
  candidate-artist tag enrichment and its tuning scope;
- writes to acquisition tables from moving the library folder and from
  merging duplicates, the want-list join on Suspect sources, the sealing of
  acquisition credentials, and the release-group lookup only
  re-acquisition used.

Settling a wrong-slot duplicate no longer sets the release aside: the
copies go and their slots show as missing until a good copy is in the
library.

Removed from the web: Admin > Acquisition and Requests, /requests,
/discover, Follow on the artist page, the auto-approve toggle, and the
Collection's wanted-list tabs. The Collection is now the library's health:
an overview, Reports, Duplicates, Suspect sources and Missing files. The
README and docs no longer describe getting music.

The tables stay for now; a later migration drops them. The request
notification kinds and the Android screens are still to go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:51:14 -05:00
bvandeusenandClaude Opus 5.5 dabe1e052d feat: genre mixes pick specific genres that don't share songs (#6933)
release / go (push) Successful in 2m0s
release / web (push) Successful in 1m33s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 5m11s
release / android (push) Successful in 4m14s
release / Build signed APK (push) Successful in 4m38s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
The shelf had four mixes built largely from the same lo-fi beats: about
1,250 tracks carry Hip Hop, Lo-Fi, Instrumental, Downtempo and four more
tags at once, and the near-duplicate guard compared artists, not songs, so
each tag passed as its own channel.

Genre selection now works on songs:
- ListGenreMixCandidates returns each genre's track ids instead of its
  artist ids.
- A broad genre, one whose songs mostly also carry clearly narrower
  candidates (Rock over Pop Punk and Ska Punk), is considered after the
  specific genres of its tier.
- A genre is kept only when at least half its songs are not already in a
  kept genre.
- Each mix leaves out songs tagged with a genre kept before it
  (ListGenreMixTracks exclude_genres), so a song is in one mix at most.

The tiers, the minimum shelf and the minimum mix length are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 14:55:19 -05:00
bvandeusenandClaude Opus 5.5 14debe2ea9 feat: genre mixes lean toward what the listener likes (#6921)
release / web (push) Successful in 1m40s
release / go (push) Successful in 2m5s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 5m2s
release / android (push) Successful in 4m40s
release / Build signed APK (push) Successful in 5m7s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 32s
release / Verify release artifacts (tag releases only) (push) Skipped
Within a genre both halves of the mix were a uniform daily draw: a song
played forty times was no likelier than one played once, and the unheard
40% ignored who the artist was. ListGenreMixTracks now draws each half by a
date-seeded weighted lottery (Efraimidis-Spirakis: smallest -ln(u)/weight
wins), so the mix still changes daily and holds within a day.

- Familiar: 1 + ln(1 + plays) + 1 if liked, times the share of plays that
  weren't skips.
- Unheard: 1 + ln(1 + the artist's plays + 2 x its liked tracks)
  + 2 x the artist's best similarity to the user's own artists, times the
  artist's non-skip share. An unknown artist weighs 1, so new artists still
  come up.

Which genres are offered, the exclusions and the familiar/unheard blend
are unchanged. DB tests check the lean averaged over ten days, and that a
stranger's tracks stay in the pool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:21:04 -05:00