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

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

Written after PR #80 merged. WP-040 was first claimed for the strong-box rooms, then, once those proved unreachable, for Boot Hill; the other session confirmed it had none of the remaining rooms planned.


Pre-flight intent

Validating readiness for WP-040. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-034 ✅ Done 2026-11-14 Street 1, where the brick is used.
WP-029 ✅ Done 2026-11-14 Room classes, RoomHooks, openings.
WP-020 ✅ Done 2026-11-14 The default exit handler.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (Boot Hill; the strong-box rooms' note)
docs/work-packets/WP-040-boot-hill.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-040-2026-11-15.md

Fork: engines/scooby/**, staged by name. New files boot_hill_rooms.{h,cpp}; the check in chase_check.cpp. In the shared files, a factory line, the module entry, and two calls on RoomScript (the snacks needed, the ghost now).

Risk review

Risk Likelihood Impact Mitigation
A wrong grave brings the ghost. — low The check turns the ghost’s chance on a click off, so only the class’s own call shows it; the live run uses ghost_chance=0 likewise.
The openings’ played flag. medium medium 0x40C6B0 sets only the name; the class keeps the played flag where the fork’s setOpening would clear it.

Verdict

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


After execution — lessons learned

Lesson: check that a room can be reached before porting it. The strong-box rooms have a class and the factory builds them, but nothing in the game sends the gang there. A search of the art, object.ini and the executable for their names took minutes and saved a packet of unreachable code.

Lesson: an opening’s name and its played flag are set apart. 0x40C6B0 sets only the name; a class that wants the opening again clears the flag itself, as Boot Hill’s dig branch does. The fork’s setOpening clears it every time, so a class that only names an opening has to keep the flag.

Scope note: one fork commit, 6 files staged by name. The shared files got the factory line, the module entry, and RoomScript::setSnacksNeeded and showGhost; the other session confirmed none of these rooms were its.