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-engine branch carries the skeleton. This pre-flight covers verifying it and closing the WP.


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

Doc-vs-tree cross-check

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

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.