Pre-Flight — WP-132 — 2026-11-30

Filled-in copy of docs/reference/pre-flight for WP-132. Verdict at the bottom.

Pre-flighted and executed in one session, started by the WP-132 drafting session after Jeff approved D1–D4 (2026-11-30). Execution runs inline, so there is no separate session prompt. EC-019 records each step’s outcome.


Dependency check

Prereq Status in WORK_INDEX Notes
WP-104 🚧 The identity injection (tvAppAssetsDir, fork commit 03f0d4edb9) is merged and on the TV. Its open criteria (Help and a controller, licenses, splash) don’t touch this packet.
WP-118 ✅ The grid is the TV default (gui_launcher_chooser=grid in tvapp.ini).

Rule check: WP-104 isn’t ✅, but the part WP-132 builds on is merged and installed; noted rather than blocking.

Repo + disc state

What the code has today (fork bcefc97cf4)

Design (D1 (a))

  1. generateZipSet() adds, after the iconspath packs, every packsMask file SearchMan lists, then the default file as before.
  2. Skipped: a file named as the default (any case), a name the set already has (an iconspath pack of the same name wins), and a name seen earlier in SearchMan’s order (the copy SearchMan would open counts).
  3. The SearchMan packs are sorted as the iconspath ones are, through one shared helper, and logged with the same debug(2) line.
  4. The loading order is therefore: iconspath packs (a downloaded pack), then SearchMan packs (the TV app’s gui-icons-tvapp.dat), then the default gui-icons.dat.
  5. It applies to the shader sets too (shaders*.dat); no port ships a shader pack in its data today, so nothing changes there.

Scope lock

This repo: WP-132, EC-019, this file, WORK_INDEX.md (WP-132’s row and the header line).

Fork: common/zip-set.{h,cpp}, staged by name. One commit, COMMON: prefix, brand-free.

Private repo: private/tv-app-identity/thumbnails/ (the four covers and the manifest), private/tv-app-identity/tools/New-ThumbnailPack.ps1, private/tv-app-identity/assets/gui-icons-tvapp.dat, private/tv-app-identity/README.md.

TV: adb install -r only; never uninstall, never clear data. A change to scummvm.ini for the debug log is backed up and restored byte-identical.

Risk review

Risk Likelihood Impact Mitigation
The default file loaded twice: SearchMan lists gui-icons.dat (Android: asset root and files/assets; Windows: Win32Res). high med Skipped by name, any case; the default is added once, as before. Checked in the debug log on Windows and the TV.
A downloaded pack in iconspath (the Icons download in Global Options). med low It loads first and keeps its precedence; the TV app’s pack only fills icons it lacks. Checked on Windows with a stand-in pack; on the TV only if the app offers the download.
The MD5SUMS extraction missing an update that changes only the covers. — high Avoided by design: the pack is read in place from the APK, never extracted. Checked with an update build that changes only the pack (criterion 5).
Desktop behaviour changes: a gui-icons*.dat in a SearchMan path (the current folder, DATA_PATH, an extrapath set at start) now loads. low low Intended for a pack shipped with the data. A plain build ships none; the Windows log shows the same packs as before.
A slow first listing of the asset archive at start. low low One AAssetDir walk of the asset root, cached; the theme lookup already lists it.
The German Phantom cover (D4) shipped by default. high low MobyGames’ covers page sits behind a bot check this session can’t pass; the German cover ships, noted, as criterion 2 allows. The English front is one file swap and a re-run of the script.

Verdict

Prepared by: Claude (WP-132 execution session) Date: 2026-11-30