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.


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

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:

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:

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

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.