Pre-Flight — WP-064 — 2026-11-16

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

Nothing on main, in the fork or in an open PR touched Maria’s game.


Pre-flight intent

Validating readiness for WP-064. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-063 ✅ Done 2026-11-16 The dining room, which reads MariaPuzzle and leads here.
WP-055 ✅ Done 2026-11-16 Pie Noon: a set piece with engine sprites and the mouse.
WP-037 ✅ Done 2026-11-15 The artifact jigsaw: dragging pieces with the mouse.
WP-025 ✅ Done 2026-11-14 The toolbar hidden in set pieces; ROOM_Maria is on its list.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (Maria's game; WP-063's forward note)
docs/work-packets/WP-064-maria-game.md
docs/work-packets/WP-063-dining-room.md   (its forward note)
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-064-2026-11-16.md

Fork: engines/scooby/**, staged by name. New files maria_rooms.{h,cpp} and the check in maria_check.cpp. In the shared files: a factory line, the module entries, the check’s declaration and its call.

Risk review

Risk Likelihood Impact Mitigation
Physics in floats: the original keeps positions and speeds as 32-bit floats. — medium The fork keeps them as float; the reference rounds to 32 bits after each step. The check’s cases use values that come out exact.
The items are random. — medium The check tests what holds for every draw: counts, weights, a balanced split, the ranges. The live run fixes random_seed, so a second run meets the items the first logged.
An item’s stop step (+0x88) isn’t set by its constructor. — low The fork starts it at −1, so an item’s IDLE loops until it is first thrown. Noted as a gap.

Verdict

Prepared by: Claude (WP-001 session, continuing) Date: 2026-11-16


After execution — lessons learned

Lesson: a fixed seed turns a random game into a scripted one. ScummVM’s random_seed made two runs draw the same items, so the second could play the game to a win from the first’s log.

Lesson: test what holds for every draw. The check never compares random values; it checks counts, ranges and that a balanced split exists, 40 times a level.

Lesson: count a timer’s ticks from where it is read. +0x24C is compared before it counts down, so 72 means 73 ticks; WP-063’s note had 72.

Scope note: one fork commit of 7 files staged by name: the game and its check in new files, a factory line, the module entries, the check’s declaration and its call.