Pre-Flight — WP-035 — 2026-11-14

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

Written after PR #71 merged. The other session confirmed WP-035 (Chase B, Chase C, and later the P25A close-up) is this session’s and that it isn’t touching those rooms; its own packets are Showdown’s streets and the clue API.


Pre-flight intent

Validating readiness for WP-035. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-029 ✅ Done 2026-11-14 Room classes, RoomHooks, openings.
WP-020 ✅ Done 2026-11-14 The default exit handler and the room change.
WP-022 ✅ Done 2026-11-14 Movies, which two run-offs lead through.
WP-023 ✅ Done 2026-11-14 Requires objects and the toolbar’s items.
WP-025 ✅ Done 2026-11-14 The chase rooms already hide the toolbar.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (the chase's classes)
docs/work-packets/WP-035-chase.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-035-2026-11-14.md

Fork: engines/scooby/**, staged by name. New files chase_rooms.{h,cpp} and chase_check.cpp; in the shared files, a factory line, one RoomHooks hook (arrive, room vtable +0x2C) and an optional movie on exitTo, each told to the other session.

Risk review

Risk Likelihood Impact Mitigation
The random openings. high low rand() & 3 can’t be matched draw for draw; the check enters each room 40 times and compares the set of openings seen.
The close-up (P25A) depends on the clue API. — low Out of scope until the other session pushes giveClue; the run-offs into and out of it are in.

Verdict

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


After execution — lessons learned

Lesson: compare a random choice as a set. B’s openings come from rand() & 3, which the reference can’t draw in step with. Entering each room 40 times and comparing the set of openings seen checks both the rule and that every choice is reachable; a fixed opening shows as a set of one.

Lesson: a live click has to wait for the opening. The first live clicks in B6 and B5 did nothing: the base room holds input for the 100 ticks before an opening and while it plays. The run-off logic was fine; the script clicked too early. Clicking after the opening, both worked.

Lesson: PowerShell variable names ignore case. The live script’s loop variable $s overwrote the scratch path $S, and every run failed to find its folder. Loop variables get names nothing else uses.

Scope note: the lock held: one fork commit staged by name, rebased onto the other session’s 93cc76ae2f before pushing. The shared files got the factory line, the arrive hook and the exitTo movie the other session agreed to; its setup check’s chase lines change accordingly.