Pre-Flight — WP-002 — 2026-11-13

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

This copy was written in the execution session, not ahead of it. The session was started from another Claude session with Jeff’s brief: take WP-002 from the data file alone, because Ghidra (WP-001) is blocked on a JDK install awaiting IT approval. There is no separate session prompt; the brief stood in for one. See §Lessons learned.


Pre-flight intent

Validating readiness for WP-002. Verdict only.

Dependency check

Prereq Status in WORK_INDEX Locked on Notes
WP-001 (preferred, not strict) 🚧 In Progress n/a WP-002 §Depends on says WP-002 “can be started without if Ghidra path is blocked”. Ghidra is blocked (JDK install awaiting IT). The blind-decode strategy in EC-002 applies.
WP-003 ✅ Done 2026-06-02 Name table and header-offset baseline
WP-008 ✅ Done 2026-06-03 Labeling rule entry_<index>_<name>
WP-009 (EC-002 pre-flight item) 📦 Queued n/a No reference screenshots exist. Visual check falls back to the characters’ canonical look; frame comparison is deferred to WP-009. Not a blocker: WP-002 exit criterion #2 tests recognizability, not a match against a specific frame.

Repo + disc state

Showdown: C:\dev\scooby-engine\tools\exes\showdown\TGIFILE.ART

Scope lock

Allowed paths for WP-002:

tools/probe_art.py
docs/formats/tgifile-art.md
docs/01-VISION.md                      (TGIFILE.ART findings subsection + Phase 1 work item only)
tools/exes/README.md                   (the one TGIFILE.ART bullet that cites the old offsets)
docs/work-packets/WP-002-tgifile-art-decoder.md
docs/execution-checklists/EC-002-probe-art-harness.md
docs/work-packets/WORK_INDEX.md
docs/reference/pre-flight-WP-002-2026-11-13.md

Local-only (gitignored, never committed): decoded PNGs under tools/samples/.

Forbidden: game data and any decoded image, committed anywhere; engines/scooby/**; format docs other than tgifile-art.md.

Exit check: git diff --name-only origin/main..HEAD before opening the PR.

Risk review

Risk Likelihood Impact Mitigation
Copyright leak: a decoded PNG staged for commit med high PNGs go to tools/samples/ (gitignored) only. WP-002 exit criterion #4 asked for a committed PNG; amended to local-only, per tools/samples/README.md. Exit check before the PR.
Decoding by analogy: a format clause written from “looks like” without evidence med high Every structural claim in tgifile-art.md is backed by a whole-file check in probe_art.py --verify, or is labeled as an inference
Overfitting to one entry: an algorithm that works on entry 0 but not on the rest med med --verify decodes every cel in the file (9,111) and checks each stream’s end against the next structure
Inherited spec drift: building on the old offset model high (it happened) high Old model retracted in the doc with the counter-evidence; corrections labeled with WP and date

Verdict

Rationale: the only open prereq, WP-001, is preferred-not-strict, and the WP names the blocked-Ghidra path. The binary identity is locked by SHA-256. The scope lock keeps decoded output local.

Prepared by: Claude (WP-002 session), on Jeff’s brief of 2026-11-13 Date: 2026-11-13


After execution — lessons learned

Lesson: an unverified structural claim had been carried forward through two WPs. WP-003 confirmed the asset_count offset, but the “(start, end) offset” reading of the 453 records had never been checked against the file size. A one-line check (is every end within the file?) would have caught it in WP-003. Format docs should mark each structural claim as checked across the file or checked on one sample. tgifile-art.md now does that for the WP-002 findings.

Post-merge change (2026-11-13): Jeff overrode the local-only call on the entry-0 PNG. tools/samples/tgifile-art-entry0.png is now committed as the single named exception (.gitignore and tools/samples/README.md name it), and WP-002 exit criterion #4 is restored as originally written. The risk-review row above records the call as it stood at execution time.

Lesson: write the pre-flight before the session, even when another session starts it. This copy was written after the decode had already landed. Next time, a session that starts from a brief should write the pre-flight before its first probe.