Pre-Flight — WP-028 — 2026-11-14
Filled-in copy of docs/reference/pre-flight for WP-028. Verdict at the bottom.
Written after PR #65 merged. The other session was told this scope before coding: Sign In and the new game here, the story rooms left to it.
Header
- WP:
WP-028 - Title: Sign In, players and the new game (Gen 1)
- Pre-flight date:
2026-11-14 - Targets generation(s): 1
- Targets disc(s): Showdown, Phantom
Pre-flight intent
Validating readiness for
WP-028. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-026 | ✅ Done | 2026-11-14 | Saves hold the profile; a player is a save. |
| WP-027 | ✅ Done | 2026-11-14 | Room classes; the title and New Mystery lead to Sign In; the level select starts the story. |
Repo + disc state
- Project worktree on new branch
claude/wp-028fromorigin/main, clean. - Fork on
scooby-engineat714e4cd7b7, clean, in sync. - Both titles’ Sign In rooms. The room, its placements and the font are in both art files. The
Sign_Inclips are in both sound files. Phantom’s Sign In functions match Showdown’s byte for byte with addresses masked.
Scope lock
Allowed paths (this repo):
docs/formats/scooby-exe.md (Sign In and the new game)
docs/work-packets/WP-028-sign-in.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-028-2026-11-14.md
Fork: engines/scooby/**, staged by name.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Players don’t map to slots. | med | med | A player is a save whose description is a valid name; the list ignores other saves and the autosave. |
| The check touches real saves. | low | high | The checks read an empty scratch saves folder and never delete; the live runs use their own folder. |
| Phantom’s new game differs. | certain | low | Its +0x4C isn’t traced: the shared reset only, said plainly. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing), after PR #65 merged Date: 2026-11-14
After execution — lessons learned
Lesson: a check that never lists saves can’t catch a list that finds none. WP-026’s checks and live test saved and loaded by slot number, so the missing kSimpleSavesNames went unseen until Sign In’s list came up empty. Every save path a player uses needs to be in a live run: the list as well as the slot.
Lesson: read the bytes when the decompiler drops an argument. Ghidra showed the input calls without their argument; the bytes show push 0x12 for the delete key and push 5 for the skip. That turned “some key” into input slot 18.
Lesson: compare the second title’s code before writing its half. Masked byte comparison showed Phantom’s Sign In is Showdown’s code, function by function, and that its new-game story function is not. The docs say which half is traced for Phantom instead of assuming both.
Scope note: the lock held. One fork commit, staged by name; the WP-026 save-name fix rides along because Sign In can’t list players without it, and is called out in the result.