~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/hydraulophone

An unofficial YouTube Music app for iPhone, iPad, and Mac.

0
0
main
218 lines · 13.9 KB Raw History

Test briefs — active UI and streaming work

Status: catalog, quality, session-gating, queue, accessibility, and Library layout checks have been added to the offline UI and app test targets. They use sanitized fixtures and do not require an account. The just simulator-test XCTest summary reported 88 app tests and 14 UI tests passed; the opt-in live UI smoke test was skipped. The Justfile command completed successfully with exit 0. Last.fm settings and playback integration are implemented; dedicated automated coverage is deferred at the user's request. Validate the remaining Last.fm behavior manually with a credentialed build.

Remaining manual/live/device checks:

  • Exercise fresh Google login, cookie capture, Keychain restoration, sign-out, and a second login on a physical iPhone. Keep credentials and account details out of screenshots and logs.
  • Check live authenticated High playback with the attributed proof configuration, including Opus playback, unbuffered seeks, media rejection, and refreshed stream resolution.
  • Validate lock-screen metadata, background playback, interruptions, route changes, AirPlay, and the WebKit Media Session bridge on a physical iPhone.
  • Keep authenticated live catalog/playback smoke checks opt-in; do not include them in default verification.
  • For Last.fm, build with both HYDRAULOPHONE_LASTFM_API_KEY and HYDRAULOPHONE_LASTFM_API_SECRET supplied transiently. Verify login approval, Finish Login retry after an unapproved response, logout, and restoration from Keychain. Check invalid-session recovery from a Now Playing or scrobble response. Confirm fixture mode and builds missing either credential show no Last.fm Settings section and make no Last.fm requests.
  • Verify Now Playing starts only after audible progress. For tracks longer than 30 seconds, confirm scrobbling waits until actual listened time reaches the earlier of half the duration or four minutes. Seeking across the threshold, pausing, buffering, and route interruptions must not add unplayed time. Confirm retries and quality changes do not duplicate a queue occurrence, while selecting/restarting a previously played row and Repeat One replay can scrobble as a new listen. Unknown-artist tracks must not be submitted.

Authentication and quality UI

  • On fresh simulator and physical-device installs with no Keychain session, check the complete login flow and record whether Google accepts the browser context. Do not treat restored-session playback as login evidence. Keep credentials and account details out of screenshots and logs.
  • Verify the login WebView's user agent stays independent of the InnerTube profile user agents, and that login still captures only allowed YouTube cookies into the device-only Keychain snapshot. After a fresh device login, terminate and relaunch the app to verify Keychain restoration; then check sign-out and a second login without relying on stale WebKit data.
  • With no restored session, and after sign-out, verify the root shows required sign-in with no Home/Search/Library/Settings tabs or playback controls.
  • Verify a restored authenticated session exposes the tabs; an incomplete or failed restore stays on sign-in and surfaces the recovery message.
  • Verify Settings is the only place with quality selection. Now Playing has no quality control. Signed-in Settings shows Standard and High without a separate quality-status section, sign-in reminder, or experimental warning. The High bitrate description is an average, never a minimum.
  • UI coverage uses the current Standard and High labels and checks the average bitrate description without the removed experimental warning.
  • With a restored authenticated session but no runtime proof configuration, verify High remains selectable for a simulator attempt, the saved/effective preference is High when network policy permits it, and playback surfaces the missing proof configuration without silently downgrading. Signed-out users still cannot select High.

Home and playback presentation

  • Verify Home keeps its navigation title but has no welcome heading/tagline or filter-chip bar.
  • On Home entry, fetch every continuation page automatically rather than waiting for scroll. Merge shelves as pages arrive; scrolling after completion must issue no continuation requests. A failed page preserves loaded content and shows Retry; retry continues through all remaining pages. Repeated or empty continuations stop without looping.
  • Decode a sanitized Aura-shaped responsive song with linked artists, separator and play-count runs, album link, and multiple thumbnail sizes. Verify artist/album fields exclude play counts and the largest thumbnail is retained for both player surfaces.
  • Verify Lock Screen, CarPlay, and downloaded Now Playing artwork request the 2,048-pixel known-host variant, fall back to the original if that variant is unavailable, and leave unknown hosts unchanged.
  • Verify collection track numbers start at 1 and continue across loaded pages; search rows remain unnumbered.
  • For an album whose subtitle is Album • Protest The Hero, provide track renderers with Unknown artist and verify the playback queue, mini player, Now Playing screen, and system media metadata use Protest The Hero on the first page, refresh, and continuation. A track with a real guest artist must retain it, and playlists must never inherit an album artist.
  • On compact and large iPhones, rotate through supported Dynamic Type sizes while Now Playing is open. The Now Playing page must not scroll; seek, previous/play/next, shuffle/output/repeat, and Up Next remain visible without scrolling. Artwork may shrink on compact heights, and track details remain readable. Up Next remains a separately scrollable sheet.

Library categories

  • Decode sanitized first-page and continuation envelopes for each supported InnerTube Library category: playlists, saved songs, albums, and artists.
  • Verify request construction uses the pinned authenticated WEB_REMIX browse IDs and passes continuation values unchanged.
  • Verify switching categories cancels or invalidates stale pages, keeps category items distinct, and sign-out clears every category.
  • Verify playlists retain their current grid/list behavior; songs can be played, albums open their existing track view, and artist rows display their saved artwork and title.

High streaming

  • Verify Standard still resolves authenticated AAC-LC HLS (currently tag 234, about 128 kb/s) and preserves the known unbuffered seek and pause/resume path.
  • Verify Low Data Mode forces Standard and an expensive route needs the saved High opt-in; changing quality remains a Settings-only action. Do not expose an Auto choice until a real adaptive policy exists.
  • Verify the production High player sequence includes the visitor proof on both authenticated WEB_REMIX requests, fetches the player script once, and sends its signatureTimestamp on the second request. Record that this is a Hydraulophone adaptation: pinned AuraMusic omits the timestamp on its audio path. Verify High selects the highest valid Opus candidate, including a roughly 135 kb/s Opus response, without comparing its numeric bitrate to AAC.
  • Simulate one media-range 403 and verify one proof invalidation plus a new player/range resolution; verify the rejected media URL is never retried. Repeated failures should enter the app-level playback retry loop with capped backoff and a new InnerTube stream resolution each time.
  • Record first verified audio progress on a cold and a second High song on a physical iPhone, broken down by proof, initial player response, script fetch, aligned response, decipher, media probe, and WebKit readiness. Any future request/cache optimization must improve both timings without more stalls or failed plays, and must preserve the timestamp-aligned 403 recovery path.
  • Parse a signatureCipher whose embedded media URL has its own percent-escaped query values. Verify the cipher envelope is decoded once, then deciphering changes only the signature and n values while preserving unrelated raw query bytes and their order. Reject a signature parameter that collides with n so one challenge result cannot overwrite the other.
  • Verify a direct WEB format URL follows the pinned AuraMusic direct-URL path unchanged, and ciphered formats use the local player-script resolver. Keep direct/ciphered shape, n presence, and HTTP status as redacted canary facts; never log the URL or any query value.
  • Verify each live proof generator mints one visitor-bound token, reuses it only for that visitor until the generator's ten-minute-before-TTL expiry, and discards it when the generator is replaced. Verify video-token caching remains visitor/video keyed across generator replacement.
  • Verify a GenerateIT TTL at or below the ten-minute safety margin fails closed before returning either token, and that expiry while minting either token cannot return a stale pair.
  • High simulator acceptance must prove Opus playback, a seekable duration, and actual progress after 65% and 90% seeks whose targets were unbuffered at the exact media-element assignment. Check the active song, selected quality, codec, and bitrate after each stream transition. Buffered-only seeks are inconclusive evidence, not a playback failure. Keep the playback request generation fixed from the requested seek through progress, and keep the same request generation while checking sustained playback so a retry or reload cannot satisfy the original acceptance stage.
  • High foreground acceptance still needs an authenticated simulator session and transient public proof configuration. Physical-device/background audio acceptance remains separate.

The production High foreground canary is available as just simulator-smoke-high. It requires the authenticated simulator Keychain session. The Justfile loads the public JNN client key from the attributed local Config/PublicJNNKey.txt and passes it to the simulator process. This is not a user's account key. The unaligned canary's first and refreshed media probes returned HTTP 403. A separate aligned proof-backed diagnostic passed three range reads and a standalone WebKit play/seek probe; the production resolver now uses the aligned request sequence. This canary remains opt-in.

Queue, recovery, and native media

  • Give duplicate occurrences of the same song distinct queue identities. Check shuffle retains current song and playback history, and switching shuffle off restores collection order without restarting audio.
  • Check manual next/previous, queue row selection, play-next, removal, and pagination append. Verify Play Next and Add to Queue context actions on Home, Search, Library songs, and collection rows. Repeat One applies only at natural track completion; manual Next advances. Repeat All wraps at the end. Rapid selections cancel prior stream requests and cannot play the stale track.
  • Select songs from Search, Home, albums, playlists, and saved songs. Each selection should begin playback without a second tap. While loading, the main player control represents the active play intent and can pause it.
  • Simulate media rejection, stream resolution failure, stalled playback, and an unrequested player pause. Verify automatic retry uses fresh stream resolution with delays capped at 30 seconds and resumes near the last position. Pause, stop, sign-out, quality changes, and selecting another song cancel obsolete retries. No playback view offers a Try Again button. Update existing smoke checks that expect .failed to reflect the reconnecting state and give them an explicit bounded diagnostic timeout.
  • Verify album songs with missing track artwork inherit the album cover on the first page, refresh, and continuations. Existing track artwork and playlist row artwork take priority where supplied.
  • Automated UI coverage checks album track metadata omission, playlist artist/album context, queue occurrence selection/removal, context actions, Dynamic Type hit targets, and the required sign-in gate. Shuffle/repeat updates and compact iPhone layouts still need manual coverage.
  • Offline UI coverage checks Library loading and empty content placement in the available tab area. Confirm the account button is absent from Home, Search, and Library; Settings stays accessible.
  • For Standard and High on a physical iPhone, check lock screen and Control Center title, artist, album, artwork, duration, progress, play/pause, seek, next/previous, headphone toggle, and queue command availability. A rapid track A to B change must never publish A's late artwork over B. Stop and sign-out clear native and WebKit metadata.
  • On iOS 27, exercise the new local NowPlaying.MediaSession with High and Standard separately. Record system-primary eligibility, request outcome, and whether title/artwork actually render; on 2026-09-23 High reported application-primary success but system-primary internalFailure and a blank card. Check that a lock-screen pause reaches app state and does not trigger a stall retry. On iOS 17–26, verify the legacy metadata/command path without any new-framework calls.
  • Validate physical-device background playback, interruptions, route changes, AirPlay selection, and High's WKWebView Media Session bridge separately from simulator foreground playback. Record any OS-owned playback card limitations.
  • Before replacing WebKit, pin and build alta/swift-opus on simulator and device, and verify decoded stereo PCM from real Opus packets. A separate WebM reader must extract packet boundaries, timestamps, codec delay, and seek information from a sanitized sample. Check PCM duration and audible progress, then validate bounded range buffering, 65%/90% unbuffered seeks, background audio, native card metadata, remote commands, and adjacent-track scheduling on a device. Keep the working WebKit High path until this vertical slice passes. If evaluating Apple's decoder instead, probe its availability on each supported OS family first.