Pre-Flight — WP-144 Phase B — 2026-12-05
Filled-in copy of docs/reference/pre-flight for WP-144, scoped to Phase B only (classify the fork’s non-engine changes). Phases C, D and E each get their own pre-flight; Phase C also needs its EC first. Verdict at the bottom.
Header
- WP:
WP-144, Phase B - Title: Classify the fork’s non-engine changes
- Pre-flight date:
2026-12-05 - Targets generation(s): N-A. Phase B reads the fork’s history; it locks no engine or format fact.
- Targets disc(s): N-A. No game data is read.
Pre-flight intent
Validating readiness for WP-144 Phase B. Not splitting, reverting or rewriting anything on the fork. Verdict only.
Dependency check
| Prereq | State | Notes |
|---|---|---|
| WP-144 Phase A (cleanup) | Exit met 2026-12-05 | §Phase A, PRs #390 and #393. |
| Fork #80 (WP-145) | Merged 2026-12-05 (1dfbfb7375) |
Jeff’s call was to finish it before the split; it’s in the tip Phase B reads. |
Open fork PRs against scooby-engine |
None | Re-checked at this pre-flight: the only open fork PR is #12 (against master, carries across by agreement). Carmen’s #77, #79 and #81 merged into carmen. |
WP-144 has no prerequisite WP in WORK_INDEX beyond Phase A’s in-flight
work, which is met.
Repo + fork state
- Claim. No open PR in this repo; no branch named
*wp-144*onorigin(the two localwp-144-phase-a*branches are Phase A’s, merged); nopre-flight-WP-144-*onmain; no other app session working Phase B (session list, 2026-12-05). This session’s branchclaude/wp-144-phase-b-902da7starts fromorigin/mainatcd1605c. - Fork, read-only.
git fetch originandgit fetch upstream masterin the base cloneC:\dev\scummvm(refs only; no checkout, commit or branch). The base clone stays clean onscooby-engine. Commits are read withgit log,git show,git diff-treeandgit merge-tree; no fork worktree is needed. - Fork tip:
origin/scooby-engine=1dfbfb7375(the #80 merge). Noclassicsbranch on the fork yet (git ls-remote). - Upstream:
upstream/master=bc684bf6cb(2026-12-05). - Base for the inventory:
git merge-base origin/scooby-engine upstream/master=2982fe324b(2026-11-21, the commit the fork’s last upstream sync,d1a26e76e6, merged in). Every commit in2982fe324b..1dfbfb7375is fork work.
How Phase B counts
- Engine: a commit whose files are all under
engines/terraglyph/orengines/scooby/(the engine’s path before fork #10’s rename). - Non-engine: a non-merge commit with at least one file outside those two folders.
- Merges are left out of the commit count: a PR merge’s content is in
its own commits. To be sure no merge carries its own change outside the
engine (a conflict resolution, say),
git diff-tree --ccis run on every merge in the range. - Four buckets from WP-144 §Phase B: Classics, upstream candidate,
check per commit (resolved to one of the others), engine hook. A commit
that’s already in
upstream/masterby patch id is marked as such.
Scope lock
Allowed paths (this repo):
docs/reference/pre-flight-WP-144-2026-12-05.md
docs/work-packets/WP-144-classics-split.md
docs/work-packets/WP-144-phase-b-classification.md
docs/work-packets/WORK_INDEX.md
Forbidden:
- Any commit, push, branch, checkout, revert or rebase on the fork
(
barefootbetters/scummvm), inC:\dev\scummvmor in any fork worktree. Fetching refs into the base clone is allowed. - Mony’s #12 and the Carmen branches and PRs.
engines/terraglyph/**,docs/formats/**,tools/**.- Merging this session’s PR without Jeff’s yes.
Exit check before each commit: git diff --cached --name-only matches
the list above. Stage explicit paths; never git add -A.
Risks
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| A commit put in the wrong bucket, so Phase C reverts something the engine or the app needs | med | high | Every call cites the diff read. “Unsure” with a reason where the diff doesn’t settle it. Phase C still builds both branches. |
| Counting against the wrong base, so the table misses or adds commits | med | high | State the base (2982fe324b) and both tips; reconcile with the 2026-12-03 count of 118 of 228. |
| A merge commit hiding a non-engine change | low | med | git diff-tree --cc on every merge in the range. |
| An engine hook missed, so the engine-only branch doesn’t build | low | high | Check every header the engine includes from outside engines/terraglyph/ exists in upstream/master, and grep the engine for every symbol and config key the non-engine commits add. Phase C step 3’s build is the final check. |
| The fork moves during Phase B | low | med | Re-read the tip before landing; record it. Phase A’s rule re-runs the inventory before Phase C step 1. |
| Touching the shared fork checkout | low | high | Read-only commands only; git status on the base clone before and after. |
Verdict
- READY TO EXECUTE — Phase A’s exit is met, the claim is clean, the base and both tips are recorded, and the scope is docs-only.
- NOT READY
Reviewer: Claude (Phase B session), for Jeff Date: 2026-12-05
A READY verdict authorizes Phase B only. It does not authorize any change to
the fork; Phase C needs its own EC and pre-flight.
After execution — lessons learned
Lesson: name the engine’s old paths in any count of “non-engine” commits.
The first pass counted every commit outside engines/terraglyph/, which took
in the engine’s work from before the engines/scooby/ rename and gave 118
instead of 32. A count that says what it treats as engine, as this
pre-flight’s §How Phase B counts does, is reproducible; one that doesn’t
isn’t.
Lesson: leave the upstream sync merge out of per-commit loops. Listing
each PR merge’s commits with git rev-list p1..p2 walked thousands of
upstream commits through the sync merge d1a26e76e6 and ran for minutes;
skipping that one merge made it instant.