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

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

Written after PR #83 merged. Nothing on main, in the fork or in an open PR touched the stage; the one open PR, #78, is about sprite hit types.


Pre-flight intent

Validating readiness for WP-043. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-031 ✅ Done 2026-11-14 The clue book and the suspects met (0x40A8B0, 0x40A930).
WP-022 ✅ Done 2026-11-14 Movies between rooms.
WP-021 ✅ Done 2026-11-14 Clickables, which the levers are.
WP-020 ✅ Done 2026-11-14 The default exit handler and its scenes.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (the stage)
docs/work-packets/WP-043-stage.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-043-2026-11-15.md

Fork: engines/scooby/**, staged by name. New files stage_rooms.{h,cpp}; the check in chase_check.cpp. In the shared files: a factory line, the module entry, and a clickable’s callback (room_script).

Risk review

Risk Likelihood Impact Mitigation
The four levers share one object name. The room event can’t tell them apart. — medium The callback gets the clickable itself, as 0x401440 passes it; the room reads the lever’s digit from its sequence, as 0x418F50 does.
The levers are switched off by hit type. The fork’s clicks must miss a sprite with hit type 0. low medium The check shows the hit types; the live run clicks the lever where the hit test has to find it.

Verdict

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


After execution — lessons learned

Lesson: identical objects are told apart by their sequences. The four levers and the sandbags share one object name each; the class reads the digit in each one’s sequence (the last character, or the sixth from the end for SANDBAG2_DROP). A hook that passes only the object name can’t serve them, so the clickable’s callback passes the sprite.

Lesson: a check’s direct click skips the hit test. clickClickable registers a click without testing the sprite’s hit type, so it can’t show that a switched-off lever ignores clicks. The check reads the hit types instead, and the live run’s real click hit the lever.

Scope note: one fork commit of 7 files staged by name, then a one-line comment fix. Besides the factory line and the module entry, the shared files got the clickable’s callback.