Pre-Flight — WP-088 — 2026-12-01

Filled-in copy of docs/reference/pre-flight for WP-088 (Google Play internal testing), run from the pre-flight session prompt. Verdict at the bottom.

Claim check, 2026-12-01: no pre-flight-WP-088-* on main; no open PR in barefootbetters/terraglyph-engine mentions WP-088; no remote branch names 088; the WORK_INDEX row said “needs pre-flight”. Claimed in this branch’s first commit (371724e). This is the first pre-flight for WP-088.

State on which this gate was run: docs main @ a8c22bc (the merge of this pre-flight’s session prompt, after WP-088’s draft c77b9fb); fork barefootbetters/scummvm scooby-engine @ 837ca576da4930621c85a47e438ffc54ad22ef9b (from gh api and from the build machine’s clone after git fetch). Every toolchain, key and dry-run result below comes from a command run in this session.


Pre-flight intent

Validating readiness for WP-088. Not signing with the upload key, not building for real, not touching Play Console, the fork or the TVs. Verdict only.

What the verdict covers. EC-011 Step 1 (build 1 with the upload key) can run now. Steps 2–4 need the organization developer account (WP-084 D3), which is an external resource, not a WP dependency. The execution prompt makes “account verified” a pre-execution check for Step 2 and stops there until it is.

Dependency check

Read from WORK_INDEX and the packets on main @ a8c22bc.

Prereq Status in WORK_INDEX Locked on Notes
WP-079 ✅ GO 2026-11-22 The fork’s TV build path.
WP-085 Milestone 1 🚧 for the WP; Milestone 1 ✅ 2026-11-27 §Result, Per milestone: “1, app shell ✅”, fork PR #13 merged (0d5a69c769). WP-088 depends only on Milestone 1; WP-085’s open exit criterion 3 (import without a computer) is acceptance B’s risk, not a dependency.
WP-104’s icon, banner and theme 🚧 for the WP; the art is merged 2026-11-29 Fork PR #36 merged (27aa9f9a71). WP-088 needs the art in the build, not WP-104 closed: the res/ (22 files) and assets/ (5 files) folders tvAppResDir and tvAppAssetsDir point to exist, and this session’s dry run found the identity assets in the bundle. A later art change reaches build 2 the same way.
WP-084 D4: both keys ✅ decided 2026-11-30 2026-11-30 §Play signing keys. The upload keystore is present (§Keys).
WP-084 D3: organization account ✅ decided 2026-11-30; account not yet registered — External resource. Jeff, 2026-12-01: “D&B record pending”. Gates Step 2, not this verdict.

Rule check: every WP prerequisite is met for the parts WP-088 uses. Pass.

Repo + disc state

Build machine (WSL Ubuntu, default user root)

Check Result
SDK platform android-37.0
NDK 23.2.8568313 (Pkg.Revision = 23.2.8568313)
JDK OpenJDK 17.0.21.1; jarsigner and keytool at /usr/bin
Oboe in the NDK sysroot liboboe.a for arm-linux-androideabi (6,280,326 B) and aarch64-linux-android (8,521,748 B); include/oboe present
libpng /opt/build/png-v7a and png-arm64: libpng16.a, PNG_LIBPNG_VER_STRING "1.6.59"; objects elf32-little and elf64-little
FreeType /opt/build/ft-v7a and ft-arm64: libfreetype.a, 2.13.3; objects elf32-little and elf64-little
/root/.gradle/gradle.properties keys (cut -d= -f1) tvAppId, tvAppLabel, tvAppResDir, tvAppAssetsDir. No tvAppVersionCode, no tvAppVersionName.
tvAppId against private/tv-app-identity/README.md (private main @ 5d456d7) Matches. Compared in this session only; the value is not recorded here.
bundletool 1.18.3 See below: present, hash right, but not visible to WSL at the default path. Copied; WSL reads the copy.

bundletool: a gap found and worked around. Get-FileHash on %LOCALAPPDATA%\bundletool\1.18.3\bundletool-all-1.18.3.jar gives A099CFA1543F55593BC2ED16A70A7C67FE54B1747BB7301F37FDFD6D91028E29 (right). But WSL can’t open /mnt/c/Users/jjensen/AppData/Local/bundletool/…: the folder isn’t on the disk. The 2026-11-26 download ran inside the Claude desktop app, whose packaged-app file virtualization put it under AppData\Local\Packages\Claude_…\LocalCache\Local\bundletool\ (found there from WSL, same SHA-256). Only processes inside the app see it at %LOCALAPPDATA%; WSL and Jeff’s own terminals don’t. The jar was copied to %USERPROFILE%\tools\bundletool\1.18.3\ (outside AppData), where Windows and WSL both read SHA-256 a099cfa1…d91028e29 and java -jar … version prints 1.18.3. The dry run passes it with -BundletoolPath. The runbook’s setup step 4 and its local-install command now use that folder.

Dry run

pwsh tools/Build-AndroidRelease.ps1 -DryRun -BundletoolPath "$env:USERPROFILE\tools\bundletool\1.18.3\bundletool-all-1.18.3.jar", 2026-12-01 12:59–13:01 PST, exit 0 in 1 min 48 s. Output, with the package id removed:

DRY RUN: throwaway key, no ledger entry. Never upload this bundle.
==> Resolving origin/scooby-engine in /opt/build/scummvm
commit 837ca576da4930621c85a47e438ffc54ad22ef9b
==> Configuring (engines: sky,terraglyph)
armeabi-v7a: engines sky,terraglyph, libpng, FreeType, no cloud
arm64-v8a: engines sky,terraglyph, libpng, FreeType, no cloud
==> Signing
upload certificate SHA-256: B5:B3:CA:88:…:5E:5A:68        (the throwaway key)
==> Verifying the bundle
package <package-id>, versionCode 26041000, versionName 2026.4.1
both ABIs present; native libraries 16 KB aligned
worktree removed
Bytes  : 100746554
SHA256 : cae2531f5b9cedc619230e894f261d87de0c19b70e518c2fab73f812a0933ffd

The bundle’s package is the private id (the script read it back; it is the same value the README holds). The dry-run bundle stays in %TEMP% and is never uploaded.

Keys (no password, no signing)

Account

Jeff, 2026-12-01: “D&B record pending”. Not registered; expected to reach Google about 2026-12-21 (the dashboard’s play-testing note).

Fork tags

git -C C:\dev\scummvm config --get user.signingkey: unset (exit 1); also unset in /opt/build/scummvm; no gpg.format; gpg not on PATH. No android-* tags exist locally or on origin. Engineering call below: annotated tags.

The TCL

adb devices (Windows, platform-tools from winget) lists nothing, and adb mdns services finds nothing: the TCL wasn’t reachable this session, so its installed version wasn’t read from the device. The highest sideloaded code in the records is 26041070 (2026.4.1-wp132.6, WP-132 §Result, 2026-12-01).

Answers from Jeff (2026-12-01, verbatim)

# Question Answer
Q1 How testers get the private identity input the build injects (GPL) “Written offer, zip on request (Recommended)”
Q2 adb push with developer mode on the family Bravia, if no picker route works “Yes, dev mode is OK”
Q3 The family tester, and their Google account on the Bravia “Yes, named and on the Bravia”. Recorded here as: named, in the 1Password register.
— The organization account’s state “D&B record pending”
— Which file is the upload keystore’s working copy Named by Jeff from the two found; recorded here only as present.

What follows from them:

Engineering calls

  1. Play version codes start at 26041100: kept. The highest sideloaded code on record is 26041070, below it. The TCL’s current code wasn’t read (no adb); the execution reads it if adb is up. Separately, the sideloaded test builds with the advanced mode are debug builds, and the fork’s debug build type adds .debug to the id, so they likely never share an id with a Play build at all (a reading of build.gradle, not checked on the TV).
  2. The Play build uses --disable-cloud: kept. The 2026-11-30 decision stands, and the dry run confirms “no cloud” for both ABIs.
  3. Fork tags are annotated, not signed: git tag -a android-<versionCode> -m "Play internal build <versionCode> (<versionName>)" <commit>. No signing key is set up anywhere on the build PC. An annotated tag records who tagged what and when, and GitHub shows it; that’s what testers need to find the exact source. A signature adds a key to create, publish and keep, and no one verifies it for an internal test. WP-084’s public source release can revisit it. The runbook’s command is corrected. The tag only adds a ref, so making it in the shared C:\dev\scummvm switches nothing; it’s fetched first so the commit is there.
  4. EC-011 Step 1’s optional TCL install check runs, under a condition. Why run it: the release build type runs R8 (minifyEnabled, shrinkResources), and the records I read (WP-085 §Result, EC-014) checked a release APK only statically. None I found launched one. A release-only crash would otherwise show up first on the family TV. The condition: adb reaches the TCL, and pm list packages shows no package with the exact release id (without .debug). If one is there, it’s a sideloaded build with another signature, and installing over it would mean uninstalling it and losing its data: skip, and record why. If it runs: install the universal APK, launch, see the grid, uninstall. If adb isn’t up, skip and record that.
  5. bundletool from %USERPROFILE%\tools\bundletool\1.18.3\, passed with -BundletoolPath (above). The script’s default is left as is; the runbook documents the flag.
  6. The real build runs in Jeff’s own terminal. The script reads the upload password from BB_UPLOAD_STORE_PASS or a no-echo prompt; a session’s shell can’t answer the prompt, and the password shouldn’t pass through a session. The session gives Jeff the command and reads the result from his terminal.

Scope lock

Execution allowlist (this repo):

docs/work-packets/WP-088-play-internal-testing.md           (§Result)
docs/execution-checklists/EC-011-play-internal-testing.md   (the run sheet, with evidence)
docs/reference/play-internal-testing.md                     (gaps found in the run)
tools/Build-AndroidRelease.ps1                              (fixes found in the run)
docs/work-packets/WORK_INDEX.md                             (WP-088's row)
dashboard.json                                              (the play-testing milestone)

The fork: android-<versionCode> annotated tags only, pushed on Jeff’s go. No commits.

Outside git: the release folder and ledger (C:\pcloud\scooby-engine\releases\android\); the tester register as the 1Password “Play testers” note; Jeff’s Play Console actions.

Forbidden: the app’s name or package id in any public file, commit message, PR text or pasted log; keystores or passwords anywhere in git, a log or a command line; game data in any repo; fork code changes; changing WP-084 D3/D4/D5 or WP-088 D0.

This pre-flight’s own PR touches this file, the execution prompt, EC-011 (§Pre-flight), WP-088 (answers and calls), the runbook (bundletool, tag, GPL offer), WORK_INDEX’s WP-088 row and dashboard.json’s play-testing note.

Risk review

Risk Likelihood Impact Mitigation
The first upload fixes the package id and app signing key for good. low high tvAppId matches the private record (above), and the script refuses a bundle whose package isn’t -ExpectedApplicationId. Execution: the App signing page must show WP-084’s app-signing SHA-256 (screenshot) before the release rolls out to any tester.
bundletool invisible outside the app (found here). A run from Jeff’s terminal or WSL fails at “bundletool does not run”. high without the fix low Copied to %USERPROFILE%\tools\…; every command passes -BundletoolPath; runbook corrected.
A release-only (R8) defect reaches the family TV first. low med Engineering call 4: the conditional TCL launch check in Step 1.
No import route on the Bravia (acceptance B). med high for B Routes in the runbook’s order; adb push with developer mode is allowed (Q2). A, B and C are recorded separately.
The package id leaks into a public file through script output (the summary prints it, and the artifact name carries it), the ledger, or a screenshot. med med Script output pasted into public docs has the package line and file names replaced by <package-id>; the release folder is private; Play Console screenshots stay local and are described, not committed, if they show the id.
The upload password reaches a log or a command line. low high Jeff runs the real build in his own terminal with BB_UPLOAD_STORE_PASS from op or the no-echo prompt; the session never handles it.
Version-code reuse. low med The ledger is the record; the script refuses a code at or below the highest; a failed build writes no row.
Stale READY. The account arrives about three weeks after this verdict; main and the fork will move. high low Step 1 builds whatever origin/scooby-engine is then, after a fresh dry run. Before Step 2 the execution re-checks: if WP-088, EC-011, the runbook, the script or WP-084’s keys/D3/D4 changed on main since a8c22bc, stop and re-run the pre-flight; other changes don’t stale it.
Shared checkouts. med med Docs work in a worktree under C:\claude-worktrees\, explicit paths staged; in C:\dev\scummvm only fetch and tag.
A fabricated device or Play claim (DECISIONS 2026-11-21). low high EC-011’s evidence rule; Jeff’s and the tester’s observations recorded as theirs. This pre-flight claims nothing it didn’t run.

Verdict

Rationale. WP-079 is ✅ and WP-085’s Milestone 1 is verified; WP-104’s art is merged and in the build. The build machine has everything the script checks for: SDK 37, NDK 23.2.8568313, JDK 17, Oboe, libpng and FreeType for both ARM ABIs, the four identity properties and no version properties. tvAppId matches the private record. The dry run passed on 837ca576da. The upload keystore is present and the expected certificate is the one WP-084 recorded. The one gap the checks found, bundletool invisible outside the app, is worked around and written into the runbook. Jeff answered Q1–Q3. The organization account is pending at D&B; that holds Step 2, not Step 1, and the execution prompt stops there until the account is verified.

A READY authorizes the execution session: EC-011 Step 1 now, Steps 2–4 once the account is verified. It doesn’t authorize any change beyond §Scope lock.

Signed against: docs main a8c22bc; fork scooby-engine 837ca576da4930621c85a47e438ffc54ad22ef9b. Prepared by: Claude (WP-088 pre-flight session) Date: 2026-12-01


Update, 2026-12-04: the bundletool default

The record above is left as it was run. This adds what changed before execution opened.

The verdict stands: READY.


After execution — lessons learned

(to be filled in at WP-088 close)