Pre-Flight — WP-044 — 2026-11-15
Filled-in copy of docs/reference/pre-flight for WP-044. Verdict at the bottom.
Written after PR #84 merged. Nothing on main, in the fork or in an open PR touched the jail. The open PRs are #78, about sprite hit types, and #85, about library matching (WP-011).
Header
- WP:
WP-044 - Title: Showdown’s jail: the blanket, the bed and the hole under it (Gen 1)
- Pre-flight date:
2026-11-15 - Targets generation(s): 1
- Targets disc(s): Showdown (Phantom has no jail)
Pre-flight intent
Validating readiness for
WP-044. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-041 | ✅ Done | 2026-11-15 | The dark tunnel, where the hole leads. |
| WP-023 | ✅ Done | 2026-11-14 | Inventory and requires objects: the blanket. |
| WP-021 | ✅ Done | 2026-11-14 | Clickables: the bed, the door, the window. |
| WP-020 | ✅ Done | 2026-11-14 | Scenes and the exit handler. |
Repo + disc state
- Project worktree on new branch
claude/wp-044fromorigin/main, clean. - Fork on
scooby-engineatdf7b297066, clean, in sync. - Showdown only.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the jail)
docs/work-packets/WP-044-jail.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-044-2026-11-15.md
Fork: engines/scooby/**, staged by name. New files jail_rooms.{h,cpp}; the check in chase_check.cpp. In the shared files: a factory line and the module entry.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
The hole scene’s done flag. 0x40B400 takes a pointer it sets as the scene ends; the fork’s scenes have none. |
— | medium | The class watches for 150D_ to end after the base tick, where the original sets the flag; the check times the drop from it. |
| The jail has no exit object, yet its class has an exit handler. | — | low | The check calls the handler directly; the live run leaves by the hole. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing), after PR #84 merged Date: 2026-11-15
After execution — lessons learned
Lesson: a class that keeps a clickable doesn’t change how it’s built. The original’s classes build such clickables with the same call as the default path, so their depth still comes from priority=. The fork’s claim sets the claim’s depth, which is 0 unless the class gives one. A clickable a class only needs to find is best left to the default path and found by name.
Lesson: an unclaimed neighbour caught what the reference shared. The reference had the same wrong depth for the claimed hotspots as the code, so they matched. Only hotspot 3, which goes through the default path, disagreed, and the trace settled it.
Lesson: a scene’s done flag can be kept by the class. 0x40B400 sets a flag as the scene ends, in the base tick. The class watches for its scene to end in its own tick, which comes right after, so the drop starts on the same tick as in the original.
Scope note: one fork commit of 5 files staged by name. Besides the factory line and the module entry, no shared file changed.