Pre-Flight — WP-061 — 2026-11-16
Filled-in copy of docs/reference/pre-flight for WP-061. Verdict at the bottom.
Nothing on main, in the fork or in an open PR touched the room of doors’ class or the Jester.
Header
- WP:
WP-061 - Title: Phantom’s room of doors and its Jester: the locked door, the balls and his clue (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-061. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-060 | ✅ Done | 2026-11-16 | The crest and PlaqueSeen, which the Jester’s talk reads. |
| WP-057 | ✅ Done | 2026-11-16 | Phantom’s story values: the balls, CrestSequence0–3. |
| WP-036 | ✅ Done | 2026-11-15 | A suspect’s clue, GIVES and the thanks to the suspects. |
| WP-031 | ✅ Done | 2026-11-14 | Clues, suspects met, and Big Head. |
Repo + disc state
- Project worktree on new branch
claude/wp-061frommain(WP-060 merged), clean. - Fork on
scooby-engineat7aaee53315, clean, in sync. - Phantom.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (the room of doors, the Jester, Phantom's clues)
docs/work-packets/WP-061-room-of-doors.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-061-2026-11-16.md
Fork: engines/scooby/**, staged by name. New files doors_rooms.{h,cpp} and the check in doors_check.cpp. In the shared files:
clues.cpp: each title’s clue tables;scooby.h: whether a room change is asked for;- a factory line, the module entries, the check’s declaration and its call.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| The clue giver had only Showdown’s tables; the Jester’s clue would have been one of Showdown’s red herrings. | — | high | Phantom’s 0x4305C0 and 0x430F00 traced: the same rule, its own tables, two red herrings a suspect. Showdown’s checks must stay identical. |
| The Jester is shared by four rooms’ classes. | — | medium | Ported as its own class (JesterControl) for the room of doors now and the others later. |
| His talk chains eleven scenes on done flags. | — | medium | The check records the scenes in order, with and without the plaque seen. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing) Date: 2026-11-16
After execution — lessons learned
Lesson: never call the code under test inside the format() that prints its results. C++ evaluates the arguments in no set order; GCC read the results first.
Lesson: a shared member is its own class. The Jester’s logic sits in four rooms’ classes (their ticks call 0x4122E0); ported once as JesterControl.
Lesson: check a helper’s game before reusing it. giveClue had only Showdown’s tables; Phantom’s suspects would have got Showdown’s red herrings.
Scope note: one fork commit of 8 files staged by name: the room, the Jester and their check in new files, Phantom’s clue tables in clues.cpp, a getter in scooby.h, a factory line, the module entries, the check’s declaration and its call.