Session Prompt — WP-088 pre-flight (Google Play internal testing)
Pre-flight session, not execution. This session fills in the pre-flight gate for WP-088, settles the questions below with Jeff, and returns a READY or NOT READY verdict. If the verdict is READY, it also writes the execution session prompt. Nothing is signed with the real upload key, uploaded, or installed. Paste this as the first message to a fresh session. Keep it leashed: no spawned sessions. Every toolchain, key or device claim must come from a command run in this session (the 2026-11-21 fabrication incident in DECISIONS is why).
Header
- WP: WP-088, Google Play internal testing pipeline. Companion EC-011; procedures in the runbook.
- Prompt written: 2026-12-01. Pre-flight date: fill in when run.
- Follows: WP-088 merged on
mainasc77b9fb(barefootbetters/terraglyph-engine#354), reworked onto WP-084’s account and keys (DECISIONS 2026-12-01). - Targets generation(s): N-A. No engine code; TerraGlyph is compiled in and tested with Gen 1 (Showdown) data.
- Repos:
- Public docs:
barefootbetters/terraglyph-engine(C:\dev\scooby-engine). - The fork:
barefootbetters/scummvm, public, branchscooby-engine, base checkoutC:\dev\scummvm. The build script works from its own WSL clone,/opt/build/scummvm. - Private:
barefootbetters/scooby-engine-private(C:\dev\scooby-engine-private).
All three checkouts are shared with other sessions. Do docs work in a worktree under
C:\claude-worktrees\, and stage explicit paths only. - Public docs:
Intent
Produce docs/reference/pre-flight-WP-088-<date>.md with every section of the
template filled in and a signed verdict. If it’s READY, also produce
docs/sessions/session-WP-088-<date>.md, the execution prompt, per
wp-lifecycle §Session prompt.
Claim the WP in WORK_INDEX.
What the verdict covers. WP-088’s EC-011 Step 1 (the local build with the upload key) can run now. Steps 2–4 need the organization developer account (WP-084 D3), which waits for the corrected D&B record to reach Google (about 2026-12-21). The account is an external resource, not a WP dependency: if everything else is in place, the verdict is READY, and the execution prompt makes “account verified” a pre-execution check for Step 2, so the execution session stops there until it is.
Out of scope:
- Signing with the real upload key, or any real (non-dry-run) build.
- Anything in Play Console: account, app record, track, upload.
- Any fork commit or tag; any change to the TV.
- Changing WP-084’s D3, D4 or D5, or WP-088’s D0.
Authority chain (read first)
C:\Users\jjensen\.claude\CLAUDE.md- wp-lifecycle §Phase 2 and §End-to-end steps 5–7, and the pre-flight template.
- WP-088: every section, especially §Scope, §Dependencies, §Risks and the engineering calls.
- EC-011 §Pre-flight, and the runbook.
- WP-084 §Decisions for Jeff and §Play signing keys, and the DECISIONS entries they link (D3, D4, D5, no cloud saves).
- WP-085 §Result: what the TCL showed about import routes (acceptance B’s risk).
- Private:
private/tv-app-identity/README.mdholds the app’s name, package id and the build-machine setup. Never copy the name or id into a public file.
Pre-execution checks
- Public
mainincludesc77b9fbor later. - No other session holds WP-088: no open PR mentioning WP-088, no
pre-flight-WP-088-*onmain, and the WORK_INDEX row still says “needs pre-flight”. If any of these fails, stop and report. /opt/build/scummvmfetched; recordorigin/scooby-engine’s SHA. If it’s no longer837ca576da, check WP-088 §Background’s fork facts (thetvApp*properties indists/android/build.gradle,jniLibs.srcDirs 'lib/',fatbundle.mkpassing one flag set to every ABI) against the new head, citing file and line.
If a check fails, stop and report.
What the pre-flight must establish
Dependencies: WP-079 ✅ and WP-085 Milestone 1 verified, read from WORK_INDEX and WP-085 §Result (not from memory). WP-085 as a whole is still 🚧; WP-088 depends only on Milestone 1.
Claim: update WP-088’s WORK_INDEX row to pre-flight in progress (claimed
YYYY-MM-DD) in the first commit of this session’s branch. WP-088 changes no fork
code, so there’s no fork worktree.
Build machine (WSL, run each and record the output):
- SDK platform 37, NDK
23.2.8568313, JDK 17 or newer,jarsigner,keytool. - Oboe for both ARM ABIs in the NDK sysroot.
- libpng and FreeType in
/opt/build/png-v7a,/opt/build/png-arm64,/opt/build/ft-v7a,/opt/build/ft-arm64. /root/.gradle/gradle.propertiessetstvAppId,tvAppLabel,tvAppResDirandtvAppAssetsDir, and nottvAppVersionCodeortvAppVersionName. List the keys only in any output you keep (cut -d= -f1). Then comparetvAppId’s value with the private README’s, in this session only, and record “matches” or “differs” publicly, never the value.- bundletool 1.18.3 at
%LOCALAPPDATA%\bundletool\1.18.3\, SHA-256A099CFA1…D91028E29(Get-FileHash). If WSL can’t see that folder (a sandboxed session’s writes to%LOCALAPPDATA%may be invisible to WSL), copy the jar to a folder WSL can read, pass-BundletoolPath, and record it.
Dry run: pwsh tools/Build-AndroidRelease.ps1 -DryRun on the current fork
head. Record the time, the fork SHA, the bundle size, and the configure lines
for both ABIs (engines, libpng, FreeType, no cloud). Keep the summary; leave
the package id out of the public record.
Keys (no password, no signing):
- The upload keystore exists on the build PC:
Test-Pathon the path Jeff gives. Record “present”, not the path. - WP-084 §Play signing keys has the upload certificate’s SHA-256, and it
equals the script’s
-ExpectedUploadCertSha256default. Compare the two strings. - Reading the keystore’s certificate needs its password, so leave that to the script’s own check in EC-011 Step 1.
Account: ask Jeff for the organization developer account’s state (not started, D&B record pending, submitted, verified) and record it.
Fork tags: the runbook tags each built commit with
git tag -s android-<versionCode>. Check whether C:\dev\scummvm has a signing key
(git config user.signingkey; none was set on 2026-12-01). If none, make the
engineering call (an annotated -a tag for internal testing, or set up
signing), and correct the runbook’s command in this session.
Scope lock for execution. No fork code changes. Expected allowlist, to be confirmed:
docs/work-packets/WP-088-play-internal-testing.md(§Result)docs/execution-checklists/EC-011-play-internal-testing.mddocs/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,dashboard.json- In the fork:
android-<versionCode>tags only, pushed on Jeff’s go. - Outside git: the release folder and ledger
(
C:\pcloud\scooby-engine\releases\android\), and the tester register as a 1Password secure note.
Questions to put to Jeff
Ask each as a short question, recommendation first, and record his answer verbatim in the pre-flight.
Q1. How testers get the private identity input (GPL). The build injects
the app’s res/ art, assets/ theme and About text, and the tvApp*
properties. They’re part of what produces the binary, so testers who receive
it must be able to get them too, but they’re private until launch.
| Option | Notes |
|---|---|
| A written offer in the release notes; send a zip on request (recommended) | The notes give the fork tag and say the build inputs are available from Jeff; nothing private is published |
| Send the zip with every build | Simplest to prove, but every tester gets unreleased branding whether they ask or not |
| Publish the input with the fork tag | Publishes the name and art before launch, against the naming decision |
Q2. A fallback import route on the family TV. If Add Game… has no
document picker on the Bravia and no file manager app provides one, the
remaining route is adb push, which needs developer mode turned on on that
TV. Ask whether that’s acceptable on the family member’s TV, or whether a gap
in acceptance B should stand (recorded for WP-085 criterion 3).
Q3. The tester. Confirm who the family tester is and that their Google account is on the Bravia. Record only “named, in the 1Password register” publicly; the name and email go in the 1Password note, never in a repo.
Engineering calls (yours, with reasoning recorded):
- Re-check WP-088’s two calls against the current state: Play version codes
starting at
26041100(the highest sideloaded code on any test TV must be below it; record what the TCL runs now ifadbis up), and the Play build using--disable-cloud. - The fork tag form (above).
- Whether EC-011 Step 1’s optional TCL install check runs, given the TCL may hold a sideloaded build under the same package id with a different signature.
Risk review: seed list (add any others you find)
- The first upload fixes the package id and app signing key for good.
The pre-flight checks
tvAppIdagainst the private record; the execution prompt must make the App signing page’s certificates a check before any build reaches a tester. - No import route on the Bravia (WP-088 §Risks): acceptance B may end as a recorded gap.
- The package id leaking into a public file through script output, ledger names or screenshots: the release folder is private, and public records leave the id out.
- The upload keystore’s password reaching a log or command line: only by environment variable or the script’s prompt.
- Version-code reuse: the ledger is the record, and a failed build writes no row.
- The shared checkouts: work only in the session’s own worktree.
Execution rules for this session
Scope allowlist:
docs/reference/pre-flight-WP-088-<date>.md
docs/sessions/session-WP-088-<date>.md (only if READY)
docs/execution-checklists/EC-011-play-internal-testing.md (tick the §Pre-flight boxes with evidence)
docs/work-packets/WP-088-play-internal-testing.md (record the Q1–Q3 answers and the engineering calls)
docs/reference/play-internal-testing.md (the tag command, and any gap the checks find)
docs/work-packets/WORK_INDEX.md (the WP-088 row)
dashboard.json (the play-testing milestone's note, if the state changed)
Forbidden:
- The app’s name or package id in any public file, commit message, PR text or log pasted into public docs.
- Using the real upload key; any Play Console action; fork commits or tags.
- Game data in any repo.
- Changing WP-084 D3/D4/D5 or WP-088 D0.
You MUST:
- Fill every template section with concrete content. Placeholders invalidate the pre-flight.
- Quote Jeff’s answers verbatim.
- Run the ewiki gates (
ewiki/themes/ewiki/tools/Invoke-WikiGates.ps1, with the page count CI computes in.github/workflows/ewiki.yml) and check every link and anchor you add. - Write the execution prompt (if READY) from the template, filled in against the pre-flight. It must not extend the pre-flight, and it must stop at EC-011 Step 2 until the account is verified.
Session task
Outputs this session MUST produce:
pre-flight-WP-088-<date>.md, with a signed verdict against the publicmainSHA and the fork SHA.- The dry-run record and the build-machine, key and account checks, with their outputs.
- The Q1–Q3 answers and the engineering calls, recorded in the pre-flight and in WP-088.
- EC-011’s §Pre-flight boxes ticked with evidence, or left open with the reason.
- If READY:
session-WP-088-<date>.md, the execution prompt. If NOT READY: §Path to resolution, and WORK_INDEX updated to match. - A PR open with the gates green.
Close ritual
- Confirm the gates pass and the links resolve.
- Open the PR.
- Report to Jeff: the verdict and why, the Q1–Q3 answers, the engineering calls, the account’s state, and what the execution session will do first (EC-011 Step 1: build 1 with the upload key). Ask before merging.