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

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

Written after PR #69 merged. The other session confirmed WP-032 is this session’s, with no unpushed edits in the files it hooks; its own packet, WP-033, is Showdown’s streets.


Pre-flight intent

Validating readiness for WP-032. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-019 ✅ Done 2026-11-14 The sound files and the mixer.
WP-029 ✅ Done 2026-11-14 Room music, openings, RoomScript’s scenes; it named the gap.
WP-031 ✅ Done 2026-11-14 Big Head, whose opening this times.

Repo + disc state

Scope lock

Allowed paths (this repo):

docs/formats/scooby-exe.md       (the music's fade; one line of WP-030's section)
docs/work-packets/WP-032-music-fade.md
docs/work-packets/WP-030-options-credits.md   (two lines this packet makes stale)
docs/work-packets/WP-029-room-setup.md        (a pointer from its gap to this packet)
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-032-2026-11-14.md

Fork: engines/scooby/**, staged by name. The other session’s files only get the hook calls it named, and the credits’ row in its setup table.

Risk review

Risk Likelihood Impact Mitigation
The fade’s volume curve. med low The original’s driver converts percent × gain into DirectSound’s units; the fork scales the mixer channel linearly. Said plainly.
Hooking another session’s files. med med It confirmed no unpushed edits there; it is told every line touched, and its setup check’s one changed line.

Verdict

Prepared by: Claude (WP-001 session, continuing), after PR #69 merged Date: 2026-11-14


After execution — lessons learned

Lesson: a setter’s caller tells you what it does. 0x434F10 and 0x434F30 only store a flag, a number and a count. What they mean came from the one function that reads those fields every tick (0x434C00), found by asking which code calls it and how often.

Lesson: C++ evaluates arguments in any order. A check line called changes(10) and isMusicFading() in one debugC; the engine printed the fading flag from before the ticks and disagreed with the reference. Compute side effects before the log line.

Lesson: a hook point carries an order. The room load’s fade-up comes after the room’s entry, so a scene started during the entry has its dip cancelled at once. Hooked before the entry, the fork would have kept a dip the original never has. Reading where the call sits in the original, not just that it exists, settled where the fork’s goes.

Scope note: the lock held: one fork commit staged by name. The other session’s files got the hook calls it named, and the credits’ row in its setup table, which it was told about; its setup check’s one credits line changes accordingly.