Pre-Flight — WP-058 — 2026-11-16
Filled-in copy of docs/reference/pre-flight for WP-058. Verdict at the bottom.
Nothing on main, in the fork or in an open PR touched the souvenir shop’s class. A session on character idle states works in
character.{h,cpp}, which this WP doesn’t touch.
Header
- WP:
WP-058 - Title: Phantom’s souvenir shop: the tokens buy Fred a bottle (Gen 1)
- Pre-flight date:
2026-11-16 - Targets generation(s): 1
- Targets disc(s): Phantom (Showdown has no such room)
Pre-flight intent
Validating readiness for
WP-058. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-057 | ✅ Done | 2026-11-16 | Phantom’s story values (Screaming) and the matched functions. |
| WP-023 | ✅ Done | 2026-11-14 | The toolbar, the tokens and the bottle. |
| WP-021 | ✅ Done | 2026-11-14 | Clickables, for the hotspot. |
Repo + disc state
- Project worktree on new branch
claude/wp-058frommain(WP-057 merged), clean. - Fork on
scooby-engineat35eea2ae51, clean, in sync. - Phantom.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the souvenir shop)
docs/work-packets/WP-058-souvenir-shop.md
docs/work-packets/WP-055-pie-noon.md, WP-056-ghost-spot.md (correction notes)
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-058-2026-11-16.md
Fork: engines/scooby/**, staged by name. New files souvenir_rooms.{h,cpp} and the check in souvenir_check.cpp. In the shared files: a factory line, the module entries, the check’s declaration and its call, and RoomScript::checkOpening() (the base room’s +0x3C) split out of setup() so a class can run it again.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
The opening set after the base entry. The class sets it and runs +0x3C again; the fork ran that only inside its setup. |
— | medium | checkOpening() split out unchanged; the room check and the setup check show its effect. |
| Fred’s fetch waits on him being idle, no scene and the opening done. | — | medium | The check enters with no opening and checks the tick he starts and the tick the bottle arrives. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing) Date: 2026-11-16
After execution — lessons learned
Lesson: rerun before blaming a change for a diff. The imported clue name flipped between two runs of one build; two earlier WPs had taken the same flip for their own effect.
Lesson: bound a check’s loops by the engine’s own constants. Reading eight toolbar slots of four read past the array and made the check report tokens that weren’t there.
Lesson: a clickable starts on its placement’s state, not on its A.
Scope note: one fork commit of 9 files staged by name: the class and its check in new files, RoomScript::checkOpening() split out of setup(), a factory line, the module entries, the check’s declaration and its call.