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
- Pre-flight verdict READY: pre-flight-WP-087-2026-11-30 (docs
main@9cc89c4, forkscooby-engine@e1dd7bea63; updated 2026-12-01 at fork1b5db3fc40, after WP-133 and the draw-order fixes #58 and #59, §Update). If the fork tip has moved past that, note what landed; gates 1–9 run on the commit actually built. - Fork worktree from
tools/New-ForkWorktree.ps1 -Branch wp-087-phantom-closeout, notC:\dev\scummvm(shared, and other sessions switch it). Built there with only this engine enabled:./configure --disable-all-engines --enable-engine=terraglyph && make -j32under MSYS2 UCRT64. Record the fork commit, the pin as its ancestor, and warnings inengines/terraglyph/(gate 1). 2026-12-01 (log): worktreeC:\claude-worktrees\scummvm-wp-087-phantom-closeout, branchwp-087-phantom-closeout(pushed as the claim), atscooby-engine1b5db3fc40122f745cd0360e593e4787226ee24a, the tip the pre-flight update named; nothing landed after it.git merge-base --is-ancestor c553503d9d HEAD: the pin is an ancestor. Configure:Engines (builtin): TerraGlyph, GCC 16.2.0.make -j32exit 0, 10:50:55–10:54:53; 0 warnings inengines/terraglyph/. The build’s two warnings are upstream code,engines/gob/dataio.cpp:238andaudio/mac/halestorm.cpp:266. Logsconfigure.logandmake.log, kept in the session’s scratchpad. - Phantom disc image mounted, unmodified (the drive letter is whatever Windows gives). Record the drive and
Scooby.exe’s SHA-256; it must be619EA6871A2FD305CA30814C438F9552DB85FDADB65AD7BE5B82A1656AF807ED(tools/exes/README). 2026-12-01 (log):C:\pcloud\scooby-engine\Scooby Doo Phantom of the Knight.isowas already attached when this session started, asM:(CDFS, labelPhantom, 621,656,064 bytes,phantom.cdpresent), and Showdown’s image asL:. Both were left mounted rather than remounted, since another session may hold them; CDFS is read-only.M:\scooby\Scooby.exeSHA-256 =619EA6871A2FD305CA30814C438F9552DB85FDADB65AD7BE5B82A1656AF807ED✓. Remounted, 2026-12-01 ~11:55 (log): both images were dismounted between 10:56 and 11:54 by something outside this session; a self-test launch loggedGame data path does not exist or is not a directory (M:\). This session remounted Phantom withMount-DiskImage -Access ReadOnlyasK:(CDFS, labelPhantom), re-hashedK:\scooby\Scooby.exe(619EA687…07ED✓) and pointed the run’s config atpath=K:\. Every run from here on is onK:. - Who drives Part A is recorded: Jeff, or a session under computer use (and who watches).
2026-12-02: Jeff drove the engine window himself (live — Jeff: “I played the game”). This session asked to drive it under computer use, but its computer-use tool couldn’t grant the worktree build (it resolves only apps in its own list). The session launched the window,
run1.log, and read the log; every “live — Jeff” below is his words in this conversation. - Tip moved before the run. By 2026-12-02 the fork’s
scooby-enginewas atc1f282576257de6621fcbbcd7d4ee18ee46d7edf: Hotspot Magnet, WP-106 and WP-107 (#61, #62), adding about 2,000 lines inengines/terraglyph/, among themwfr_rooms.cpp; and WP-135–137, GUI grid theming (#63–#65).wp-087-phantom-closeoutwas fast-forwarded to it and rebuilt (make -j32exit 0, 19:48–19:50; 0 warnings inengines/terraglyph/; the same two upstream warnings). The live run is onc1f2825762. Gates 1–9 and the self-test above ran on1b5db3fc40; Step 3 records their re-run onc1f2825762. - Capture folder set outside this repo (scratchpad or the verification run’s folder); nothing from the disc is staged.
2026-12-01:
C:\pcloud\scooby-engine\verification\wp-087-2026-12-01\holds the run’s config (wp087.ini: a freshsavepathundersaves\,enable_unsupported_game_warning=false,path=M:\), its saves and its logs. Build logs stay in the session’s scratchpad.
Step 0 — Detection and boot (time-box: 15 min)
scummvm.exe --detect --path='<drive>:\scooby'→terraglyph:phantomknight(gate 3). Evidence: the command’s output. 2026-12-01 (log):--detect --path='M:\scooby'→terraglyph:phantomknight Scooby-Doo! Phantom of the Knight (Windows/English) M:\scooby\. The disc rootM:\gives the same.- Title movies play, then Sign In. Evidence: log
run1.log(2026-12-02,c1f2825762,--debugflags=script,graphics --debuglevel=1):ROOM_Title_Screenfrom 19:51:16, thensign in: 0 playersandROOM_Sign_In drawn(19:51:39). - New player → new game; Phantom’s story values are set (WP-057): the banner colours, the crest order and the skull combination for this game. Evidence (the
new gamelog lines): log:sign in: play as J,new game,sign in: J is a new player(19:52:17–23); this game’s values as the rooms read them:drawbridge: banners 2 3 2 2, the skullcombination 0 1 3 3, the villainEWAN. - The first story room,
ROOM_P01_Drawbridge, opens with its opening and music. Evidence: log:ROOM_P01_Drawbridge drawnanddrawbridge plays Drawbridge.Flag_Loop(19:53:14), after the difficulty screen. (Music by ear wasn’t reported separately.)
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.
- The suspect board, mid-game: ✅ log: opened from five rooms and back each time (
suspects: 1 clues, back to ROOM_P14_Arena2…suspects: back to ROOM_P22_Well_In_Maze, afterSuspect_and_Clues.SHAGGY.Click_On_Back_Button, 20:36:18–26). - The snack box: ✅ log:
toolbar: the snack box flashes(19:57:10, 20:24:13, 20:39:36), and snacks paid to the fire (the fire wants 2 snacks). - Scrappy’s hints: ☐ not exercised: no hint line in
run1.log. Scrappy read each clue on the board (Global.Scrappy.Clue.*). -
The draw order by eye (#58, #59): ✅ live — Jeff (2026-12-02), asked about the gallery, the KST, the maze and its centre, the WFR and the wizard’s rooms: “The draw order was fine”. (The cavern’s animation, beat 18, was reported missing; WP-142 found it draws.)
- Every beat reached, with evidence; no missing asset, crash, assertion or dead end. (Beat 21, the ghost spot, wasn’t reached: no ghost came. The engine logged no
WARNING, error or assertion inrun1.log, 6,021 lines, and exited 0.)
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:
- beat 13, the KST’s hidden pointer: faithful to the original; Jeff’s call is WP-140;
- beat 18, the cavern’s animation reported not shown: WP-142 found the port draws it and Jeff’s re-check passed, so not a gap;
- beat 20, the WFR bottles not playable live: WP-141. Losing still gives the wizard’s clue, and the movie-
0xBexit plays.
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.
- Save mid-run in a Phantom room, before a room change. ✅ Log (
run3.log): 21:04:10signed in as J, slot 1; 21:06:14exit OBJ_P01_TO_P04: going to ROOM_P04_Town,profile saved: 6036 bytes, StartRoom ROOM_P04_Town,player J saved in slot 1: No error. The slot filephantomknight.001is stamped 21:06:14. Live — Jeff: “run 3 done, in the Town”. - Quit the engine fully; relaunch as a new process. ✅ Log:
run3.logcloses at 21:06:40 afterquit: the line is over: quitting;run4.logopens at 21:08 as a new process. - Load (Sign In’s existing player); the room and progression restore. ✅ Log (
run4.log): 21:08:33sign in: J is saved in slot 1; loading it,profile read: StartRoom ROOM_P04_Town, 1 movies seen, 1 exits taken, thenplayer J not saved in slot 1: the slot is loading(WP-126’s guard). Live — Jeff: “started in the Town”. Inventory wasn’t exercised: J held nothing yet. - The write after a load (WP-126’s criteria 2 and 4). ✅ Log (
run4.log): 21:08:50exit OBJ_P04_TO_P06: going to ROOM_P05_Gardeners_House; 21:08:51profile saved: 6065 bytes, StartRoom ROOM_P05_Gardeners_House,player J saved in slot 1: No error. The slot file’s time moved from 21:06:14 to 21:08:51. Live — Jeff: “went to a new room”. Then a new process loaded it again (run5.log): 21:10:10profile read: StartRoom ROOM_P05_Gardeners_House, 1 movies seen, 2 exits taken, thennot saved in slot 1: the slot is loading, and the slot file stays at 21:08:51 after that load. Live — Jeff: “opened in the Gardener’s House”. - Optional: the headless
save N/load Nverbs intest_scripton a Phantom room. Not run.
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:
cel check: 5810 cels, 0 bad;movie check: 56 movies, 0 bad;inventory check: 58 checks, 0 stuck;hint check: 82 hints, 54 snacks, 0 stuck;accusation check exit: button 3, click to ROOM_P01_Drawbridge(the WP-080 board exit, on Phantom).
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:
- gate 1 ✅ (log):
makeexit 0, no warning inengines/terraglyph/(make2.log, the scratchpad); - gate 2 ✅ (log):
terraglyph TerraGlyph; - gate 3 ✅ (log):
K:\scooby→terraglyph:phantomknight; Showdown’s image, dismounted by then outside this session, was remounted read-only for the check,G:\scooby→terraglyph:showdown, then dismounted again; the scratch folder →could not find any game; - gates 4, 6, 7 ✅ (source): no match;
- gate 5 ✅ (source): the same two
DirectSoundcomments, no call; - gate 8 ⚠, no blocker (source):
clang-formatdrift 155/165, the 5 new files being Hotspot Magnet’s; 10 space-led lines, every one a continuation under a parameter list or a table (hotspot_magnet.{h,cpp}andmagnet_provider.cppadd five); 0 trailing whitespace, 0 exceptions, 0 STL headers, 0if(; - gate 9 ✅ (source): 165/165 files GPL-3+;
- gate 10 ✗, expected (source):
ADGF_UNSTABLE.
The self-test (selftest-phantom-c1f2825762.log, 192,539 lines, 2,002 check lines, 82 s) shows:
cel check: 5810 cels, 0 bad;movie check: 56 movies, 0 bad;inventory check: 58 checks, 0 stuck;hint check: 82 hints, 54 snacks, 0 stuck;accusation check exit: button 3, click to ROOM_P01_Drawbridge;- the new
magnet core check examples: 802 checks, 0 failed,connectivity: 15 checks, 0 failedandtargeted: 4 checks, 0 failed.
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)
- Verdict and gap list written in WP-087 §Result, each gap tagged with its owner WP; the WP-083 movie
0xbvariant has its line. - GO only: in the run’s fork worktree (
wp-087-phantom-closeout), fast-forwarded to the fork tip37b75bf77e(#66, WP-107, landed after the live run),phantomknight→ADGF_TESTINGatdetection_tables.h:78, commit8cb9617318. The build has 0 warnings inengines/terraglyph/(logmake2.log). Log, re-run on this build:--list-engines→terraglyph;K:\scooby→terraglyph:phantomknight; Showdown’sShowdown.isoandScooby Doo Showdown in Ghost Town.iso→terraglyph:showdown; the Feb 2001 pressing (… (2001).iso,NonZero.exe) → no game, as before (it isn’t in the table); the scratch folder → no game. Gate 10 ✅ (source):ADGF_TESTING. Self-test (selftest-phantom-8cb9617318.log, 192,540 lines, 76 s): the same summary lines as onc1f2825762(cels 5810/0, movies 56/0, inventory 58/0, hints 82/54/0, accusation exit button 3, magnet 802/15/4 with 0 failed), the same 18 KST warnings, no error. #66’s changes weren’t played live. Fork PR barefootbetters/scummvm#67, merged by Jeff on 2026-12-02 (6725e6e288). - GO only:
scummvm-wiki-scooby.md— Phantom’s row, its known limitations, and theADGFlines updated.
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
- Steps 0–3 recorded with an evidence label on every filled row.
- WP-087’s exit criteria each marked met, not met or n/a, with the evidence named.
- Verdict written; on a GO, the flag PR merged and the wiki-page draft updated.
- WP-087’s row in WORK_INDEX updated.
Out-of-scope captures
Temptations during the run, logged here as one-liners for later WPs:
-