Pre-Flight — WP-113 — 2026-11-29
Filled-in copy of docs/reference/pre-flight for WP-113. Verdict at the bottom.
Drafted, pre-flighted and executed in one session, the one that diagnosed the dead remote, after Jeff said “Yes, execute it” (2026-11-29). Execution runs inline, as WP-105 and WP-108–112 did, so there is no separate session prompt. Checked at claim time: no
WP-113onmain, nowp-113branch in either repository, no PR naming it; the draft is docs PR #287.
Header
- WP:
WP-113 - Title: The TV remote’s D-pad and OK in a TerraGlyph game (Gen 1)
- Pre-flight date:
2026-11-29 - Targets generation(s): 1
- Targets disc(s): none on Windows; the TV’s installed Showdown data
Dependency check
| Prereq | Status in WORK_INDEX |
Notes |
|---|---|---|
| WP-085 | 🚧 (milestones 1, 3, 4 verified) | The TV app it runs in is built and installed; its open item (import without a computer) isn’t needed. |
Rule check: WP-085 isn’t ✅, but the part this WP needs (the app on the TCL, the WSL build) is verified and in use; noted rather than blocking.
Repo + disc state
- Docs repo: branch
docs/wp-113-dpad-keymapcut fromorigin/main @ cb4d289, pushed (PR #287). - Fork worktree, the claim:
tools/New-ForkWorktree.ps1 -Branch wp-113-dpad-keymap, forked fromorigin/scooby-engine @ 6b6a2df93a, the branch pushed at once. - TCL 65Q77K on
adb, versionCode 26041019 installed (WP-104’s FreeType build),scummvm.inibacked up (SHA-25615A0E1BF…F93C). - WSL build tree
/opt/build/wt/wp104ft(WP-104’s branch with FreeType,--host=android-arm-v7a --enable-engine=terraglyph,sky).
Scope lock
This repo: docs/work-packets/WP-113-tv-dpad-game-keymap.md, this file,
WORK_INDEX.md, docs/reference/hotspot-magnet-plan.md (§6.4 and E27 only).
Fork: engines/terraglyph/metaengine.h, metaengine.cpp, staged by name.
TV: adb install -r with versionCode 26041020; never uninstall, never
clear data. The test APK is built on WP-104’s tree (its PR #36 is open), so the
TV keeps its branding; the fork PR carries only the two engine files.
Amended before execution: exit criterion 7 said the Windows self-test
must match its previous run. The keymap isn’t read by the self-test (its
test_script drives handleMouse() and the room’s key() directly), so the
criterion becomes: the change compiles under GCC (Windows) and clang
(Android) with no new warnings.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
A remote press the default keymap caught now reaches the engine raw (JOY_UP etc. unmatched in the game keymap). |
low | low | The global keymap binds them to the Virtual Mouse, so they never reach the engine; tested on the TV. |
| BACK stops skipping. Android binds BACK to skip by the standard action id. | low | med | The keymap keeps kStandardActionSkip; checked on the TV with a movie. |
| Typing at Sign In breaks. | low | high | No letter, digit or Delete is bound; adb shell input text checked on the TV. |
| The OK press also clicks in the launcher twice. | low | low | Game keymaps aren’t searched while the GUI keymap is active; the launcher is checked. |
| The test build loses the TV’s WP-104 look. | med | med | Build from a copy of the WP-104 tree with only the two files changed. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-113 session: diagnosis, drafting and execution) Date: 2026-11-29
Lessons learned
adb input keyeventis a poor stand-in for a held D-pad. The down and the up arrive within a few milliseconds, so the Virtual Mouse moves 0 to hundreds of pixels per tap depending on where its 12 ms update lands. Steer with batches and a screencap after each; in the launcher, click the list,MOVE_END, thenENTERinstead of aiming at Start.- A movie skip is hard to see in a screencap. A screen with a known long hold (the title, about 45 s) shows a skip unambiguously.
hotspot-magnet-plan.mdis stored with CRLF and one stray\r\r\n, so git treats it as non-text. An editor or script that normalises newlines rewrites all 2,212 lines; edit it at byte level.