Pre-Flight — WP-059 — 2026-11-16
Filled-in copy of docs/reference/pre-flight for WP-059. Verdict at the bottom.
Nothing on main, in the fork or in an open PR touched a character’s states 2–5 or room vtable
+0x28. WP-058 (open) ports a room class and touches neither.
Header
- WP:
WP-059 - Title: Characters’ idles: blink, the two idles and the room’s idle line (Gen 1)
- Pre-flight date:
2026-11-16 - Targets generation(s): 1
- Targets disc(s): Showdown and Phantom
Pre-flight intent
Validating readiness for
WP-059. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-020 | ✅ Done | 2026-11-14 | Characters and their states, which the idles add to. |
| WP-024 | ✅ Done | 2026-11-14 | The speech lock, which the idle line takes. |
| WP-057 | ✅ Done | 2026-11-16 | The drawbridge, whose class overrides the idle line. |
Repo + disc state
- Project worktree on new branch
claude/wp-059-idlesfrommain(WP-057 merged), clean; the number claimed by draft PR #109. - Fork: a worktree on branch
scooby-idlefromscooby-engineat831ce91cc3(WP-058’s), clean. The WP-001 session commits to the main checkout at the same time, so this work stays out of it. - Both discs mounted. Showdown’s
Scooby.exeis in the Ghidra project; Phantom’s is imported into a scratch project outside the repo.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the idles, the idle line, the cross-references to them)
docs/work-packets/WP-059-idle-states.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-059-2026-11-16.md
Fork: engines/scooby/**, staged by name.
character.{h,cpp}: states 2–5, the countdown, a click,saywith the speech lock,isBusyfor Scooby.room_script.{h,cpp}: the idle random source, the base idle line, the hook, a character’s click, the check’s state log.drawbridge_rooms.{h,cpp}: its+0x28.room.cpp: a character’s open hand.scooby.{h,cpp}: the click, the source after the checks, the check’s call.- New
idle_check.cpp, and itsmodule.mkentry.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Every check moves. Idles change characters’ states in every room, so the earlier checks’ scenes and walks would no longer match their references. | — | high | The earlier checks run without an idle source, as they run without the ghost; the live game and the idle check get one. |
| The random draws. The original draws for every state change; one draw out of place shifts every later one. | — | high | The check seeds a source of its own, and the reference replays ScummVM’s xorshift draw for draw. |
| A line’s end is wall-clock time. Talk ends when the mixer says the clip is over. | — | medium | The check stops a line as it starts, so the talk ends on the next tick. |
| Phantom’s code is assumed to match. | — | medium | Phantom’s functions decompiled and compared with Showdown’s; its two +0x28 overrides found by scanning its room vtables. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (idle-states session, started by the WP-001 session) Date: 2026-11-16