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.
Header
- WP:
WP-012 - Title: Detection table with a per-entry generation flag
- Pre-flight date:
2026-11-14 - Targets generation(s): 1, 2 and 3 (detection only)
- Targets disc(s): Showdown, Phantom, Jinx, Case File #1 (positive); Case File #2, Case File #3 and Activity Challenge (negative)
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
- Project worktree on new branch
claude/wp-012fromorigin/main(0d5eab5), clean. - Fork clone
C:\dev\scummvmonscooby-engineat12669217cf, clean, in sync withorigin/scooby-engine. - Build trees from WP-010 (enabled and disabled) still in the session scratchpad, so builds are incremental.
- All seven ISOs under
C:\pcloud\scooby-engine\mount withMount-DiskImage. That allows a test against the real disc layouts rather than the flattenedtools/exes/cache.
Doc-vs-tree cross-check
- Integration §3 still lists Case File #2 as Gen 3 and asks for five ISOs. WP-005 excluded it. The table gets four entries, and §3 is updated.
- Integration §3’s Gen 2/3 signature files name
Mummy*.MMF,HD.MMA,HD.MMP,libexpat.dlland loose*.xmlfiles. On the discs there are no loose XML files: Case File #1’s XML is inside its MMFW archives (tools/exes README). The entries use the files on the discs. - The tree has a fourth candidate:
ScoobyDoo.iso(Activity Challenge). The vision doc assumes it is a different engine. It is included as a negative test only; classifying it is not this WP.
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
- READY TO EXECUTE
- NOT READY
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.