Pre-Flight — WP-010 — 2026-11-13
Filled-in copy of docs/reference/pre-flight for WP-010. Verdict at the bottom.
Written before the first build. The session continues the WP-001…WP-006 session on Jeff’s “continue” after PR #36 merged. Part of the WP was already done on 2026-11-13 by an earlier session: the fork exists, and the
scooby-enginebranch carries the skeleton. This pre-flight covers verifying it and closing the WP.
Header
- WP:
WP-010 - Title: ScummVM fork + empty
engines/scooby/scaffold - Pre-flight date:
2026-11-13 - Targets generation(s): none (engine structure only; the game table is empty)
- Targets disc(s): none
Pre-flight intent
Validating readiness for
WP-010. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
none listed (Depends on: —) |
n/a | n/a | |
| WP-001 (informs) | ✅ Done | 2026-11-13 | Used the channel names resource, graphics, audio, script, input for its Ghidra labels. The scaffold must declare the same five. |
Repo + fork state
- Project worktree clean; HEAD on branch
claude/wp-010at5fcce99(=main) barefootbetters/scummvmexists on GitHub, forked fromscummvm/scummvm; default branchmaster- Local clone at
C:\dev\scummvmwith remotesorigin(fork) andupstream(scummvm/scummvm, blob-less), on branchscooby-engine, clean, in sync withorigin/scooby-engine - Branch content: two commits on upstream
c553503d9d433726b22b43b3a6a0a86fd00125e9(2026-11-13, “SCUMM: Hotspot highlighting with object names”).8214e448afis the unmodifieddevtools/create_engineoutput, and12669217cfshapes it.upstream/masterand the fork’smasterare both still atc553503d9d, so that is the pin. - Toolchain: none on this machine. No gcc, clang, MSVC, make or MSYS2, and WSL has no distro. Jeff chose MSYS2 + mingw-w64 (2026-11-13), installed for this WP, to be used through Phase 5 as WP-010 §Notes asks.
Doc-vs-tree cross-check
- Clone location. WP-010 and EC-005 say
C:\www\scummvm\. The clone is atC:\dev\scummvm. Jeff’s three-roots rule (D-24739, user CLAUDE.md) puts code underC:\dev, and the WP predates it. The close records the deviation; no move. - Debug-channel API. WP-010 exit #6, EC-005 Step 8 and integration §9 say “
DebugMan.addDebugChannel()in the constructor”. At the pin, engines declare aDebugChannelDeftable and return it fromMetaEngineDetection::getDebugChannels(), and the framework registers it.addDebugChannel()still exists incommon/debug-channels.h, but engines no longer call it. The scaffold uses the table form. The close updates §9 to the API at the pin. - File count. EC-005 expects 9 files.
create_enginealso emitsconsole.{h,cpp},credits.planddetection_tables.h, and the shaping commit removedPOTFILES(no translatable strings, per integration §10). That leaves 12 files.
Scope lock
Allowed paths for WP-010 (this repo):
docs/02-SCUMMVM-INTEGRATION.md (version pin, §9 channels, §10 build notes)
docs/work-packets/WP-010-scummvm-scaffold.md
docs/execution-checklists/EC-005-scummvm-scaffold.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-010-2026-11-13.md
Fork (C:\dev\scummvm, branch scooby-engine): engines/scooby/** only, and only to fix a build failure. No changes outside the engine directory, and no build products committed.
Forbidden: game data; pushing to the fork’s master; changes to upstream files.
Exit check: git diff --name-only origin/main..HEAD here, and git diff --name-only upstream/master..scooby-engine in the fork (only engines/scooby/ paths).
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Toolchain friction (configure cannot find SDL2 or zlib under MSYS2) | med | med | Use MSYS2’s own SDL2 and zlib packages and build from the MSYS2 UCRT64 shell. Record the exact packages and configure flags. |
| A full ScummVM build takes a long time | high | low | --disable-all-engines --enable-engine=scooby for the scooby build, which is what WP-010 tests. Disabled-engine build runs with the same reduced engine set. Both run in the background. |
| “Builds” taken as “works” | med | med | Also run the binary with --list-engines and --list-debug-flags=scooby and record the output. |
| Template files mistaken for authored code | low | low | The two fork commits keep create_engine output and changes separate |
Verdict
- READY TO EXECUTE (after the toolchain install)
- NOT READY
Rationale: the fork and skeleton exist; the only gap is the toolchain, chosen by Jeff and being installed.
Prepared by: Claude (WP-001 session, continuing), on Jeff’s “continue” of 2026-11-13 Date: 2026-11-13
After execution — lessons learned
Lesson: “partly done” needs its own check before “queued”. WORK_INDEX still showed WP-010 as queued, but the fork, clone and skeleton already existed. Checking the fork and the clone before starting avoided redoing that work. The real gap was elsewhere: nothing on the machine could compile the skeleton, so it had never been built.
Lesson: the WP’s API names age. Three of WP-010’s instructions named APIs that differ at the pin: addDebugChannel(), instantiateEngine() and --list-debug-flags. Checking each against the pinned headers turned them into recorded deviations rather than build failures. Integration §9 now describes the API at the pin.
Lesson: read the upstream repo’s own rules before building on it. AI-GUIDELINES.md and the commit-author check in upstream ScummVM shape the Phase 5 plan more than any build flag does. It came up only because the tree listing showed AGENTS.md.
Scope note: the lock held. No fork commits were needed; the scaffold built as committed. Build products stayed in the session scratchpad. Running the binary once without --config created a default scummvm.ini under %APPDATA%\ScummVM.