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-*onmain; no open PR inbarefootbetters/terraglyph-enginementions WP-088; no remote branch names088; 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 draftc77b9fb); forkbarefootbetters/scummvmscooby-engine@837ca576da4930621c85a47e438ffc54ad22ef9b(fromgh apiand from the build machine’s clone aftergit fetch). Every toolchain, key and dry-run result below comes from a command run in this session.
Header
- WP:
WP-088 - Title: Google Play internal testing pipeline: build, sign, upload, install on a family TV
- Pre-flight date:
2026-12-01 - Targets generation(s): N-A. No engine code; TerraGlyph is compiled in and tested with Gen 1 (Showdown) data.
- Targets disc(s): N-A. No disc is read; testers supply their own legally obtained data.
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
- Docs repo. Worktree
C:\claude-worktrees\scooby-engine\wp-088-preflighton branchclaude/wp-088-preflight, cut fromorigin/main@a8c22bc, clean at start.mainincludesc77b9fb(git merge-base --is-ancestor: 0). - Fork head unchanged.
/opt/build/scummvmfetched:origin/scooby-engine=837ca576da49…, the commit WP-088 §Background was written against, so its fork facts need no re-check. The fork’sdists/android/build.gradleat that commit: release build typeminifyEnabled true,shrinkResources = true, nosigningConfig; debug addsapplicationIdSuffix ".debug"(lines 135–174). - No fork worktree. WP-088 changes no fork code.
- No disc, no
.gpr, no prior tool output is used.
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)
- Upload keystore present on the build PC at the path Jeff named (
Test-Path:True), byte-identical to its OneDrive backup (SHA-256 prefixAFDDBCF2on both), and readable from WSL. The app signing keystore is beside it for Step 2’s PEPK. - Certificate strings equal. WP-084 §Upload key SHA-256 and the script’s
-ExpectedUploadCertSha256default are both61:50:00:95:B9:CD:7C:07:EC:3A:1B:D3:0A:8A:69:05:C0:AC:FF:4D:D6:C4:AE:4F:5B:E8:0A:A3:63:AB:16:09(compared as strings: equal). - The keystore’s own certificate is not read here: that needs its password. The script checks it in EC-011 Step 1.
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:
- Q1. Each build’s release notes give the fork tag’s URL and say the build inputs not in that tree (the app’s art, theme, defaults and About text, and the build properties) are available from Jeff on request. On a request, Jeff sends a zip of
private/tv-app-identity/as of that build. Nothing private is published. The runbook’s GPL checklist and release-notes example say so. - Q2. Acceptance B tries the routes in the runbook’s order; the last,
adb pushafter turning on developer mode on the Bravia, is allowed. B ends as a gap only if all of them fail. - Q3. The 1Password “Play testers” note holds the tester’s name and email. No repo does.
Engineering calls
- 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 (noadb); the execution reads it ifadbis up. Separately, the sideloaded test builds with the advanced mode are debug builds, and the fork’s debug build type adds.debugto the id, so they likely never share an id with a Play build at all (a reading ofbuild.gradle, not checked on the TV). - The Play build uses
--disable-cloud: kept. The 2026-11-30 decision stands, and the dry run confirms “no cloud” for both ABIs. - 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 sharedC:\dev\scummvmswitches nothing; it’s fetched first so the commit is there. - 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:adbreaches the TCL, andpm list packagesshows 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. Ifadbisn’t up, skip and record that. - 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. - The real build runs in Jeff’s own terminal. The script reads the upload password from
BB_UPLOAD_STORE_PASSor 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
- READY TO EXECUTE
- NOT READY
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 script’s default moved. #357
(
09edd36) set-BundletoolPath’s default to%USERPROFILE%\tools\bundletool\1.18.3\bundletool-all-1.18.3.jar, the copy this pre-flight made, and updated the runbook, EC-011, WP-088 and the execution prompt. Runs no longer need the flag. - Checked:
pwsh tools/Build-AndroidRelease.ps1 -DryRunwith no-BundletoolPath, 2026-12-04, exit 0 in 2 min 23 s, on the fork’s then head323e89d12f(it has moved since837ca576da). Both ABIs with sky,terraglyph, libpng, FreeType, no cloud; 16 KB aligned; bundle 101,015,734 bytes, SHA-256deda5659…f588d4f4b; signed with a throwaway key; worktree removed. - The stale check’s baseline is now
09edd36. #356 (this pre-flight) and #357 are the only changes sincea8c22bcto the files that stale it. Changes after09edd36to WP-088, EC-011, the runbook, the script or WP-084’s keys/D3/D4 still mean re-running the pre-flight.
The verdict stands: READY.
After execution — lessons learned
(to be filled in at WP-088 close)