Pre-Flight — WP-056 — 2026-11-16

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

Nothing on main, in the fork or in an open PR touched ROOM_Ghost_Spot’s class. A session on voice streams works in sound.{h,cpp}, which this WP doesn’t touch.


Pre-flight intent

Validating readiness for WP-056. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-027 ✅ Done 2026-11-14 Room classes, and the title, whose pan this one shares.
WP-025 ✅ Done 2026-11-14 The toolbar hidden in the ghost spot.
WP-021 ✅ Done 2026-11-14 The ghost, which leads here.
WP-032 ✅ Done 2026-11-14 The music’s fade, which the entry stops.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (the ghost spot; the music fade's caller)
docs/formats/tgifile-art.md      (Phantom's two rooms' sizes)
docs/work-packets/WP-056-ghost-spot.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-056-2026-11-16.md

Fork: engines/scooby/**, staged by name. New files ghost_spot_room.{h,cpp} and the check in ghost_spot_check.cpp. In the shared files: a factory line, the module entries, the check’s declaration in scooby.h and its call at the start of the chase check.

Risk review

Risk Likelihood Impact Mitigation
Where it goes on to. The fork had no class, so the ghost spot stayed for good. The original goes on to the room game vtable +0x64 names, which differs by title. — high Both titles’ +0x64 traced: Showdown’s in Ghidra, Phantom’s in a scratch import of its Scooby.exe outside the repo.
Phantom is the same code only if its bytes say so. — medium The tick and entry compared byte for byte (apart from addresses) with Showdown’s; the reference reads each title’s constants from its own Scooby.exe.
The checks before the chase check pass through the ghost spot (the room check, the click check’s ghost). — medium The room check against WP-020’s must stay identical; the other checks against WP-055’s run.

Verdict

Prepared by: Claude (WP-001 session, continuing) Date: 2026-11-16


After execution — lessons learned

Lesson: trace the game’s vtable calls, not just the room’s. The ghost spot’s own code is 128 instructions; where it goes is in game vtable +0x64, and that is where the titles differ.

Lesson: compare the other title’s bytes when its code is said to be the same. Phantom’s class matched byte for byte, apart from addresses, but its +0x64 is another function entirely. A scratch import of Phantom’s Scooby.exe, outside the repo, decompiled it in a minute.

Lesson: a header’s size isn’t the background’s. Phantom’s two panning rooms say 1280 wide and draw 1920.

Scope note: one fork commit of 7 files staged by name: the class and its check in new files, a factory line, the module entries, the check’s declaration and its call.