Pre-Flight — WP-083 — 2026-11-22

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

Nothing on main, in the fork or in an open PR touches ROOM_P30_WFR (checked 2026-11-22: no WP-083 packet, no wp-083 branch local or on origin before the claim; WP-082 is the unrelated upstream-submission-prep packet, now on main; the fork’s scooby-engine carries the WFR as the base class). The fork work chains off WP-081’s branch (wp-081-wizards-bedroom-veranda @ ce1846a567, PR #6, open), whose registration files (room_class.cpp, module.mk, scooby.h, chase_check.cpp) this WP also edits.


Pre-flight intent

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

Dependency check

The fourth sub-bullet of the Phantom audit’s group 8, Upstairs is the Wizard’s Rule Room — the wizard’s Simon-says potion game, the game’s largest class. It returns the gang to the wizard’s bedroom (WP-081), where the wizard’s clue is given.

Prereq Status in WORK_INDEX Locked on Notes
WP-018 ✅ Done 2026-11-14 Hotspots and exits.
WP-021 ✅ Done 2026-11-14 Clickables: the coloured ingredients answer a click.
WP-031 ✅ Done 2026-11-14 The accusation and clues — the wizard’s clue the return gives.
WP-057 ✅ Done 2026-11-16 Phantom’s new game and first room — the fixed-flag block.
WP-081 ✅ Done 2026-11-21 The wizard’s bedroom — reads the return from == ROOM_P30_WFR and gives the clue.

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

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md                       (the Wizard's Rule Room)
docs/work-packets/WP-083-wfr.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-083-2026-11-22.md

Fork: engines/scooby/**, staged by name. New wfr_rooms.{h,cpp} and wfr_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. The room already has its 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/.

Risk review

Risk Likelihood Impact Mitigation
The spinner runs off a scene’s fractional playback position (0x4358D0), which the fork’s scene player does not expose. high medium Drive the spinner on a tick counter over the same position table (0x46C5B0), the way Maria’s game (WP-064) drives its physics on a tick counter. Reconstruction, not a bit-for-bit copy; the contract (classes, clips, claims, music, exit) is what the self-test checks, the feel is for live play.
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 colours, WFR.Potion_, Wizards_Rule.Correct/Incorrect[/2/3], Knights.Glass_Breaks.1, Wizards_Rule.Music.
The player-input coupling is in the sub-sprite’s own click handlers, not a room event override (no +0x14 override). med medium Port the input as a room click(sprite) override on the coloured ingredients (the Maria idiom), reconstructed to the trace’s observable run; flagged for live confirmation.
The clue handoff. low low The WFR does not give the clue; the bedroom gives it on the return from == ROOM_P30_WFR (WP-081, already shipped). The WFR only returns to the bedroom.
Generation / disc conflation. low medium Every claim is Gen 1 Phantom; Showdown has no WFR and the check asserts it prints so.

Verdict

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


After execution — lessons learned