Pre-Flight — WP-051 — 2026-11-15
Filled-in copy of docs/reference/pre-flight for WP-051. Verdict at the bottom.
Written with WP-049 (PR #97) and WP-050 (PR #98) open; this WP’s docs branch stacks on them. Nothing on main, in the fork or in an open PR touched ROOM_P12_Saloon or ROOM_Artie.
Header
- WP:
WP-051 - Title: Showdown’s saloon and Artie: the gag, the keys and the chains (Gen 1)
- Pre-flight date:
2026-11-15 - Targets generation(s): 1
- Targets disc(s): Showdown
Pre-flight intent
Validating readiness for
WP-051. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-050 | ✅ Done (PR #98 open) | 2026-11-15 | The branch this one stacks on. |
| WP-031 | ✅ Done | 2026-11-14 | Suspects met and clues: Artie’s. |
| WP-021 | ✅ Done | 2026-11-14 | Clickables: the hotspots and the keys. |
| WP-019 | ✅ Done | 2026-11-14 | Sound and lip sync: the moans and Velma’s line. |
Repo + disc state
- Project worktree on new branch
claude/wp-051fromclaude/wp-050, clean. - Fork on
scooby-engineatee1420a9c5, clean, in sync. - Showdown only.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the saloon and Artie)
docs/work-packets/WP-051-saloon.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-051-2026-11-15.md
Fork: engines/scooby/**, staged by name. New files saloon_rooms.{h,cpp}; the check in chase_check.cpp. In the shared files:
- a factory line and the module entry;
- the character’s state 0xE and set (
character.{h,cpp}); - the class’s buffer sprite (
room.{h,cpp}); - the idle timer’s restart and two getters (
room_script.{h,cpp}).
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| The keys are drawn at random at a new game. | — | medium | The check sets them (hideKeys); the live run reads them from the profile it writes. |
| The room’s own buffer sprite changes the draw and hit order of what it holds. | — | medium | Modelled in the loader (wantsGroup), checked by parent and depth. |
| Shared files (the character, the loader). | — | medium | Additions only; the earlier checks and the room check must stay identical. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing), with PRs #97 and #98 open Date: 2026-11-15
After execution — lessons learned
Lesson: leaving a room can rewrite what the check just read. The saloon’s leave sets ClickableOpen from the hotspots’ states, so keys read while the gang is still in the saloon are lost. Read a class’s keys where the original reads them, outside its room.
Lesson: a hit point belongs to a state. A clickable’s sequences can have their own polygons; take a click point with the state the run will meet.
Lesson: a test profile needs every key its rooms read. A missing count reads 0, as in the original, and can leave a room with nothing to do.
Scope note: one fork commit of 11 files staged by name. In the shared files: the character’s state 0xE and set, the loader’s buffer sprite, the idle timer’s restart and two getters, the factory line and the module entry.