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

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

Written after PR #74 merged. WP-037 was claimed with the other session before work started; it wasn’t on main, in the fork or in an open PR.


Pre-flight intent

Validating readiness for WP-037. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-036 ✅ Done 2026-11-15 The close-up, which sends the gang here and reads ArtifactsBuilt.
WP-025 ✅ Done 2026-11-14 The artifact rooms already slide the toolbar off.

Repo + disc state

Scope lock

Allowed paths (this repo):

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

Fork: engines/scooby/**, staged by name. The class goes in chase_rooms.{h,cpp} and its check in chase_check.cpp, both this session’s. In the shared files, one hook so a carried piece can hide the cursor without holding input, told to the other session.

Risk review

Risk Likelihood Impact Mitigation
Dragging is new input. medium medium The check moves the mouse through the engine’s own hover and click path, tick by tick; the live run carries every piece with test_script’s move.
The original’s positions are floats. low low Every start, place and mouse position is a whole pixel, and an offset kept from them stays whole, so whole-pixel arithmetic gives the same tests.

Verdict

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


After execution — lessons learned

Lesson: read the move and the snap in the same tick. The snap tests where the piece was before this tick’s move, so it comes a tick after the mouse brings the piece close. And a piece carried exactly onto its place never snaps: the move is skipped when it is there, and the next click sends it back to its start. The decompile hid both; the disassembly showed them.

Lesson: drive a drag through the engine’s own input. The check moves the mouse with the engine’s hover and click path, one tick at a time, so the piece numbering, the hit test and the cursor are the ones a player gets. The same points then drove the live run.

Lesson: a class holding several rooms needs their names. Nine rooms share the class, and each keeps its keys in its own section, so the factory hands each instance its room’s name.

Scope note: one fork commit, 5 files staged by name. The class went in chase_rooms with the close-up, and its check in the chase check. The shared files got one hook (hidesCursor), told to the other session.