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

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

Written before any code. PR #43 merged; Jeff picked cel decoding as the next Phase 3 piece (2026-11-14).


Pre-flight intent

Validating readiness for WP-015. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-014 ✅ Done 2026-11-14 (PR #43 merged) ArtArchive serves room and object blocks by name.
WP-001 ✅ Done 2026-11-13 Decode path (0x4398A0), solid and raw cels, mask roles.
WP-002 ✅ Done 2026-11-13 Cel format; --verify decodes all 9,111 cels.

Repo + disc state

Doc-vs-tree cross-check

Scope lock

Allowed paths (this repo):

docs/02-SCUMMVM-INTEGRATION.md   (§5)
docs/work-packets/WP-015-cel-decoder.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-015-2026-11-14.md

Fork: engines/scooby/** only.

Forbidden: game data, and decoded images, in either repo. A screenshot for the PR goes to Jeff directly, not into git.

Risk review

Risk Likelihood Impact Mitigation
Decoder agrees with the probe only on the cels a room shows med med Hash every cel, not just backgrounds: 9,042 sprite cels exercise raw, solid and mask-B cases.
Mask spans step outside the cel low med Bounds-check every span and reject the cel; --verify says none do.
Screen MD5 depends on the backend’s surface pitch low low Hash the engine’s own 640 × 480 surface before copyRectToScreen(), row by row.
Upstream AI policy (open since WP-010) — — Not settled here.

Verdict

Rationale: the format has no open decode questions, and the archive and harness exist.

Prepared by: Claude (WP-001 session, continuing), on Jeff’s choice of 2026-11-14 Date: 2026-11-14


After execution — lessons learned

Lesson: a size guard is a claim about the data, so check it against the data. The 4,096-pixel side cap was a guess, and the all-cels check caught it on the first run (two 400 × 5,000+ cels). Hashing every cel, not just backgrounds, is what found it.

Lesson: stage named files in a shared checkout. C:\dev\scummvm is one working tree that several sessions use. git add engines/scooby picked up another session’s uncommitted detection edits. Run git status and stage files by name before committing there.

Lesson: start scummvm.exe directly from PowerShell. Start it with C:\msys64\ucrt64\bin on PATH, and watch the --logfile for the expected line. That is more reliable than wrapping it in MSYS2 bash -l, which started late under load in WP-014.

Scope note: the lock held for this WP’s own changes. The fork commit also carries the detection entry described in the Result. Integration §3 documents it through PR #46. Screenshots went to Jeff, not into git. The ISOs were dismounted afterwards.