Skip to content

Latest commit

 

History

History
169 lines (147 loc) · 10 KB

roadmap.md

File metadata and controls

169 lines (147 loc) · 10 KB

OrgZ Roadmap

Quality, beauty, and simplicity - in that order when they conflict. Tests reflect the finished product: nothing ships behind a capability flag without the conformance suite proving it.

Status 0.15.1: AirPlay 2 sending works on real hardware; the release pipeline packs an MSI, two .pkgs (Apple Silicon and Intel) and an AppImage from a tag, all signed and notarized. Zero build warnings, gated per commit.

Before v1

  • Intel macOS build. Matrix, signing, libvlc, update channel and encoder hashes are all wired; ffmpeg/flac/lame were cross-built for x86_64 on the Apple Silicon Mac. Remaining: upload the three *-osx-x64 assets to the encoders-1 release (until then the build fetch fails, because a vendored tool that will not download is a hard error under CI), then verify on an actual Intel Mac - nothing on hand can run one.

  • Burn through the installed service, on real hardware. Expect zero UAC. Hyper-V passes through no USB optical drive, so this needs the Pioneer on the desk.

  • iPod sync through the installed service, on real hardware.

  • Mid-job relaunch: start a burn, close the app, reopen, confirm the LCD reattaches.

Metal-gated

  • AirPlay tile reliability across many runs. The keep-alive re-assert fixed the raced single push; what is unproven is that it paints EVERY time, on a cold receiver.
  • AirPlay to two receivers at once: DACP now forwards from one session rather than every session, so a button press should move playback once, not N times.
  • PTP as grandmaster. The responder is written and the session offers it; no receiver has been observed joining our timing group (gid/igl unchanged in the TXT probe).
  • Rockbox erase on a real box.
  • Nano 5G ALAC/AAC audio-format codes (MP3 proven).
  • Nano 5G CDB user-playlist form. Playlists stay SQLite-only until iTunes accepts a user-playlist mhyp in the CDB.
  • Audiobooks land in the on-device Audiobooks menu and the firmware honours remember-position. Writes are proven; the menus are not.
  • Shuffle 3G/4G bdhs. Implemented, no 3G/4G in the fleet.
  • iPod identity read after the SCSI refactor (0.10.10 folded five pass-through scaffolds into one). Compile-verified only; the suite can't reach those paths.
  • Device boots an OrgZ-mutated iTunes library. libgpod accepts it; the firmware hasn't been asked.
  • On-device art display, podcast show→episode nesting, bookmark resume.

Verification gaps

Identity read:

  • NOR SCfg format is code-only. Needs a Nano 3G or Classic NOR dump.
  • HDD non-5.5G gens on macOS/Linux. Format assumed, unproven; one dump each.
  • Flash gens (Nano 1G/2G, Shuffle) firmware serial on macOS/Linux.
  • Linux read path: implemented, run on no generation.
  • Shuffle serial via WMI.

Library read/write:

  • User-playlist parse against real or libgpod-generated bytes. The on-hand 5.5G DB has only the master playlist.
  • iTunesSD against a real Shuffle dump.
  • hash58 real-DB mutation + re-sign. Needs a Classic or Nano 3G/4G database.
  • hash72 CDB cross-parse by libgpod (0.8.x CDB support unconfirmed).
  • Removing a track that sits in a type-5 built-in playlist. MHIP cleanup unverified.
  • Per-generation thumbnail formats beyond 5.5G.
  • mhit mhii_link is not set. Both libgpod and the dbid path work without it.
  • Real embedded-cover pipeline against the oracle (tests use a synthetic thumbnail).
  • Audiobook excluded from Music/Library: unverified against a real iTunes audiobook.
  • On-device end-to-end read on Mac/Linux (mount discovery + file access on real hardware).

Follow-ups from the 0.10.10 audit

  • Decide DecodeFamilyId: wire it into identification or delete it. Grep says dead, but it's an RE'd Apple FamilyID table and FamilyID is already read into the identity dict.
  • Decide Messages / MessageLogDialog: route log events into it, or delete both plus the error badge. Nothing writes to it today.
  • Decide DiscIdService.ComputeDiscId / MsfToLba: test-only. Production DiscID comes from FoxRedbook.
  • Device sync loops: three near-identical bodies. Touches on-device layout, wants its own commit.
  • Import pipeline: four sites with different dedup and threading.
  • LibraryDestinationFor vs the device reverse-sync path. Unifying shifts on-disk naming in the blank-title case.
  • Dialog sizing: SettingsDialog, MediaInfoDialog, MessageLogDialog hard-code Width/Height. They're resizable with Min floors, so check for clipping on the Mac and the VM first.
  • Audio-output flyout: duplicated XAML + handlers across MainWindow and MiniPlayer.
  • SettingsDialog combos: paired switch statements where the items already carry Tags.
  • CachedJsonHttpClient: PodcastIndexClient and ArchiveOrgClient duplicate the disk-cache plumbing.
  • MainWindowViewModel split. Artwork sourcing is out (8,104 lines, down from 9,229). Remaining clusters: CD rip/burn, device sync + sync plans, share mount/import, library scan/watcher. Each is woven into playback epoch and busy-LCD ownership.
  • Compiled bindings: the csproj defaults to on, most views opt out with x:CompileBindings="False". That opt-out is what hid the podcast empty-state bug. Migrate to x:DataType view by view, podcasts first.

Post-v1

  • Multi-disc burning: split an overflowing playlist across discs, per-disc titles, swap prompt.
  • Slim ffmpeg build. The vendored win-x64 ffmpeg is 108.9 MB, ~98% of the payload. A --disable-everything build lands ~10-20 MB.
  • Device playlists master view. Needs a playlist row type; the shared grid it waited on shipped in 0.9.31.
  • Group-header count wording ("2 Items" → "50 stations"). Needs a header template.
  • Audiobook chapter atoms (m4b) for in-app display. On-device chapters work natively.
  • Libro.fm token persistence off-Windows. Per-session sign-in today. The keychain it waited on exists (SecretStore: macOS Keychain, Linux secret-tool; AirPlay passwords use it); the token is not stored through it yet.
  • Honour the row tick in the device sync gates. Playback skipping is done.
  • AreRowGroupsInitiallyCollapsed (Avalonia PR #242): adopt when shipped, delete the collapse-seeding machinery.
  • Startup: avalonia init ~3.2 s, MainWindow ~2.9 s, ~0.7 s before Main. Code signing is the lever - vpk pack reports 899 unsigned files and Defender scans those hardest.
  • CD pre-flight paths (no media / not blank / not writable) against real drives.
  • Drag ghost: no per-row thumbnails, and it's window-bound so dragging to Explorer loses it.

Done

  • AirPlay 2 sending: pairing (SRP-6a transient, including password-protected receivers), encrypted RTSP, PCM streaming with NTP timing, now-playing tile with artwork, the receiver's own transport buttons over DACP and the event channel, and connect-time volume adoption. Verified on a HomePod 2026-08-13; the fake receiver in OrgZ.Tests/AirPlay pins the wire so it can be developed without one.
  • CD ripping and burning, audio + data, CD-TEXT read off a real disc. All six burn tests passed on real media 2026-07-25.
  • iPod read/write across the tiers. hash58 (Nano 3G) and Shuffle iTunesSD (Shuffle 2G) validated on metal. Nano 5G hash72 + SQLite validated on hardware.
  • Conformance proven against libgpod as an external oracle: slices A-F (identity, library read, library write, real-library mutation, podcasts/audiobooks, artwork).
  • Podcasts, audiobooks, radio.
  • Library sharing over mDNS: TLS, cert pinning, playlists, favorites. Confirmed across two physical machines 2026-07-31. PIN pairing rejected; trusted LAN + cert pin is the model. Survives a service restart.
  • Background service: protocol v2, op registry, CD ops and iPod sync run through it, jobs survive the GUI, MSI registers it on every Windows install.
  • Encoders ship in the installer. All eleven assets on encoders-1, cold fetch passed on win-x64, linux-x64, osx-arm64.
  • Shared media grid v1 (0.9.31), multi-select, empty states, go-to-current-song.
  • Startup 25 s → 8.4 s (0.9.30).
  • CI gates every push; pre-commit hook gates every commit against the staged tree.

Notes

Encoder builds, per platform. Kept because the quirks will bite again.

  • win-x64: ffmpeg, flac (+ libFLAC, libFLAC++), lame.
  • linux-x64: ffmpeg from BtbN's LGPL build via WSL2 (Windows' bsdtar can't read the .tar.xz). flac and lame built from source and statically linked by scripts/build-encoders-linux.sh. An AppImage has no dependency mechanism, so static matters.
  • osx-arm64 / osx-x64: ffmpeg 7.1 (LGPL-clean, AudioToolbox alac/aac) plus flac and lame, built on a Mac. macOS can't statically link libSystem, so only our own libs are static; verified with otool -L. Both scripts pin MACOSX_DEPLOYMENT_TARGET=11.0 and assert the resulting minos - without it clang stamps the build machine's OS and the binary won't launch on anything older. Both take an arch argument and cross-compile, so either slice builds from either kind of Mac; the functional test is skipped when the result can't run on the build machine.
  • Comparing a rip round-trip: compare decoded PCM, not files. ffmpeg writes a LIST chunk into WAV that flac drops, so cmp reports a 34-byte difference that isn't data loss.

Auto-update takes one UAC prompt per update: Program Files isn't user-writable, so Update.exe re-launches elevated. That's the trade for silent disc and iPod access.

Two Avalonia DataGrid bugs the shared grid works around, both measured in MediaGridColumnRebuildTests / MediaGridGroupCollapseTests:

  • Columns.Clear() under grouping throws. ClearItems() empties ItemsInternal but leaves RowGroupSpacerColumn.IsRepresented set, so the next InsertItem() offsets by one into an empty list. Remove columns one at a time instead.
  • CollapseRowGroup no-ops until the grid has built its row-group info. A synchronous UpdateLayout() builds it so the collapse lands in the same dispatcher turn.