Pre-Flight — WP-081 — 2026-11-21

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

Nothing on main, in the fork or in an open PR touches ROOM_P24_Wizards_Bedroom or ROOM_P28_Veranda (checked 2026-11-21: no WP-081 packet, no wp-081 branch local or on origin before the claim; WP-079 / WP-080 are Showdown’s closeout and suspect-board fix, unrelated; the fork’s scooby-engine is at 6e5ff59cea with WP-078 / PR #4 merged).


Pre-flight intent

Validating readiness for WP-081. Not implementing, not editing engine code, not annotating Ghidra. Verdict only.

Dependency check

The third sub-bullet of the Phantom audit’s group 8, Upstairs pairs the wizard’s bedroom (the wizard’s lair: where he is met, and where the gang accuses him on the return from the Wizard’s Rule Room) with the veranda (the well and its line over Big Head). Neither depends on a sibling Upstairs room’s code; the WFR they border is the fourth sub-bullet, split off to WP-083.

Prereq Status in WORK_INDEX Locked on Notes
WP-018 ✅ Done 2026-11-14 Hotspots and exits: the veranda’s well hotspot.
WP-021 ✅ Done 2026-11-14 Clickables: the bedroom’s wizard answers a click.
WP-023 ✅ Done 2026-11-14 The inventory: OBJ_INV_MAZE_MAP (the scroll).
WP-031 ✅ Done 2026-11-14 The accusation: ROOM_Suspect_Chooser, Global.Thank_You_, Big Head — the bedroom’s endgame and the veranda’s Big Head visit.
WP-057 ✅ Done 2026-11-16 Phantom’s new game and first room — the fixed-flag block these rooms read.

Rule check: every prereq is ✅ Done. Phase ordering holds — this is a Phase 4 (game-logic) room port on top of the resource and front-end lanes already closed.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md                       (the wizard's bedroom and veranda)
docs/work-packets/WP-081-wizards-bedroom-veranda.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-081-2026-11-21.md

Fork: engines/scooby/**, staged by name. New wizards_bedroom_rooms.{h,cpp} and wizards_bedroom_check.cpp; a factory line and include in room_class.cpp, the two module.mk entries, and the check’s declaration (scooby.h) and call (chase_check.cpp). No edit to a sibling room expected. Both rooms already have their room_setup entry — no room_setup edit.

Forbidden: game data from the discs (copyright); engines/scooby/** beyond the files above; ScummVM upstream paths outside engines/scooby/; ROOM_P30_WFR (WP-083).

Risk review

Risk Likelihood Impact Mitigation
Ghidra’s underscored labels mask the dotted clip names (the WP-074/075 trap). med medium Probe the voice lines by prefix (Sound::hasClipPrefix). The bedroom’s Wizards_Bedroom.Scroll and Global.Thank_You_; the veranda’s Veranda.270D_ / 290_ / 290B_ / 290X1_ / 290X2_.
strcmp polarity (the WP-077 trap): the veranda’s arrive guards on the room left with 0x433460, not 0x433360. med high Decompile both helpers: 0x433360 returns true on equal, 0x433460 on not equal. The veranda plays its intro when from != "ROOM_Big_Head".
The wizard flow (met, clue, GIVES, the armed accusation) spans enter and tick. low medium Reproduce against the dining-room / arena idiom already in the fork (meetSuspect, giveClue, act("GIVES"), the ROOM_Suspect_Chooser / Global.Thank_You_ exit).
The maze-map scroll’s visibility (FUN_00432120 on the placement’s +0x14). low low +0x14 is the sprite’s hidden flag (room.cpp); the scroll shows only while the wizard’s clue is given and the map isn’t held, when Wizards_Bedroom.Scroll plays; otherwise hidden.
Generation / disc conflation. low medium Every claim is Gen 1 Phantom; Showdown has neither room and the check asserts it prints so.

Verdict

Prepared by: Claude (WP-081 session, drafting + execution in one) Date: 2026-11-21


After execution — lessons learned