Pre-Flight — WP-039 — 2026-11-15
Filled-in copy of docs/reference/pre-flight for WP-039. Verdict at the bottom.
Written after PR #79 merged. WP-039 was claimed with the other session before work started; nothing on main, in the fork or in an open PR touched the bank or the clock.
Header
- WP:
WP-039 - Title: Showdown’s bank: the vault door and its clock (Gen 1)
- Pre-flight date:
2026-11-15 - Targets generation(s): 1
- Targets disc(s): Showdown (Phantom has no bank)
Pre-flight intent
Validating readiness for
WP-039. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-038 | ✅ Done | 2026-11-15 | The vault the door opens onto, and the bank’s other classes. |
| WP-023 | ✅ Done | 2026-11-14 | Requires objects and the toolbar’s items. |
Repo + disc state
- Project worktree on new branch
claude/wp-039fromorigin/main, clean. - Fork on
scooby-engineata0f34080ec, clean, in sync. - Showdown only.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the bank, the vault clock, the mouse flags)
docs/work-packets/WP-039-bank.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-039-2026-11-15.md
Fork: engines/scooby/**, staged by name. The classes go in vault_rooms.{h,cpp} and the check in chase_check.cpp, all this session’s; the shared files don’t change.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| The dial needs the button held and released. | medium | medium | The fork keeps the button’s state (isMouseDown); the check drives it tick by tick, and the live run uses test_script’s down, move and up. |
| The time is drawn at random. | high | low | The check compares each level’s set of times over 80 draws and that the scene names the time kept; the live dial run starts from a profile with a known time. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing), after PR #79 merged Date: 2026-11-15
After execution — lessons learned
Lesson: read the mouse flags before porting a click. Game +0x20 has the button held, going down and coming up as separate bits (0x4359C0). The dial depends on the difference; earlier rooms read the release where the fork acts on the press.
Lesson: an unknown sequence name is not a broken room. The dial’s time is a name built from the game’s state. On a state with no time drawn, putting it in the claim made the room fail to load, and the setup check lost the room’s line. Setting it with startAnim in enter() leaves the sprite blank, as the original does.
Lesson: names in angle brackets need code formatting. The site drops <TYPE>-style names outside code spans as HTML; three earlier ones had vanished from the built page unnoticed.
Lesson: a toolbar item can’t always come from start_items. The broken clock has no toolbar sequence in object.ini; a profile’s [Inventory] slot with its sequences puts it in the toolbar as the game does.
Scope note: one fork commit, 3 files staged by name, all this session’s; the shared files didn’t change.