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).
Header
- WP:
WP-015 - Title: Cel decoder, and a room background on screen (Gen 1)
- Pre-flight date:
2026-11-14 - Targets generation(s): 1
- Targets disc(s): Showdown, Phantom
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
- Project worktree on new branch
claude/wp-015fromorigin/main(571fe5b), clean. - Fork
C:\dev\scummvmonscooby-engineat155144012a(WP-014), clean and pushed. - Scooby-only build tree in the session scratchpad, plus the WP-014 harness:
--logfilecapture and a Python reference built onprobe_art.py. - Showdown and Phantom ISOs mount;
TGIFILE.ARTfor both is cached.
Doc-vs-tree cross-check
- Integration §5’s acceptance criterion says “with the original palette”. There is no palette: pixels are RGB565 truecolour (WP-002, WP-001). The engine already asks for a 640 × 480 RGB565 screen (WP-010). The close updates §5. The criterion’s other part, no per-platform code, still applies.
- The ARGB4444 nibble expansion goes through a table in
Scooby.exethat has not been dumped;probe_art.pyassumes× 17. That is one more reason to leave mask-B blending to the sprite WP, where it can be checked against the binary.
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
- READY TO EXECUTE
- NOT READY
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.