Pre-Flight — WP-144 Phase C — 2026-12-05
Filled-in copy of docs/reference/pre-flight for WP-144, scoped to Phase C only (split the fork’s branches), run by EC-020. Phase B’s was pre-flight-WP-144-2026-12-05. Verdict at the bottom.
Header
- WP:
WP-144, Phase C - Title: Split the fork’s branches
- Companion EC: EC-020
- Pre-flight date:
2026-12-05 - Targets generation(s): N-A. Phase C moves branches; it locks no engine or format fact. Its self-tests cover Gen 1 (Showdown, Phantom).
- Targets disc(s): Gen 1, read only, for step 3’s self-tests.
Pre-flight intent
Validating readiness for WP-144 Phase C. Not tagging, branching, merging or committing anything on the fork. Verdict only.
Dependency check
| Prereq | State | Notes |
|---|---|---|
| WP-144 Phase A | Exit met 2026-12-05 | §Phase A |
| WP-144 Phase B | Done and signed off 2026-12-05; docs merged | #395 (29c69e9). Jeff’s rule: Phase C starts only once these docs are merged. Met. |
| EC for Phase C | Drafted in this PR | EC-020 |
| WP-144 Decision 2 (branch name) | Decided (Jeff, 2026-12-05) | classics. |
| WP-144 Decision 5 (CI in the exit) | Decided (Jeff, 2026-12-05) | The exit reads as EC-020’s builds, self-tests and TCL run; fork CI waits until an upstream offer is near. See finding 2. |
| WP-144 Decision 6 (step 7’s timing) | Decided (Jeff, 2026-12-05) | Step 7 moves out of Phase C, to when each unit is weighed after Phase D. See finding 3. |
Repo + fork state
- Claim. No open PR in this repo; no branch named
*phase-c*or*ec-020*onorigin; noEC-020in any branch’s history; no other app session working Phase C (session list, 2026-12-05). This branch,claude/wp-144-phase-c-ec, starts fromorigin/mainat29c69e9. - Fork, read-only.
git fetch originandgit fetch upstream masterinC:\dev\scummvm(refs only). It’s clean onscooby-engineat1dfbfb7375. - Fork tip unchanged since Phase B:
origin/scooby-engine=1dfbfb7375, so the classification still covers every commit. Base2982fe324b(2026-11-21);upstream/master=bc684bf6cb, 793 commits past the base. - The 61 files:
git diff --name-status 2982fe324b 1dfbfb7375 -- . ':!engines/terraglyph'gives 48 modified and 13 added, the 13 all underbackends/platform/android/advanced/andadvanced-stub/. Nothing under.github/and nothing under the oldengines/scooby/. - No name collision: the fork has no
classicsbranch and nopre-classics-split-*tag. Its branches aremaster,scooby-engine,carmenandcarmen-wp-015; its one tag isscooby-preview-2026-11-21. - Open fork PRs: only Mony’s
#12, against
master, which carries across by agreement. - Fork worktrees: none on
scooby-engine. The ones there arescummvm-carmen-verifyandscummvm-carmen-wp-015(Carmen),scummvm-copilot-review-config(#209’s two files, after Phase C), andscummvm-wp-082-upstream-prep(superseded edit, Phase A item 5). - Sessions: none working
scooby-engine. Session WP-088 is on hold until this split and only reads the fork.
Findings
1. A plain merge of the new scooby-engine into classics would delete
the TV app. WP-144 step 6 says to merge scooby-engine into classics.
After step 4 the two branches’ merge base is the old tip 1dfbfb7375; only
scooby-engine has changed since, by removing the TV app, so a normal merge
carries that removal into classics. The same happens with 35 reverts. EC-020
step 6 merges the restore commit with -s ours instead and checks that
classics’ tree still equals the old tip’s. Later engine commits then merge
normally. WP-144’s step 6 now says so.
2. The fork has never run CI, and upstream’s CI wouldn’t build the engine
if it did. WP-144’s Phase C exit says both branches “build in CI”. The
fork’s Actions are allowed, but no workflow is registered and no run has ever
happened (actions/workflows and actions/runs both report 0); a fork’s
workflows stay off until someone turns them on in its Actions tab. And
.github/workflows/ci.yml builds with default engines, while
engines/terraglyph/configure.engine sets the engine’s build-by-default to
no. So turning Actions on would show that both branches’ non-engine trees
build on upstream’s matrix, not that the engine does. Decision 5 settles
it: the exit reads as EC-020’s local builds and the TCL run.
3. Step 7’s branches would go stale before any offer. Decision 4 holds
every upstream offer until Phase C and Phase D validate the split. Branches
cherry-picked onto today’s upstream/master would sit through Phase D while
upstream moves on (793 commits since the base already, two of which touch U2’s
files). They’d need redoing at offer time. The tag and classics already
keep every candidate commit reachable (acceptance criterion 5). Decision 6
moves step 7 out of Phase C.
Scope lock (for the executing session)
Fork writes allowed, each in a worktree from tools/New-ForkWorktree.ps1,
never in C:\dev\scummvm:
- the tag
pre-classics-split-2026-12on1dfbfb7375; - the branch
classicsat1dfbfb7375; - the work branches
wp-144-engine-onlyandwp-144-classics-merge, and their fork PRs intoscooby-engineandclassics, which Jeff merges; git pull --ff-onlyinC:\dev\scummvmafter step 4.
This repo: the scripts in EC-020 step 8 under tools/, and
docs/work-packets/WP-144-classics-split.md, docs/work-packets/WORK_INDEX.md
and docs/execution-checklists/EC-020-classics-branch-split.md for outcomes.
Forbidden:
- Force-pushing or deleting
scooby-engine,classicsor the tag. - Any PR to upstream
scummvm/scummvm(Decision 4), and any upstream-candidate branch (Decision 6). - Mony’s #12 (only step 5’s message, on Jeff’s yes), the Carmen branches and their worktrees.
- Changes under
engines/terraglyph/. - Syncing
scooby-enginewith upstream past2982fe324b. - Merging any PR without Jeff’s yes.
Exit check before each commit: git diff --cached --name-only is inside
the lists above. Stage explicit paths; never git add -A.
Risks
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
classics takes the restore commit and loses the TV app |
high without the fix | high | Finding 1: -s ours and a tree-equality check (EC-020 step 6). |
| The restore misses a file or touches the engine | low | high | The file lists come from git diff, never typed; two empty-diff checks (step 3b); builds with the engine on and off. |
| The engine needs a non-engine change after all | low | high | Phase B’s hook check found none; step 3’s builds and the seeded self-tests against a baseline from the old tip catch one. |
| The fork moves between this pre-flight and step 1 | low | med | EC-020’s pre-flight re-reads the tip and stops if it moved; scooby-engine is frozen from step 1 to step 4. |
| A step that writes to the fork goes wrong | low | high | The tag and classics hold the old tip from steps 1–2 on. Undo is a revert through a PR, never a force-push (EC-020 §If something goes wrong). |
| The TV build changes | low | high | classics’ tree equals the old tip’s by check, then an APK listing compare and a TCL run (step 6). |
| #12 lands on the wrong base | low | med | Step 5’s message names the commit to rebase onto; engine changes hold until #12 merges. |
Verdict
- READY TO EXECUTE — Phase B’s docs are merged, the fork tip hasn’t
moved since Phase B (
1dfbfb7375), the claim is clean, no session is onscooby-engine, and Decisions 2, 5 and 6 are answered (Jeff, 2026-12-05). The draft of this artifact was NOT READY on those three decisions alone; Jeff’s answers landed in the same PR. If the fork’s tip moves before step 1, EC-020’s pre-flight stops and this verdict is re-run. - NOT READY
Reviewer: Claude (Phase C drafting session), for Jeff Date: 2026-12-05
A READY verdict authorizes Phase C only, run by EC-020. Phase D needs its own pre-flight.
After execution — lessons learned
Filled in at Phase C’s close.