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:
- TerraGlyph is the engine: getting the Scooby-Doo games to run in ScummVM. Its fork branch should hold the engine and nothing else, so it’s ready to offer upstream.
- Barefoot Betters Classics is the app and the business: the Google TV app, its reskin, game-data delivery, the catalog across engines (TerraGlyph, SCUMM, Mohawk, Ruffle) and the licensing for every title.
Why now
- The fork’s
scooby-enginebranch mixes them. Against upstream, about three-quarters of its changed files areengines/terraglyph/. The rest are the TV app: the Android backend and manifest,dists/android/, the GUI themes and layouts, andgui/widgets/changes for the TV grid and D-pad focus (§Phase B). - Upstream will review an engine as an engine. A submission should touch
engines/terraglyph/plus only the shared hooks it truly needs. Branding, a custom theme and Android app identity don’t belong in it. - Classics is bigger than one engine. Its catalog already includes titles on other engines, so its planning, app work and licensing can’t keep living inside the TerraGlyph repos.
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
- No open fork PR against
scooby-engineexcept agreed carries: met. The only open fork PRs are #12 (agreed), and #77 and #79 (againstcarmen). - 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’scarmenbranches, 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 onlyscooby-engineandclassics). C:\dev\scummvmclean onscooby-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:
WP-145’s fork work.Decided (Jeff, 2026-12-05): it finishes before the split. Done: fork #80 merged intoscooby-engine(1dfbfb7375), soclassicsgets it at Phase C step 2.Merge #211.Merged (0601f48).Merge #209.Merged (bda09c2). Its two Copilot instruction files stay in thecopilot-review-configfork worktree for now; adding them to the fork waits until after Phase C, in a commit of their own.- #77 and #79 (Carmen, against
carmen): Jeff’s checks and merges. They don’t block the split. - Discard the superseded edit in
scummvm-wp-082-upstream-prepand remove that worktree; removeterraglyph-engine-fix-ewiki-comments. - Archive the finished sessions.
- 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
- Tag the current tip (
pre-classics-split-2026-12) so nothing is lost. - Create
classicsfrom that tip. It starts with everything, so the TV app keeps building exactly as today. - 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 base2982fe324b, 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 inengines/terraglyph/. - Merge that into
scooby-enginethrough a fork PR that Jeff reviews. - Tell Mony the split is in, so he rebases #12
onto the new
scooby-engineand repoints it there. Until #12 merges, hold other changes underengines/terraglyph/: his move renames most of the engine’s files, and anything landing during the rebase conflicts with it. - Merge
scooby-engineintoclassicsand 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 theoursstrategy: a plain merge would carry the restore intoclassicsand delete the TV app (pre-flight finding 1).classics’ tree must still equal the old tip’s afterwards. Later engine commits merge normally. - Moved out of Phase C (Decision 6). A branch per upstream candidate is
cut from upstream’s
masterwhen that unit is weighed, after Phase D. - Update
tools/New-ForkWorktree.ps1and the fork scripts so TV work cuts fromclassicsand engine work fromscooby-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
- Create the private repo and its Access-gated ewiki on the shared theme,
with the
Claude verifyService Auth policy. - 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 fortools/packages/(game-data packaging). - 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. - Organize licensing by licensor, with one rights matrix and one outreach log across every title.
- 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
- Add the Classics repo to the second brain’s portfolio and the studio dashboard.
- Update this repo’s README, WORK_INDEX and CLAUDE.md, and any session notes that name the fork branch for TV work.
- Log the decisions: the engine-side split in this repo’s DECISIONS.md; the Classics side on the private vision page.
Decisions for Jeff
- The repo name. Decided (Jeff, 2026-12-03): a new private
barefootbetters/classicsrepo for the product. The campaign site’s repo, formerlybarefoot-classics, is renamedbarefootbettersclassics-com(atC:\www\barefootbettersclassics-com) after the site’s own domain,barefootbettersclassics.com.classics.barefootbetters.comredirects there once the new domain is live. - The fork branch name. Decided (Jeff, 2026-12-05):
classics. - Finished TV WPs. Recommended: they stay here as history, and only open or future TV work moves.
- 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.
- 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.ymlalso builds default engines only, and the engine’sconfigure.enginesets its build-by-default tono, 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; andclassics’ APK on the TCL. Turning on Actions for the fork waits until an upstream offer is near. - 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/masterwould go stale through Phase D (it’s 793 commits past the base already, and two of those touch U2’s files). The tag andclassicsalready 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
- Every non-engine commit on the old
scooby-enginetip is classified, and the classification is in §Result. scooby-enginediffers from upstream only inengines/terraglyph/and the listed hooks, builds with the engine enabled and disabled, and passes the Gen 1 self-tests.classicsbuilds an APK that matches the pre-split build apart from the version, and it runs on the TCL 65Q77K.- The Classics repo and ewiki are live, with the moved pages resolving and redirect stubs at the old paths.
- No work is lost: the tag from Phase C step 1 is pushed, and every
pre-split commit is reachable from
scooby-engine,classicsor an upstream-candidate branch.
Risks
- A commit split wrong leaves the engine needing a TV file, or the app missing a change. The per-commit table and building both branches catch it.
- Merging the engine-only
scooby-engineintoclassicswould delete the TV app fromclassics. Phase C step 6 merges the restore commit with theoursstrategy and checks the tree. - Long-lived open branches cut from the old tip need rebasing onto the right branch. Phase A keeps that list short.
- Mony’s refactor (#12) touches engine layout broadly. Landing it across the split doubles the conflict work. Agreed with Mony (2026-12-05): it lands after the split, rebased once onto the engine-only branch (Phase C step 5).
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).
- 35 non-merge commits of 174 touch a file outside the engine, across
61 files. The first pass’s 118 counted the engine’s commits from before
the
engines/scooby/rename; counted as engine, they drop out. - Classics: 21 (WP-085, WP-096, five of WP-104’s seven, WP-135, WP-136, WP-137, WP-145).
- Upstream candidates: 13, in six offering units: U1 backend defaults
(two WP-104 commits), U2 arrow-key focus in dialogs, U3 the grid’s arrow
keys, U4 the Android D-pad (WP-118), U5 the Control tab (WP-123), U6 icon
packs from
SearchMan(WP-132). - Already upstream: 1,
516b27b7d3, a cherry-pick offa8126a019. - Engine hooks: none. The engine includes nothing the fork changed and uses no symbol or setting the 35 commits add.
- Mixed commits: none. Six files carry commits from two buckets; the appendix lists them in order for Phase C.
- First-pass corrections:
gui/themes/**is the Control tab (U5), not Classics;gui/widgets/grid.*,gui/ThemeEngine.*,android.cppandengines/dialogs.cppsplit by commit.
Signed off (Jeff, 2026-12-05). Phase B is approved:
- The classification and the six upstream-candidate units (U1–U6). The
13 commits are candidates, not automatic submissions. The commit already
upstream (
516b27b7d3) is left out of any future offer. - The grid theme hooks (WP-135, WP-136, WP-137) stay Classics. Revisit an upstream offer if another theme needs them or a general use for them appears.
- U6 (icon packs from
SearchMan) stays a candidate, on conditions: a cross-platform regression test, proof that existing icon-pack loading is unchanged, a plain account of what it gives ScummVM generally, and upstream’s contribution and AI-authorship rules met. - Decision 4: no upstream submission until the split is validated. The order is Phase C (validate the engine-only branch), then Phase D (validate Classics on its own), then weigh U1–U6 one at a time, and settle upstream’s AI-authorship requirement before any is sent. Upstream acceptance is not a dependency of the split.
- The engine-only approach for Phase C: start from the base, keep
engines/terraglyph/, and restore the 61 non-engine files to the base’s state, instead of 35 reverts, as long as the result passes Phase C’s builds and checks. Phase C still needs its EC and pre-flight first.
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.