Pre-Flight — WP-026 — 2026-11-14
Filled-in copy of docs/reference/pre-flight for WP-026. Verdict at the bottom.
Written on Jeff’s “continue” after PR #62 merged. The other session holds WP-025 (hiding the toolbar per room class) and was told this scope before coding. Both touch
inventory.cppandscooby.cppin different places; whichever lands second rebases onto the other.
Header
- WP:
WP-026 - Title: The player profile, and ScummVM saves that hold it (Gen 1)
- Pre-flight date:
2026-11-14 - Targets generation(s): 1
- Targets disc(s): Showdown, Phantom
Pre-flight intent
Validating readiness for
WP-026. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-020, WP-021, WP-022 | ✅ Done | 2026-11-14 | Exits taken, clickable states and movies seen, kept so far for the session only. |
| WP-023, WP-024 | ✅ Done | 2026-11-14 | The inventory, snacks and suspects met. |
Repo + disc state
- Project worktree on new branch
claude/wp-026fromorigin/main(96c3918), clean. - Fork on
scooby-engineat550cbb48fa, clean, in sync. WP-025 isn’t pushed yet. - No original save to test against. The original has never been run here, so there’s no
.savfrom it. The reference writes one by the traced rules.
Doc-vs-tree cross-check
- Integration §8 asks for ScummVM’s save dialogs with consistent
MetaEngineFeatureflags, and prefers the original’s format. It also asks that a state saved before a room change restore after a restart. The profile is the original’s format, and the live test restarts withsave_slot. - scooby-exe “Save games” was listed as not traced. This WP traces it.
Scope lock
Allowed paths (this repo):
docs/02-SCUMMVM-INTEGRATION.md (§8 implementation notes)
docs/formats/scooby-exe.md (the player profile)
docs/work-packets/WP-026-profile-saves.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-026-2026-11-14.md
Fork: engines/scooby/**, staged by name.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
ScummVM’s INIFile differs from the Win32 profile API in key validity or case. |
med | med | The import test uses an original-format file with CRLF and odd values. |
| The live test writes into Jeff’s ScummVM save folder. | high | low | savepath points at a scratch folder. |
| Conflict with WP-025. | med | low | Separate spots in shared files; rebase before pushing. |
Verdict
- READY TO EXECUTE
- NOT READY
Prepared by: Claude (WP-001 session, continuing), on Jeff’s “continue” of 2026-11-14 Date: 2026-11-14
After execution — lessons learned
Lesson: save the original’s own record, not a new format. The original’s profile is a plain INI file. Holding its text in the ScummVM save gives the original’s format for free, keeps the story’s keys before they’re modelled, and lets an original .sav load.
Lesson: write the reference’s input as the original would, not as the engine would. The import file used CRLF lines, a lowercase yes, TRUE and on, an empty value, and keys the engine has never seen. Every one of them exercises a read rule that a file the engine wrote itself never would.
Lesson: commit, then rebase, when a teammate pushes first. WP-025 landed on the same files mid-WP. A local commit and a rebase onto it went through cleanly, and nothing was force-pushed. The checks were then run again on the combined code.
Scope note: the lock held. One fork commit, staged by name. The live test wrote its saves to a scratch folder, not Jeff’s ScummVM save folder.