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-113 on main, no wp-113 branch in either repository, no PR naming it; the draft is docs PR #287.


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

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

Prepared by: Claude (WP-113 session: diagnosis, drafting and execution) Date: 2026-11-29

Lessons learned