WP-144: Split the TV app out of TerraGlyph into Barefoot Betters Classics

Status: 🚧 In Progress. Phase A (cleanup) is done: its exit was met 2026-12-05 (§Phase A). Phase B (classification) is done: Jeff signed it off 2026-12-05 (§Result), and its docs are merged (#395). Phase C is next. Its EC, EC-020, is drafted, and its pre-flight is READY, with Decisions 2, 5 and 6 answered 2026-12-05. Phase B’s pre-flight was READY. Phase: 5 (polish & distribution). Depends on: the in-flight work in §Phase A landing or closing. No engine WP depends on this one. Companion EC: EC-020, for Phase C, the step that can lose work. Targets: the fork barefootbetters/scummvm, this repo, the private repo barefootbetters/scooby-engine-private, and a new private Classics repo. Estimated effort: Phase A a few days of normal work; Phases B–E one to two sessions.


Goal

Separate the two products that now share one branch and one set of repos:

Why now

Target layout

Where Holds
Fork, scooby-engine branch TerraGlyph only: engines/terraglyph/ and the smallest set of shared hooks it needs. The source of any upstream PR.
Fork, new classics branch Upstream, plus TerraGlyph merged in, plus the TV app: reskin, Android backend and manifest, dists/android/, the TV grid. The Classics APK builds from this branch, and it’s the public source for each shipped build.
Fork, one branch per fix Changes any ScummVM user on a TV would want, such as the D-pad focus in menus. Offered upstream as their own small PRs; classics merges them meanwhile.
This repo Engine governance: vision, WPs, ECs, formats, decisions, the engine’s tools. Finished TV WPs stay here as history.
scooby-engine-private Engine-private pages only (contributor work, upstream outreach).
New private Classics repo Classics governance and its own Access-gated ewiki: TV app WPs and ECs, build and preview scripts, reskin specs and the TV theme, app identity and art, game-data packaging and the beta Worker, the business pages, and all licensing.
Second brain One portfolio entry pointing at the Classics repo.

The reskin’s code stays in the public fork. The fork is where it builds, and ScummVM’s GPLv3+ license means each shipped build’s source has to be published; a private repo can’t serve as that source.

Phase A — Cleanup before the split

Land or close what’s in flight, so Phase C moves a quiet branch. The first snapshot was taken 2026-12-03; the run below re-took it on 2026-12-05. Re-run the inventory once more before starting Phase C.

Exit: no open fork PR against scooby-engine except ones agreed to carry across; no session working the fork; C:\dev\scummvm clean on scooby-engine.

Rules for the cleanup: delete a fork branch only after gh pr view reports its PR as MERGED, since deleting the head of an open PR closes the PR. A branch with no PR and no commits ahead of scooby-engine can go. Remove a worktree only when it has nothing uncommitted or unpushed. Nothing is merged or closed without Jeff’s yes.

Run of 2026-12-05

Closed since the first snapshot. Fork #69 (WP-141) merged 2026-12-04, and WP-141’s worktree is gone. In this repo, #373, #374 and #376 merged; #375 closed (the TV draft it collided with is now WP-145, Classics work that Phase D moves); #360 (WP-107) merged 2026-12-04; and #389 recorded the timing of #12.

Open PRs:

Repo PR Base What State and the call it needs
fork #12 master Mony’s engine-layout refactor Carries across, by decision. Agreed with Mony (2026-12-05): it stays open through Phase C, and he rebases it onto the engine-only scooby-engine and repoints it there once he hears the split is in (Phase C step 5).
fork #79 carmen MOHAWK: CSTIME: handle the remove-character scene event (the Carmen Sandiego WP-014), opened 2026-12-05 after the first run Carmen work; it targets carmen, so it doesn’t hold up the split.
fork #77 carmen MOHAWK: CSTIME: click to pick up and drop items (the Carmen Sandiego WP-007) Needs work. Waiting on Jeff’s live check of scene 3, and on one launch of The New Kid on the Block to confirm Living Books shows no new option once that game is on disk. Then Jeff merges it, and carmen-sandiego#21 follows. It targets carmen, so it doesn’t hold up the split.
this repo #211 main The fork scripts build terraglyph, not scooby Merged 2026-12-05 (0601f48), on Jeff’s yes. At the run it was ready to merge: Still needed: main’s Make-Release.ps1 still runs configure --enable-engine=scooby, which configure rejects, so the release script hasn’t run since the engine rename. Mergeable. Land it before Phase C step 8, which edits New-ForkWorktree.ps1 again.
this repo #209 main ScummVM style checker and Copilot review guide Merged 2026-12-05 (bda09c2), on Jeff’s yes. At the run it was ready to merge as tooling: Mergeable; its own tests pass (28 of 28). Run against the fork’s scooby-engine at 323e89d12f, the checker reports one real finding: engines/terraglyph/story_check.cpp has no final newline. The guide’s setup step, two .github/ Copilot instruction files committed to scooby-engine, was never done: the files sit uncommitted in the copilot-review-config fork worktree. Committing them now would add fork-only files to the branch Phase C is cleaning, so the open call is when they go in: after Phase C, in a commit of their own, or not at all.

Fork branches. origin had 50 branches. 45 were deleted, each only after gh pr view reported its PR MERGED with the same head commit as the branch tip: claude/wp-077-wizards-skull (#3), fix-drawbridge-flag-wrap (#14), scooby-adgf-testing (#7), and every wp-078 to wp-132 branch (#4 to #57). Three of them showed one or two commits ahead of scooby-engine (scooby-adgf-testing, wp-080-suspect-board-exit, wp-081-wizards-bedroom-veranda). Those are the pre-squash originals of squash-merged PRs, under the old engines/scooby/ path; each tip is the merged PR’s head, so nothing was lost. Kept: scooby-engine, master, carmen, carmen-wp-007 (the head of #77) and carmen-wp-014 (the Carmen WP-014 session is working it). The local branch claude/verify-showdown-5d3e09 (no PR, contained in scooby-engine) was deleted too.

Fork worktrees (under C:\claude-worktrees\):

Worktree State Done
scummvm\verify-showdown-5d3e09 Detached, clean, contained in scooby-engine Removed
scummvm-wp-078-bedroom-cavern Clean, pushed, #4 merged Removed, local branch deleted
scummvm-wp-081-wizards-bedroom-veranda-wfr Clean, pushed, #6 merged Removed, local branch deleted
scummvm-wp-083-wfr Clean, pushed, #9 merged Removed, local branch deleted
scummvm-scooby-adgf-testing Clean, pushed, #7 merged Removed, local branch deleted
scummvm-wp-082-upstream-prep One uncommitted edit, Showdown’s flag ADGF_UNSTABLE to ADGF_TESTING in engines/scooby/detection_tables.h; no remote branch Left. The edit is superseded (#7, and 8cb9617318 under engines/terraglyph/), so it’s safe to discard on Jeff’s say.
scummvm-copilot-review-config Two untracked files, .github/copilot-instructions.md and .github/instructions/scummvm-engine.instructions.md; no remote branch Left, until the #209 call
scummvm-wp-145-tv-get-tiles WP-145’s fork work: 14 modified and 2 new files (the Android advanced/ package code, jni-android.cpp, the grid), +373/−25, all uncommitted, no remote branch, 2 commits behind scooby-engine Left. Its session ended partway through the TV check. It then finished: fork #80 merged 2026-12-05 (1dfbfb7375), and the worktree and branch are gone.
scummvm-carmen-wp-007, scummvm-carmen-wp-014, scummvm-carmen-verify Carmen Sandiego (CSTIME) work on carmen; clean and pushed Left to the Carmen sessions

This repo’s worktrees outside the app’s session folders: terraglyph-cf3-ruffle-label (#329 merged, clean) was removed and its branch deleted. Kept: terraglyph-engine-copilot-review (#209) and terraglyph-engine-fix-scripts (#211), both open, and wp-088-execution (WP-088’s claim, live). terraglyph-engine-fix-ewiki-comments is clean and its PR, #212, closed as superseded by #217; it’s safe to remove, and the PR keeps its commit. The worktrees under C:\claude-worktrees\scooby-engine\ belong to app sessions and are left to them; WP-145’s docs branch there, docs/wp-145-tv-get-tiles, is pushed with no PR yet.

C:\dev\scummvm: clean on scooby-engine, 44 commits behind origin; fast-forwarded to 323e89d12f, and again to 1dfbfb7375 once #80 merged. Clean.

Sessions working this repo or the fork (2026-12-05):

Session Works on What’s left
Execute WP-145 Fork worktree wp-145-tv-get-tiles; docs branch docs/wp-145-tv-get-tiles Ended partway through the TV check, with the fork changes above uncommitted. Done (WP-145 ✅, 2026-12-05): fork #80 merged into scooby-engine, the split’s call met.
Session WP-088 This repo; builds the Play release from the fork at 323e89d12f ⏸ On hold until this split (Jeff, 2026-12-05: “Yes, check and hold”). Build 1 not made, no tag, no ledger; the TCL release-build launch check ran from a dry-run bundle on 1dfbfb7375 and passed. Resumes after Phase C with a fresh pre-flight against the app’s branch. It reads the fork, it doesn’t change it; nothing of it blocks Phase C.
Carmen Sandiego WP-014 carmen-sandiego; fork branch carmen-wp-014 Working (reading TIME32.EXE).
Session WP-007 (Carmen) Fork #77, carmen-sandiego#21 Waiting on Jeff’s live check, then his merge of #77.
Carmen WP-004, WP-003 setup, Living Books carmen-sandiego #26, #24, #22 Open docs PRs in carmen-sandiego; nothing on the fork.
ScummVM TerraGlyph Copilot review workflow #209, #211 Not running; ends with those PRs.
Licensing audit review, Draw order bugs, Progress and questions for Mony Merged #379, #378, #389 Nothing left; can be archived.

Exit check, 2026-12-05

  1. No open fork PR against scooby-engine except agreed carries: met. The only open fork PRs are #12 (agreed), and #77 and #79 (against carmen).
  2. No session working the fork: met for scooby-engine. WP-145’s fork work, uncommitted at the first run, merged as fork #80 the same day. The Carmen sessions work the fork’s carmen branches, which Phase C doesn’t touch; whether they count here is Jeff’s call (they don’t, on this reading of the exit, since the split moves only scooby-engine and classics).
  3. C:\dev\scummvm clean on scooby-engine: met (1dfbfb7375).

Phase A’s exit is met. #209 and #211 merged the same day, and their worktrees and branches are gone.

Left before Phase C:

  1. WP-145’s fork work. Decided (Jeff, 2026-12-05): it finishes before the split. Done: fork #80 merged into scooby-engine (1dfbfb7375), so classics gets it at Phase C step 2.
  2. Merge #211. Merged (0601f48).
  3. Merge #209. Merged (bda09c2). Its two Copilot instruction files stay in the copilot-review-config fork worktree for now; adding them to the fork waits until after Phase C, in a commit of their own.
  4. #77 and #79 (Carmen, against carmen): Jeff’s checks and merges. They don’t block the split.
  5. Discard the superseded edit in scummvm-wp-082-upstream-prep and remove that worktree; remove terraglyph-engine-fix-ewiki-comments.
  6. Archive the finished sessions.
  7. Re-run the inventory just before Phase C step 1.

Phase B — Classify the fork’s non-engine changes

List every commit on scooby-engine that touches files outside engines/terraglyph/ (118 of 228 commits on 2026-12-03), and put each file and commit in one bucket. A first pass by path:

Bucket Files (first pass) Likely WPs
Classics backends/platform/android/advanced/** (the package installer), both AndroidManifest.xml, dists/android/build.gradle, gui/themes/**, gui/about.cpp, gui/launcher.cpp, gui/widgets/grid.* WP-085, WP-096, WP-104, WP-132, WP-135–WP-137
Upstream candidate gui/dialog.*, gui/gui-manager.*, gui/widget.*, gui/widgets/{edittext,list,popup,scrollcontainer,tab}.*, gui/options.*, gui/editgamedialog.*, gui/saveload-dialog.cpp, engines/dialogs.cpp WP-118, WP-123
Check per commit backends/platform/android/android.cpp, ScummVMActivity.java, TestFeatures.java, base/commandLine.cpp, common/zip-set.*, gui/ThemeEngine.*, gui/ThemeParser.cpp WP-113, the package and ISO-free work
Engine hook Whatever the engine can’t build without —

A commit that mixes buckets gets split before Phase C, not carried across.

Exit: a table in this WP’s §Result naming every non-engine commit and its bucket, with Jeff’s sign-off on the upstream candidates. Met 2026-12-05 (§Result).

Phase C — Split the fork’s branches

  1. Tag the current tip (pre-classics-split-2026-12) so nothing is lost.
  2. Create classics from that tip. It starts with everything, so the TV app keeps building exactly as today.
  3. On a new branch from scooby-engine, take out the Classics and upstream-candidate commits, keeping the engine hooks (Phase B found none). As signed off with Phase B, this is one commit that restores the 61 non-engine files to the base 2982fe324b, not 35 reverts. Build with the engine enabled and disabled, and run the Gen 1 self-tests. The branch should differ from its merge base with upstream only in engines/terraglyph/.
  4. Merge that into scooby-engine through a fork PR that Jeff reviews.
  5. Tell Mony the split is in, so he rebases #12 onto the new scooby-engine and repoints it there. Until #12 merges, hold other changes under engines/terraglyph/: his move renames most of the engine’s files, and anything landing during the rebase conflicts with it.
  6. Merge scooby-engine into classics and confirm the TV build is unchanged: same APK contents apart from the version, and the same results on the TCL. The merge of step 4’s restore commit uses the ours strategy: a plain merge would carry the restore into classics and delete the TV app (pre-flight finding 1). classics’ tree must still equal the old tip’s afterwards. Later engine commits merge normally.
  7. Moved out of Phase C (Decision 6). A branch per upstream candidate is cut from upstream’s master when that unit is weighed, after Phase D.
  8. Update tools/New-ForkWorktree.ps1 and the fork scripts so TV work cuts from classics and engine work from scooby-engine.

Exit: scooby-engine touches only the engine and its hooks; classics builds the same APK as before the split; both build. Per Decision 5 the builds are the ones EC-020 records: scooby-engine on Windows with the engine on, off and with the release line, passing the Gen 1 self-tests; classics’ APK running on the TCL. CI on the fork waits until an upstream offer is near.

Phase D — Create the Classics repo and move the governance

  1. Create the private repo and its Access-gated ewiki on the shared theme, with the Claude verify Service Auth policy.
  2. Move from this repo: the TV build and preview scripts (tools/Build-AndroidRelease.ps1, tools/Start-TvAppPreview.ps1, tools/Invoke-TvFiller.ps1), any TV WPs still open, and their ECs. Decide per file for tools/packages/ (game-data packaging).
  3. Move from scooby-engine-private: the business, platform-vision and licensing pages, the TV theme and app identity, the TV pack metadata, the reskin and UI pages, game thumbnails, and the beta-data Worker.
  4. Organize licensing by licensor, with one rights matrix and one outreach log across every title.
  5. Leave redirect stubs at the old ewiki paths, so links from earlier pages, PRs and notes keep working.

Exit: the Classics ewiki builds strict and is live behind Access; every moved page resolves; this repo and the private repo build strict with the stubs.

Phase E — Repoint

Decisions for Jeff

  1. The repo name. Decided (Jeff, 2026-12-03): a new private barefootbetters/classics repo for the product. The campaign site’s repo, formerly barefoot-classics, is renamed barefootbettersclassics-com (at C:\www\barefootbettersclassics-com) after the site’s own domain, barefootbettersclassics.com. classics.barefootbetters.com redirects there once the new domain is live.
  2. The fork branch name. Decided (Jeff, 2026-12-05): classics.
  3. Finished TV WPs. Recommended: they stay here as history, and only open or future TV work moves.
  4. Upstream candidates. Which of Phase B’s candidates to offer upstream, and when. Decided (Jeff, 2026-12-05): none is offered until the split is validated (Phase C, then Phase D); then U1–U6 are weighed one at a time, with upstream’s AI-authorship requirement settled before any is sent, and U6 only on the conditions in §Result. Upstream acceptance doesn’t hold up the split.
  5. What “build in CI” means in Phase C’s exit. The fork has never run CI: no workflow is registered and there have been no runs, since a fork’s workflows stay off until turned on in its Actions tab. Upstream’s ci.yml also builds default engines only, and the engine’s configure.engine sets its build-by-default to no, so even with Actions on, CI would build both branches’ non-engine trees but never the engine (pre-flight finding 2). Decided (Jeff, 2026-12-05): the exit reads as the builds EC-020 records: on Windows, the engine on, off and with the release line, plus the Gen 1 self-tests; and classics’ APK on the TCL. Turning on Actions for the fork waits until an upstream offer is near.
  6. Phase C step 7, the upstream-candidate branches. Under Decision 4 no unit is offered until Phase D is done. Branches cut onto today’s upstream/master would go stale through Phase D (it’s 793 commits past the base already, and two of those touch U2’s files). The tag and classics already keep every candidate commit reachable. Decided (Jeff, 2026-12-05): step 7 moves out of Phase C; each unit’s branch is cut when that unit is weighed, after Phase D.

Acceptance criteria

  1. Every non-engine commit on the old scooby-engine tip is classified, and the classification is in §Result.
  2. scooby-engine differs from upstream only in engines/terraglyph/ and the listed hooks, builds with the engine enabled and disabled, and passes the Gen 1 self-tests.
  3. classics builds an APK that matches the pre-split build apart from the version, and it runs on the TCL 65Q77K.
  4. The Classics repo and ewiki are live, with the moved pages resolving and redirect stubs at the old paths.
  5. No work is lost: the tag from Phase C step 1 is pushed, and every pre-split commit is reachable from scooby-engine, classics or an upstream-candidate branch.

Risks

Result

Phase B, 2026-12-05

Full table: WP-144 Phase B classification. Fork tip 1dfbfb7375, base 2982fe324b (its merge-base with upstream master at bc684bf6cb).

Signed off (Jeff, 2026-12-05). Phase B is approved:

The sign-off rests on the reported findings; Jeff didn’t audit the repository separately. Jeff’s priority: get TerraGlyph cleanly separated from Classics first; upstream contributions mustn’t delay that.

Phases C–E: filled in at close.