Pre-Flight — WP-029 — 2026-11-14
Filled-in copy of docs/reference/pre-flight for WP-029. Verdict at the bottom.
Written on Jeff’s “take the story rooms”. The WP-001 session took Sign In and the new game as WP-028 at the same time. It was told this WP’s number and files before any code, and asked to keep the story state (
0x42DBC0’s fields) in one place both packets use.
Header
- WP:
WP-029 - Title: Each room’s own setup, and Town Center (Gen 1)
- Pre-flight date:
2026-11-14 - Targets generation(s): 1
- Targets disc(s): Showdown, Phantom (the setup); Showdown (Town Center)
Pre-flight intent
Validating readiness for
WP-029. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-024 | ✅ Done | 2026-11-14 | Feeding Scooby; the snack box. |
| WP-026 | ✅ Done | 2026-11-14 | The profile, where each room’s keys go. |
| WP-027 | ✅ Done | 2026-11-14 | Room classes, built once per name. This WP adds the hooks story rooms need. |
| WP-028 | 🚧 In progress (WP-001 session) | — | The new game sets the story’s MoaningActive, which Town Center reads. |
Repo + disc state
- Project: branch
claude/wp-029-room-setupfromorigin/main(316935b). - Fork: branch
wp-029-story-roomsin this session’s own fork worktree, from714e4cd7b7(WP-027). - Trace output: each title’s room-class vtables, each class constructor’s call to
0x40B0F0, and Town Center’s functions, in the session scratchpad.
Doc-vs-tree cross-check
- The story rooms are much more than one packet: about 65 KB of class code per title, against 2–7 KB a room. This WP is the groundwork (every room’s setup and the hooks) and the first story room. The other story rooms follow in packets of a few rooms each.
- No earlier packet traced a room’s music or its opening scene. The fork played neither.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (each room's setup; Town Center)
docs/work-packets/WP-029-room-setup.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-029-2026-11-14.md
Fork: engines/scooby/**, staged by name.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
WP-028 edits the same files (scooby.{h,cpp}, profile.cpp, room_class.cpp) |
high | med | Tell it first; new files for new code; small hooks elsewhere; rebase onto its push. |
| Openings now hold input after entry, which the earlier checks didn’t expect | high | low | Run them; mark the opening played where a check needs input at once, and say so. |
| The music’s variant rotation depends on a clip ending, but music clips loop | med | low | Implement as traced; note that with looping clips it never fires. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude, on Jeff’s “take the story rooms” of 2026-11-14 Date: 2026-11-14
After execution — lessons learned
Lesson: a “packet” named after a whole area needs sizing first. “The story rooms” are about 65 KB of class code per title. Measuring each class’s overridden functions before writing the WP gave the split: groundwork and one room here, a few rooms per packet after.
Lesson: scenes run at the clips’ pace, not the ticks’. A check that ticks as fast as it can measures a scene’s length in wall-clock time, not game time. The checks name each scene as it starts and skip it; the live test drives Escape (key 27).
Lesson: read the section argument, not the call. WP-028 put room classes’ keys in Game; 0x4376E0 passes the room object’s name. The profile table now says so.