Pre-Flight — WP-075 — 2026-11-19
Filled-in copy of docs/reference/pre-flight for WP-075. Verdict at the bottom.
Nothing on main, in the fork or in an open PR touched
ROOM_P23_Maze_Center,ROOM_P44_Fountain_CloseuporROOM_P22_Well_In_Maze.
Header
- WP:
WP-075 - Title: Phantom’s maze interior — the centre, the fountain and the well (Gen 1)
- Pre-flight date:
2026-11-19 - Targets generation(s): 1
- Targets disc(s): Phantom (Showdown has none of these rooms)
Pre-flight intent
Validating readiness for
WP-075. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-018 | ✅ Done | 2026-11-14 | Hotspots and exits: the hotspots and the ways between the rooms. |
| WP-021 | ✅ Done | 2026-11-14 | Clickables: the hotspots and the piranha answer a click. |
| WP-023 | ✅ Done | 2026-11-14 | The inventory: the rusty shears, tokens, burger, ball, rope and bottle. |
| WP-057 | ✅ Done | 2026-11-16 | Phantom’s new game and first room. |
| WP-074 | ✅ Done | 2026-11-19 | The hedge maze and maze map: the entry pair these three connect to (the centre’s start flag, the map’s well marker). |
Repo + disc state
- Project worktree on branch
claude/wp-075-3dc52dfrommain(WP-074 #125 merged,5a476be), clean. - Fork on
scooby-engineat9a0897017d(WP-074), clean, in sync. - Phantom.
ghphwarm (PhantomScooby.exe, md5c5fdb9a0c8f26dfec98f0148ecf505fa, imagebase0x400000).
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the maze interior)
docs/work-packets/WP-075-maze-interior.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-075-2026-11-19.md
Fork: engines/scooby/**, staged by name. New files maze_interior_rooms.{h,cpp} and maze_interior_check.cpp; a factory line, the module entries, the check’s declaration and its call; one line in maze_rooms.cpp so the hedge maze reads the centre’s start flag.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Ghidra’s underscored labels mask the dotted clip names (the WP-074 trap). | — | medium | Read the string bytes (StrAt) and probe the disc’s sound index; the numbered scene lines are dotted and ship with a speaker suffix, so the check tests them by prefix (Sound::hasClipPrefix), not exactly — an exact probe says “found 0” of a name that is right. |
| The audit’s method list is a starting point, not the source. | — | low | Verified against the binary: the opening (Fountain.250D_) is the fountain’s, not the centre’s (the centre and well pass the empty opening); room_setup already carries this. |
| Shared misreading (reference and engine encode the same wrong trace). | — | medium | Two sessions traced all three rooms independently and agree; the clip names are cross-checked against the disc sound index, not just the engine/reference diff. |
The vtable slot semantics (+0x24 exit, +0x30 opening). |
— | low | Anchored on the throne class (0x45EC1C); confirmed by the independent trace. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-075 session) Date: 2026-11-19
After execution — lessons learned
Lesson: the WP-074 clip-name trap recurs, and the fix is the disc sound index, not the diff. The numbered scene lines are Center_of_Maze.250X_, Fountain.250D_, Well_in_Maze.290_ — dotted, and shipping with a speaker suffix (…250B_1_VELMA, …250D_1_NARRATOR). A first pass probed them with exact findClip and the reference agreed on “found 0” while the names were right. Probing the disc’s sound index directly (probe_audio) showed they ship by prefix, and the check switched to Sound::hasClipPrefix for the voice lines (and kept exact findClip for the sfx, which ship under their exact id). A 0-diff with “found 0” proves engine == reference, not that either is faithful — the independent disc read is what closes it.
Lesson: the audit is a starting point; the binary is the source. The group-7 table tagged ROOM_P23_Maze_Center with “opening”, but the constructor’s 4th argument is the empty string for the centre (and the well) and Fountain.250D_ for the fountain — the opening is the fountain’s. The engine’s own room_setup table already had it right; the audit’s column did not. Trusting the trace over the audit avoided porting an opening onto the wrong room.
Lesson: a second independent trace is cheap insurance against a shared misreading. Two sessions traced all three classes in Ghidra, independently, and their reads agreed on every clip name, field offset and the split decision. Combined with the engine == reference line-for-line match and the disc sound-index probe, that is three independent authorities, not one — the WP-073/074 anti-shared-misreading move carried up to the session level.
Scope note: one fork commit of files staged by name: the three room classes and their check in new files, a factory line, the module entries, the check’s declaration and its call, and one line in maze_rooms.cpp so the hedge maze reads the centre’s MazeCenterFromGarden flag (completing WP-074’s centre-start link, which the WP-074 check already covered by passing the flag explicitly).
Pre-existing observation (not this WP): the WP-069 arena check pile level-0 line is non-deterministic between runs — the Brad-room transition sometimes completes within the check’s tick budget (to ROOM_Brad_SPOOKY) and sometimes does not (to -). It is timing/RNG-sensitive and in the regression exclusion list; it flipped between the WP-074 and WP-075 runs. A separate fix for the arena check’s level-0 budget would make it deterministic.