geesawra.industries/hydraulophone
An unofficial YouTube Music app for iPhone, iPad, and Mac.
0
0
# Standard AAC cache and offline download brief
2026-09-24. Formal test implementation remains paused at the owner's request.
## Simulator canary
- `just simulator-smoke-downloads` with
`HYDRAULOPHONE_DOWNLOAD_QUALITY=standard` passed on iPhone 18 Pro / iOS 27.
- The selected AAC rendition exposed a finite playlist with 12 clear media
segments. Their bytes were validated as packed ADTS with leading ID3 tags;
the cache stored 2,679 original AAC frames (1,014,236 bytes), without
transcoding or retaining playlist URLs or TS segment files.
- The download completed, offline playback started from the local AAC package,
a 65% seek advanced, local artwork loaded, and a new download manager
restored the completed catalog entry.
- The canary log is at `/tmp/hydraulophone-standard-aac-canary-6.log`; inspect
only its fixed diagnostic fields. It contains no media URLs by design.
## Deferred coverage
- Fixture coverage should exercise TS packets with one AAC elementary stream,
optional timed ID3 metadata, packed ADTS with and without ID3 tags, PES and
ADTS frame boundaries, malformed sync-safe ID3 lengths, mixed segment
encodings, unsupported codecs, and video-bearing PMTs.
- Failure coverage should verify cancellation during each segment window,
redirect rejection, oversized manifests and segments, aggregate byte caps,
duration mismatch, cache clear during a fill, and a stale fill cleanup racing
a replacement generation.
- Physical iPhone validation remains deferred because the owner prohibited
phone access. Simulator evidence does not validate background audio behavior
or device storage protection.
- When a complete local AAC streaming cache entry exists, explicit Standard
downloads should promote its encoded bytes into the download store without
resolving a new stream. Verify copy cancellation, source eviction during the
copy, size/generation rejection, catalog restore, and that system `movpkg`
entries continue through the normal fresh-download path.
- Verify one bounded stream re-resolution after an HLS playlist or segment
responds with HTTP 403 or 410; other HTTP statuses should not retry.