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.


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

Doc-vs-tree cross-check

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

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.