Pre-Flight — WP-012 — 2026-11-14

Filled-in copy of docs/reference/pre-flight for WP-012. Verdict at the bottom.

The session continues the WP-001…WP-010 session on Jeff’s “continue” after PR #37 merged. WORK_INDEX named the detection table as the next Phase 2 work but had no WP for it, so this session wrote WP-012. The checks below ran before the first build. This record was written down after the detection code was drafted, not before.


Pre-flight intent

Validating readiness for WP-012. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-010 ✅ Done 2026-11-13 (PR #37 merged) Scaffold builds and the pin is c553503d9d. The table is empty.
WP-005 ✅ Done 2026-11-13 Case File #2 is excluded, so it has no entry and must not match.
WP-006 ✅ Done 2026-11-13 Phantom is Gen 1.

Repo + disc state

Doc-vs-tree cross-check

Scope lock

Allowed paths (this repo):

docs/02-SCUMMVM-INTEGRATION.md   (§2, §3)
docs/work-packets/WP-012-detection-table.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-012-2026-11-14.md

Fork: engines/scooby/** only.

Forbidden: game data; changes outside engines/scooby/; pushing to the fork’s master.

Exit check: git diff --name-only origin/main..HEAD here; git diff --name-only upstream/master..scooby-engine in the fork.

Risk review

Risk Likelihood Impact Mitigation
Signature files spread over several directories (Jinx, Case File #1) high med Directory globs plus a scan depth of 3. Test from the disc root and from each game subdirectory.
False positive on a sibling title (Case File #2 and Activity Challenge also ship a Scooby.exe or MMFW files) med med Match three files on MD5 and size, and run detection on both discs.
Generation flag set but never read low med Add a debug line and start each title once.
Upstream AI policy (open decision from WP-010) — — Not settled here. Fork commits keep the same attribution as WP-010’s.

Verdict

Rationale: dependencies are done, the build trees exist, and every disc can be mounted for testing.

Prepared by: Claude (WP-001 session, continuing), on Jeff’s “continue” of 2026-11-14 Date: 2026-11-14


After execution — lessons learned

Lesson: test against the mounted disc, not the cache. tools/exes/ flattens each disc into one directory and renames Case File #1’s executable to Scooby.exe. Detection depends on the real directory layout and file names, so only the mounted ISOs could test it. All seven mount without admin rights.

Lesson: game ids are shared across engines. --list-games lists only the engines that are built, but bare-name lookup on the command line searches every detection plugin, and at the pin all of them are built. phantom and jinx were taken. Grep engines/*/detection* for a candidate id before using it.

Lesson: a timeout around scummvm.exe under MSYS2 does not stop a running engine. The engine window stayed open past the timeout until Stop-Process. Starting a game for a check needs an explicit kill.

Scope note: the lock held. The fork change is one commit under engines/scooby/. The ISOs were mounted read-only and dismounted afterwards; nothing was copied out of them.