Pre-Flight — WP-023 — 2026-11-14
Filled-in copy of docs/reference/pre-flight for WP-023. Verdict at the bottom.
Written before engine code, on Jeff’s “continue” after PR #58 merged. The session that wrote WP-021 was told this session is taking the inventory, before any code was written.
Header
- WP:
WP-023 - Title: The inventory, the toolbar and requires objects (Gen 1)
- Pre-flight date:
2026-11-14 - Targets generation(s): 1
- Targets disc(s): Showdown, Phantom
Pre-flight intent
Validating readiness for
WP-023. Verdict only.
Dependency check
| Prereq | Status in WORK_INDEX |
Locked on | Notes |
|---|---|---|---|
| WP-018 | ✅ Done | 2026-11-14 | Inventory and requires placements exist with their kinds; the hit walk and the software cursor. |
| WP-019 | ✅ Done | 2026-11-14 | Global.Toolbar and pickupsfx play through the mixer. |
| WP-020 | ✅ Done | 2026-11-14 | Characters and the scene player say the wrong-item lines. |
| WP-021 | ✅ Done | 2026-11-14 | Game vtable +0x40 passes clicks to the room’s +0x14. |
Repo + disc state
- Project worktree on new branch
claude/wp-023fromorigin/main(359ddae), clean. - Fork on
scooby-engineatb45a790126, clean, in sync. - The data.
- Showdown places 7 inventory objects and 13 requires objects; Phantom places 10 and 19.
- All the toolbar’s sequences (
OBJ_TOOLBAR,OBJ_INVENTORY_BLOCK) are in both art files. - Phantom has three items with a
pickupmovie(10, 37 and 38).
- Both executables share the code. Phantom’s
Scooby.execarries the same toolbar ANIM names,Out of Inventory space, and everyGlobal.WRONG…scene name.
Doc-vs-tree cross-check
- scooby-exe “Inventory animations” names
script_Inventory_AddItem(0x406DD0) and theOBJ_TOOLBARandOBJ_CURSORsequences. The trace confirms both. - WP-021’s rollover row guessed that game
+0x238holds the item in use. The trace confirms it:+0x238is the game cursor, and+0xA0isANIM_CURSORARROW.
Scope lock
Allowed paths (this repo):
docs/02-SCUMMVM-INTEGRATION.md (§5 notes)
docs/formats/scooby-exe.md (inventory functions; the WP-021 rollover row)
docs/work-packets/WP-023-inventory.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-023-2026-11-14.md
Fork: engines/scooby/**, staged by name.
Risk review
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Tick order. The van’s drive and an item’s landing depend on the order of the sprite walk. | med | med | Trace 0x431130’s order (front to back: the toolbar before the room). Check tick counts against a reference that models it. |
| Overlap with the other session. | low | med | The scope was announced to it before coding; the fork files are new or engine-wide hooks. |
| Story rooms act on the events. | certain | low | Out of scope; the events are logged, and the base room does nothing with them, as in the original. |
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: trace the update order, not just the updates. When an item lands depends on the van moving before the room’s objects in the same tick (0x431130 walks front to back, and the toolbar is in front). Modelling that order gave tick counts the reference could match exactly.
Lesson: a reference disagreeing is a question, not a verdict. Two first mismatches were the reference’s own bugs. It skipped characters with an explicit ID=simpleobject, and it hid a blocker that 0x407120 leaves shown on the van’s last tick. Re-reading the trace settled both before any engine code changed.
Lesson: don’t drive the mouse on a machine someone is using. The live run needs the game window in front. When another window took the focus, the harness stopped clicking. One screenshot that caught the other window was deleted.
Scope note: the lock held. One fork commit, staged by name. The other session was told the scope before coding. A stray empty file that a failed shell command left in the worktree root was removed before commit.