Pre-Flight — WP-020 — 2026-11-14

Filled-in copy of docs/reference/pre-flight for WP-020. Verdict at the bottom.

Written before engine code, on Jeff’s “continue” after PR #55 merged. WP-019 named the exit transition as next; this pre-flight follows the trace that scoped it.


Pre-flight intent

Validating readiness for WP-020. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-017 ✅ Done 2026-11-14 The sequence player and the 36 Hz tick.
WP-018 ✅ Done 2026-11-14 Placement kinds, hit tests and the exit click, which this WP replaces with the transition.
WP-019 ✅ Done 2026-11-14 Clips play through the mixer. Clip headers already carry the lip-sync fps and byte count.

Repo + disc state

Doc-vs-tree cross-check

Scope lock

Allowed paths (this repo):

docs/02-SCUMMVM-INTEGRATION.md   (§6 implementation notes)
docs/formats/scooby-exe.md       (function table, exitobject keys, transition section)
docs/formats/audio-archives.md   (lip-sync paragraph)
docs/work-packets/WP-020-exit-transition.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-020-2026-11-14.md

Fork: engines/scooby/**, staged by name.

Risk review

Risk Likelihood Impact Mitigation
Timing depends on audio. Lines end when their clips end, so a headless check can’t replay a scene tick for tick. high med Split the check. The scene’s lines are resolved by name (deterministic). The walk-off is a pure tick simulation, checked tick by tick against a reference. Playback and lip sync are checked live.
Story overrides block exits in the original (Town Center’s first exits, for example). high low Out of scope; the default handler runs everywhere until per-room code exists. Documented as a deviation.
The talking sequence is driven by lip-sync bytes; a shape past the sequence’s last step would draw out of range. low med Clamp the step and count how often the data would need it.

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: split timing-dependent behaviour into a deterministic plan and a live run. A scene’s length depends on its clips, but which lines it has and how the walk-off unfolds do not. The level-3 check covers the plan for every exit; one live run covers playback and lip sync.

Lesson: read what the constructor reads, not what the ini carries. 125 exit sections have character= and direction=. The trace shows they are dead keys, and that the per-character keys drive the walk.

Lesson: keep scratch edits the same length. Detection checks object.ini’s size, so the malformed-input test edited values in place at the same length.

Scope note: the lock held. One fork commit, staged by name. The scratch game folder was deleted, and the ISOs were dismounted.