EC-010: Phantom closeout — playthrough and gate-walk checklist

Paired WP: WP-087 Purpose: Keep the Phantom closeout to one start-to-credits run, the save and load cycle and the gate walk, without it turning into bug-fixing. Each defect is logged as a one-line gap and the run goes on; fixes are follow-up WPs. Only a hard progression blocker (no legal way forward) stops the run, and it becomes the top gap. Status: ✅ Run and verdict done (2026-12-02): GO. Jeff played Steps 0–2 on fork c1f2825762; the session did the build, detection, gates and self-tests. The flag is fork PR barefootbetters/scummvm#67, merged by Jeff on 2026-12-02 (6725e6e288).

Evidence labels (one per row, as WP-087 §Notes defines them): log (named file and quoted line), self-test (named trace), live — Jeff, live — session (computer use, screenshots kept), source (file and line). A row without one stays ☐.


Pre-flight


Step 0 — Detection and boot (time-box: 15 min)

Outcome: ✅ Detected, booted, signed in a new player and opened the drawbridge on the unmodified disc (K:).

Step 1 — Story playthrough (time-box: open; this is the run)

Play straight through. The table is the spine, from the Phantom audit’s order and the WPs that ported each room; the audit says its order “isn’t from a play-through”, so follow the game’s own flow and log what really happens. The packet that later played or re-checked each beat against the decompile is in the pre-flight’s coverage table; a ✗ here names it in the gap’s note. Beats 21–25 have no played packet on Phantom, so they carry the most risk. Result: ✅ as expected / ⚠ works, with drift / ✗ blocker or missing asset (log it in the gap list). Do not fix ✗ inline.

# Beat / rooms Expected Result Evidence Note / gap
1 Drawbridge → Town (WP-057) four flags set to the banners’ colours; the drawbridge comes down; the town opens ✅ log run1.log: drawbridge: banners 2 3 2 2, flags 1 2 1 4, puzzle not done (19:53:14) → the flags raised, the fanfare, drawbridge: puzzle done, drawbridge: down (19:53:51); town: from ROOM_P01_Drawbridge (19:57:18) none — passes
2 Souvenir shop (WP-058) the tokens buy the empty bottle; Fred puts it in the toolbar ✅ log: souvenir shop: the bottle bought, Fred fetches the bottle, the bottle in the toolbar (20:26:02–04) none — passes
3 Gardener’s house, garden, plaque (WP-060) the crest pressed in this game’s order opens the way to the garden ✅ log: gardener's house: the plaque's puzzle (20:19:06); garden plaque: OBJ_GARDEN_PLAQUE_LION pressed, 1 of 4 … OBJ_GARDEN_PLAQUE_DRAGON pressed, 4 of 4, all right 1, garden plaque: done, right (20:19:20); then the garden and the hedge maze none — passes
4 Room of doors + the Jester (WP-061) the locked dining-room door; the Jester’s balls, talk and clue ✅ log: room of doors: from ROOM_P04_Town; scream Room_of_Doors.Jane_Screaming5 (19:57:36); jester: his introduction (20:03:53, Big Head scene Souvenir_Shop_Room.220B_, 11 lines); jester: his clue, thanks, then the suspects and clues (20:36:02–08, JESTER_COUPON) none — passes
5 Throne room (WP-062) Jane’s movie; the duster to Jane; the ruby’s movie once the balls are found ✅ log: throne room: from ROOM_P11_Room_Of_Doors; Jane's movie (19:58:08); throne room: Jane takes the duster (20:01:22); throne room: the ruby in the throne (20:39:08), on to the second secret passage none — passes
6 Dining room + Maria’s game (WP-063, WP-064) trays balanced → MariaPuzzle; her clue, thanks and the burger ✅ log: dining room: … Maria's movie (20:04:46); maria: balanced, her game won (20:05:59); Generated clue 1 (MARIA_COUPON), dining room: from ROOM_Maria; Maria's clue (20:06:01) none — passes
7 Kitchen + Ewan’s quiz (WP-065, WP-066) the quiz won (level + 3) → EwanPuzzle; his clue; the grease fills the bottle ✅ log: Ewan’s quiz through Big Head (Kitchen.190A_, 20:11:49) to ROOM_Ewan; Ewan: answer … right ×3 (20:15:27–50); Generated clue 2 (RH_JESTER_TAP_SHOES) from EWAN, kitchen: from ROOM_Ewan; Ewan's clue (20:15:52); kitchen: Fred gets the grease (20:26:35) none — passes
8 Kitchen storage (WP-067) Fred takes the screwdriver, Daphne the shield; the door opens (movies 62–64) ✅ log: kitchen storage: Daphne has the shield (20:16:28), Fred has the screwdriver (20:16:36), the screwdriver in the door (20:16:41) none — passes
9 King’s armory + slide (WP-068) the duster; the full bottle → movie 7 into the slide ✅ log: king's armory: Scooby has the duster (20:00:52); king's armory: the bottle on the armour, Playing movie (7) (20:26:58), then ROOM_P20_Kings_Armory_Slide → ROOM_P15_Secret_Passage1 none — passes
10 Arenas + Brad’s game (WP-069, WP-070) the grindstone sharpens the shears (movie 40); Brad rises; the armour in order → BradPuzzle ✅ log: second arena: Brad rises (20:02:00); brad: the last piece off, his game won, Generated clue 0 (BRAD_GLOVE) (20:02:39–41); first arena: the shears on the stone, Playing movie (40) (20:23:12); second arena: the shield for Brad (20:22:44) none — passes
11 Secret passages, storage, treasury (WP-071) the wall of fire takes the level’s snacks + 2 (movie 39); Velma takes the rope ✅ log: storage room: Velma takes the rope, the rope in the toolbar (20:27:49–52); second secret passage: … the wall of fire burning, the fire wants 2 snacks, Playing movie (39), the fire out (20:39:18–44); ROOM_P16_Treasury (20:39:55) none — passes
12 Royal gallery + magic mirror room (WP-072) the mirror hung; the red ball; the snack gate to the mirror room ✅ log: royal gallery: the red ball found (20:17:19); royal gallery: the mirror hung (20:23:58); magic mirror room: from ROOM_P07_Royal_Gallery (20:24:22), on to ROOM_Wizards_Skull none — passes
13 Knights of the Snack Table (WP-073) serve to the quota → back to the dining room ⚠ live — Jeff (2026-12-02): “the mouse pointer is missing to control Shaggy. You can blindly move him and refill the root beer with mouse clicks” (with a screenshot of the room, no pointer). log run1.log: KST: round 4 served: 5 snacks; round 5 next, then exit OBJ_KST_EXIT: going to ROOM_P12_Dining_Room (20:09:08). Not a port defect: by source the port hides the pointer below row 100 as the original does (kst_rooms.cpp:57, :740, 0x45EDAC). Jeff’s call (2026-12-02): keep it visible anyway, so WP-140
14 Hedge maze + maze map (WP-074) the unicycle through the grid; the map’s four markers jump ✅ log: hedge maze: in from ROOM_P06_Garden at (2,4) dir 1, movie 41 (20:19:31), the ride cell by cell to ROOM_P23_Maze_Center; the maze map: OBJ_MAZEMAP_WELL clicked, to ROOM_P22_Well_In_Maze (20:35:43), OBJ_MAZEMAP_BALCONY clicked, to ROOM_P27_Below_Balcony (20:38:42) none — passes
15 Maze centre, fountain, well (WP-075) the token-gated fountain; the well out to the royal gallery; the yellow ball ✅ log: fountain: the piranha lunges, the piranha is fed (20:20:26–41); well: from ROOM_Maze_Map, visited, well: the yellow ball, movie 4 (20:35:43–52); well: the rope on the well, movie 59 (20:36:31) none — passes
16 Below the balcony + its door (WP-076) the sharp shears cut the vines; the blue ball to the Jester ✅ log: below balcony door: the blue ball found, movie 2 (20:21:17); below balcony: the sharp shears cut the vines (20:29:44), then ROOM_P26_Castle_Balcony none — passes
17 Wizard’s skull + library (WP-077) the spell book on the shelf shows the combination (movie 61); the skulls set → movie 6 ✅ log: wizard's library: the spell book reveals the combo, Playing movie (61) (20:31:33); wizard's skull: an attempt …, solved -> the wizard's bedroom, Playing movie (6) (20:31:53) none — passes
18 Princess’s bedroom + Mermaid’s cavern (WP-078) Daphne takes the spell book; the cavern echoes the wrong-item lines ✅ log: princess bedroom: Daphne has the spell book (20:30:57). live — Jeff (2026-12-02), in the cavern: “animations don’t show with clicks”; asked, “only this cavern, the one that should animate”. log run1.log 20:38:03: clickable OBJ_P21_MERMAID_HOTSPOT2 clicked … steps 6 sound SFX_P21_MERMAID_HOTSPOT2A, rests on ANIM_P21_MERMAID_HOTSPOT2B Not a port gap: WP-142 (✅ 2026-12-03) found the port draws HOTSPOT2 (A, the window lights; B, a bat crosses; C, the window goes dark). live — Jeff (2026-12-03): “the window lit and the bat flew, all three showed”. His report came at 20:38:00, before his first HOTSPOT2 click (20:38:03) and after two HOTSPOT3 clicks. HOTSPOT3 has no cels on the disc (self-test art check), so its click is sound only by data
19 Wizard’s bedroom + veranda (WP-081) the wizard met; the maze-map scroll; the veranda’s well ✅ log: veranda: the well, Veranda.290B_ (20:31:13); wizard's bedroom: the wizard clicked, to ROOM_P30_WFR movie 60 (20:32:20); after the WFR, wizard's bedroom: the scroll and Generated clue 3 (WIZARD_COUPON) from WIZARD (20:34:13); the maze-map scroll in the toolbar (OBJ_INV_MAZE_MAP) none — passes
20 Wizard’s Rule Room (WP-083, WP-094) the original’s game; back to the bedroom; the wizard’s clue; the accusation armed. Leaving without the clue plays movie 0xb (ported by WP-094) ✗ (the game) / ✅ (the exit) live — Jeff (2026-12-02): “I’m unable to select the potions to match the color pattern” (screenshot mid-song: the wizard dancing, the arrow over Scooby). log run1.log 20:32:55–20:34:13: wfr: from ROOM_P24_Wizards_Bedroom, 5 lives; five wfr: a beat missed, a glass breaks / wfr: N phrases missed of 5; wfr: back to the wizard's bedroom; Playing movie (11): 234 frames (0xB, no clue owned); then in the bedroom Generated clue 3 (WIZARD_COUPON) from WIZARD The bottles game couldn’t be played live: no phrase clean. Not a blocker, since losing returns to the bedroom and the wizard’s clue is given. WP-141. The movie-0xB exit: none, it passes (log)
21 Ghost spot(s) (WP-056) the pan, then on to Below Balcony from the five castle rooms, else the Town; not back to the room the ghost came in ☐ not reached log: no ghost-spot line in run1.log; no ghost came this run (the chance is 30% a room by default) Not exercised live. The self-test still covers it (WP-056). Stays ☐
22 Castle balcony (ROOM_P26_Castle_Balcony, base class) draws and exits like any base room ✅ log: ROOM_P26_Castle_Balcony entered four times (20:29:52 on), exits to the princess’s bedroom, the library and below the balcony none — passes
23 Final clue → accusation (WP-071, WP-031) the Princess clicked with the arrow sets FinalClue and opens the accusation (movie 55) ✅ log: treasury: the Princess, the final clue, Playing movie (55): 652 frames (20:39:57); suspects: Suspect_and_Clues.Solve_Game, 5 clues, the final one (20:40:51) none — passes
24 Big Head + the reveal (WP-031) the right suspect for this game revealed ✅ live — Jeff (2026-12-02): “reached the credits, Big Head showed Ewan.” log: the villain drawn at the new game is EWAN (every Generated clue … the villain EWAN line); suspects: BRAD accused, wrong; movie 15 (20:41:04); big head: Treasury.730A_ on BIG_HEAD_BG_P16, then ROOM_Credits (730 is the wrong-accusation verdict); credits: EWAN's movie 47 (20:41:58) The true villain is shown whoever is accused, as the original does (getAccusationMovie()). Brad was accused, so the right-accusation verdict (720) wasn’t seen this run
25 Credits (WP-030) roll to the end ✅ live — Jeff: six credits screenshots (TLC, WB, TerraGlyph, the cast, the legal page). log: credits: movie 58, rolling, 3350 to scroll, part 0 done, part 1 done, Credits.1000B_ (20:42:38–20:44:20), credits: part 2 done, credits: the game is over for J, new game, ROOM_Sign_In (20:45:33) none — passes. At the end J’s save is deleted and a new game starts, as the original does (options_rooms.cpp, CreditsRoom::leave())

Also note, on the way: the suspect board opened mid-game returns to the room (the WP-080 fix, shared), and Scrappy’s hints and the snack box work in Phantom’s rooms.

Outcome: ✅ The run reached the end credits on c1f2825762 (19:51–20:45, run1.log), in the game’s own order, with no progression blocker. Two gaps, none blocking, and one report that was not a gap:

Step 2 — Save and load (time-box: 20 min)

Jeff drove all three runs on fork c1f2825762, with the same config and save folder as run 1 (C:\pcloud\scooby-engine\verification\wp-087-2026-12-01\, logs run3.log, run4.log and run5.log). Player J is new: run 1’s J was deleted at the credits, so run 3 signed in as J into a new slot. Jeff said “I saved as J instead of K”; the name doesn’t change the check.

Outcome: ✅ Save, quit, relaunch and load restore the room and progression. The save after a load writes, and the next load returns the newer room. Not covered: inventory across a load (J held nothing), and ScummVM’s own save/load menus.

Step 3 — Acceptance-gate walk (time-box: 45 min)

Re-run each check against the fork commit recorded in Pre-flight; do not quote WP-079 or WP-082.

Gate Check Result Evidence
1 Clean build against the pin; 0 warnings in engines/terraglyph/ ✅ log (make.log): 1b5db3fc40, the pin c553503d9d an ancestor, GCC 16.2.0 under UCRT64, make exit 0, no warning in engines/terraglyph/ (the two warnings are upstream’s gob and halestorm)
2 Registered; --list-engines shows terraglyph ✅ log: --list-engines → terraglyph TerraGlyph
3 Detects phantomknight; Showdown’s disc still showdown; an unrelated folder finds nothing ✅ log: M:\scooby and M:\ → terraglyph:phantomknight; L:\scooby (Showdown) → terraglyph:showdown; a scratch folder holding readme.txt and a Scooby.exe that is really Windows’ notepad.exe → ScummVM could not find any game
4 grep -rnE '(fopen\|std::ifstream\|CreateFile[AW]?)' engines/terraglyph/ → none outside comments ✅ source: no match at all (exit 1)
5 All audio through Audio::Mixer; no platform audio calls ✅ source: a grep for waveOut, DirectSound, dsound, mmsystem, PlaySound, SDL audio, OpenAL and XAudio finds two comments describing the original (sound.cpp:109, sound_archive.cpp:179) and no call; the mixer is used in sound.cpp, movie.cpp and options_rooms.cpp
6 Bink through Video::BinkDecoder; grep -rni binkw32 engines/terraglyph/ → none ✅ source: no binkw32; Video::BinkDecoder at movie.cpp:76 and :171
7 Single-threaded: grep -rnE '(pthread_\|std::thread\|CreateThread\|_beginthread)' engines/terraglyph/ → none ✅ source: no match (exit 1)
8 Style: re-assessed on the built commit (the engine’s files have changed throughout since WP-082, so its assessment isn’t quoted) ⚠ (no blocker) source, re-run on all 160 files. devtools/code_check.sh still doesn’t exist. clang-format 23.1.5 --dry-run --style=file (the root .clang-format) flags 149/160 files; upstream’s own engines at the same commit drift as much (director 51/53, sci 16/19, bolt 8/15), so whole-file drift isn’t the bar, as WP-082 found. The checks ScummVM’s conventions name are clean: tab indentation (5 space-led lines, each a continuation aligned under a parameter list), no trailing whitespace, no throw/try/catch, no STL headers, if ( spacing throughout, K&R braces, CamelCase types. A targeted upstream review stays with WP-082
9 GPL-3.0 header on every engines/terraglyph/*.{cpp,h} ✅ source: 160/160 files carry “GNU General Public License … either version 3” in their first 25 lines
10 phantomknight declared ADGF_TESTING (expected ✗ until Step 4’s GO flip) ✗ (expected) source: detection_tables.h:78, ADGF_UNSTABLE at 1b5db3fc40

The engine’s self-test on Phantom, at the built commit (self-test, 2026-12-01 11:58–12:00): scummvm.exe --debuglevel=11 --logfile=… phantomknight with enable_unsupported_game_warning=false, a scratch savepath and path=K:\, stopped once its last line (debug tools check hits) was written, 101 s in. Log: C:\pcloud\scooby-engine\verification\wp-087-2026-12-01\selftest-phantom-1b5db3fc40.log (192,562 lines, 1,999 check lines). It ran to the end with no crash, assertion or error. The summary lines:

Its only WARNINGs are the KST’s own data warnings, ported from the original’s messages (kst_rooms.cpp:88, :144, :192; 18 lines), raised while the KST check builds its room. That’s no gap. This is the per-room check against seeded states, not a playthrough; it isn’t diffed line by line against an earlier baseline here, since the played packets each did that for their own sections.

Re-run on c1f2825762, the commit the live run played (2026-12-02, 20:52–20:57). The tip moved after the first walk (see Pre-flight), so each mechanical gate and the self-test ran again:

The self-test (selftest-phantom-c1f2825762.log, 192,539 lines, 2,002 check lines, 82 s) shows:

Its warnings are only the same 18 KST data lines.

Per-variant Phantom record (detection MD5 over the first 5000 bytes, from detection_tables.h; SHA-256 from tools/exes/README). Confirm each against the mounted disc:

File Size (bytes) Detection MD5 Full-file SHA-256 Confirmed
Scooby.exe 483,377 c36473c3204c10d75eebf0241e35aee8 619EA6871A2FD305CA30814C438F9552DB85FDADB65AD7BE5B82A1656AF807ED ✅ log, 2026-12-01, M:\scooby
TGIFILE.ART 114,386,944 a0c28dd3e75241794cb19481496bd919 AC24E9AE88CD7D15B1137ADBAA331FD987D8CE54B94A5A808042665BA012BF04 ✅ log, 2026-12-01, M:\scooby
object.ini 28,788 aafe695ae3f6c2db91858661e28e1c6c 67B9EF7967B1EDEB7331D3D41F9EFABC326F4740A6C8D7A8781965CFE9D67870 ✅ log, 2026-12-01, M:\scooby\OBJECT.INI (upper case on the disc)

Hashed by this session with .NET’s MD5 over the first 5,000 bytes and Get-FileHash -Algorithm SHA256 over the whole file. Sizes, MD5s and SHA-256s all match detection_tables.h:73–75 and the README.

Outcome: ✅ Gates 1–7 and 9 pass on 1b5db3fc40 and again on c1f2825762, the commit the live run played. Gate 8 is ⚠ with no blocker: whole-file clang-format drift is no worse than upstream’s own engines, and the conventions’ checks are clean. Gate 10 is ✗ until Step 4’s flag. The self-test is clean on both commits.

Step 4 — Verdict, and on a GO the release (time-box: 45 min)

Outcome: ✅ GO (Jeff, 2026-12-02). The verdict is in WP-087 §Result. The flag is fork PR barefootbetters/scummvm#67, commit 8cb9617318 on the fork tip 37b75bf77e, merged by Jeff on 2026-12-02 (6725e6e288).


Definition of done

Out-of-scope captures

Temptations during the run, logged here as one-liners for later WPs:

-