Session Prompt — WP-085 execution (Google TV app pipeline)

Execution session. Paste this as the first message to a fresh session. Keep it leashed: no spawned sessions. Every device claim comes from a capture made in this session (the 2026-11-21 fabrication incident in DECISIONS is why).

Intent

Deliver WP-085’s four milestones on the fork branch, one commit each, each verified on the TCL 65Q77K (EC-008 Steps 1–4) before the next starts. Then document the manifest format, write §Result, and open the fork PR.

Out of scope: any Google Play upload, listing or release build signing for Play (WP-084); billing; a new library UI; the D-pad-only pointer; changing D0–D4; upstreaming; any fork path outside the scope lock.

Authority chain (read order)

  1. C:\Users\jjensen\.claude\CLAUDE.md
  2. wp-lifecycle §Phase 3 and §Phase 4
  3. The paired pre-flight, especially §Engineering calls, §Scope lock and §Risk review
  4. WP-085, every section
  5. EC-008
  6. Smart-TV guide: build steps 4–5, adb over the network, install, add game data, the TV smoke test, Controls on a TV
  7. Private: private/commercial-strategy.md §”App name and package id candidates for WP-085” for the injected values. Never copy either into a public file, the fork, a commit message or PR text.

Pre-execution checks

If a check fails, stop and report.

Execution rules

Scope allowlist (from the pre-flight §Scope lock):

Fork:     dists/android/**
          backends/platform/android/**
          configure, ports.mk          (only if the build needs it; say why)
Public:   docs/reference/tv-package-manifest.md
          docs/work-packets/WP-085-tv-app-pipeline.md
          docs/execution-checklists/EC-008-tv-app-pipeline.md
          docs/work-packets/WORK_INDEX.md
          docs/reference/pre-flight-WP-085-2026-11-26.md   (§Lessons learned only)
Private:  private/tv-app-identity/**
          private/commercial-strategy.md                   (only to link the identity record)

Local only, never staged: /root/.gradle/gradle.properties, the identity res dir, build outputs, captures that show the TV’s serial or LAN address, P:\games\**, P:\scooby-engine\**.

Forbidden: engines/terraglyph/** and every other fork path; the product name or package id anywhere public; game data, signing keys or credentials in any repo; creating barefootbetters/tv-test-packages without Jeff’s go; changing D0–D4.

You MUST:

Top risks (from the pre-flight), as instructions:

Session task

Outputs this session MUST produce:

  1. Milestone 1 (one fork commit): the app shell with its injected identity, sky and terraglyph engines, ScummVM’s launcher in grid view; EC-008 Step 1 captured.
  2. Milestone 2 (one fork commit, if code is needed): import routes tested on the TCL (file picker incl. USB, cloud dialog, adb push); BASS launches, saves, restores after reopening; EC-008 Step 2 captured.
  3. Milestone 3 (one fork commit): the hidden advanced mode (debug build only): manifest over HTTPS, list, download, verify, install, detect, launch, remove (saves kept), diagnostics; the wrong-hash and zip-slip refusals; host independence. Ask Jeff before creating barefootbetters/tv-test-packages and its BASS release (Q2). EC-008 Step 3 captured, including the D4 release-APK checks.
  4. Milestone 4 (one fork commit): app update keeps games, library and saves; a game-data update installs after verification; an interrupted update leaves the old version playable; Showdown via a non-public route launches and saves. EC-008 Step 4 captured.
  5. docs/reference/tv-package-manifest.md: the manifest format (fields: id, version, size, SHA-256, HTTPS URL; data-only rule; no host in the app).
  6. WP-085 §Result with evidence and the code-review note; EC-008 filled in; WORK_INDEX row updated; the private identity record.
  7. The fork PR (wp-085-tv-app-pipeline → scooby-engine) with the four milestone commits, plus public and private docs PRs, gates green.

Outputs this session MUST NOT produce (sprawl guard):

Close ritual

  1. Every allowlisted file has its change or a recorded reason for none; the staged-diff checks pass in all three repos.
  2. WP-085 exit criteria 2–7 met with captures, or the WP stays 🚧 with what’s open in §Result.
  3. Fill in the pre-flight’s §Lessons learned (or write “No lessons learned”).
  4. Open the PRs. Merge order: public docs, then private (if its page links new public anchors), then the fork PR on Jeff’s review.
  5. Report to Jeff: per-milestone results, the gaps recorded, the D4 release-APK evidence, the PR links. Ask before merging.