Pre-Flight — WP-045 — 2026-11-15

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

Written after PR #86 merged. Nothing on main, in the fork or in an open PR touched the General Store. The one open PR, #78, is about sprite hit types.


Pre-flight intent

Validating readiness for WP-045. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-044 ✅ Done 2026-11-15 The blanket, from the jail.
WP-043 ✅ Done 2026-11-15 The rusty hammer, from Jenny.
WP-023 ✅ Done 2026-11-14 Inventory and requires objects: the clock, the snake, the lantern.
WP-022 ✅ Done 2026-11-14 Movies: movie 2 breaks the clock.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (the General Store)
docs/work-packets/WP-045-general-store.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-045-2026-11-15.md

Fork: engines/scooby/**, staged by name. New files store_rooms.{h,cpp}; the check in chase_check.cpp. In the shared files: a factory line, the module entry, and a file’s volume and a clip’s position in sound.{h,cpp}.

Risk review

Risk Likelihood Impact Mitigation
A sound file’s volume is new to the fork. Only the music had one; 0x434B60 sets Sfx.dat’s. — low Every file starts at 100%, so nothing else changes. The check reads the file’s percent; the regression shows the other checks unchanged.
Hotspot 1 waits on real playback time. The check’s ticks run faster than the mixer. — low The check scares Scooby with no sound playing; the live run times the wait.

Verdict

Prepared by: Claude (WP-001 session, continuing), after PR #86 merged Date: 2026-11-15


After execution — lessons learned

Lesson: a sound file has a volume of its own. The original keeps a percent per file (+0x18) that every clip it plays starts at, not only the music’s. The fork now keeps one for each file; all three start at 100%.

Lesson: real time can’t be checked at tick speed. Hotspot 1 waits on how far its sound has played, and the check’s ticks run faster than the mixer. So the check scares Scooby with no sound playing, and the live run times the wait.

Lesson: a requires object a class only keeps is left to the default path. The front’s clock is built with the same call as the default path, so the class finds it by name, as the jail’s hotspots were in WP-044.

Scope note: one fork commit of 7 files staged by name. Besides the factory line and the module entry, sound.{h,cpp} gained a file’s volume and a clip’s position.