WP-009: Reference screenshot library (Showdown in Ghost Town)

Status: ✅ Done (2026-11-13). All seven exit criteria met; #7 was verified live after merge. Phase: 0 — Pre-Work (before WP-002) Depends on: WP-008 ✅ (room IDs available — see §Notes) Unblocks (recommended, not strict): EC-002 pre-flight (decoder visual comparison target), WP-001 §Scripted-room render branch trace, Phase 3 *_Room.cpp reimplementation (scripted-room ground truth) Companion EC: — (no EC; inline operator checklist in §Execution. Estimated effort ≤ 2 hrs and no sequential decision branches per wp-lifecycle §Phase 1 — Drafting.) Pre-flight required: No — pre-flight.md §When pre-flight is required explicitly exempts “screenshot/reference-image captures.” This WP commits PNG/WebP image assets + a Jekyll gallery page; it does not touch docs/formats/**, engines/scooby/**, or commit tool scripts under tools/**, and it locks no engine-generation classification. Targets generation(s): Gen 1 (Showdown in Ghost Town only) — per 01-VISION §Engine Lineage. Captures from other titles (Phantom Gen 1, Jinx Gen 2, Case File Gen 3) are explicitly out of scope; each gets its own WP if/when needed. Targets disc(s): Showdown Estimated effort: 1–2 hours
Actual: One session, 2026-11-13. A first session on 2026-06-03 chose the source video and stopped before capturing.
Findings landed in: gallery; tgifile-art §Scene index = ROOM id
Headline answer: 35 of 37 catalog rooms captured, plus the OBJ_DAPHNE_A anchor. Every one matches its decoded TGIFILE.ART background. The other two never appear in the longplay. All 37 rooms turn out to be decoder-backed, so the Required/Stretch split no longer applies.


Goal

Capture exactly one clean, stationary frame per distinct room/scene in Showdown in Ghost Town from a YouTube longplay, store them as docs/assets/screenshots/showdown-screens/<room-id>.png (git-tracked, served by GitHub Pages — see §Notes for why docs/assets/ and not tools/samples/), and render them as a gallery page on the Pages site at https://github.barefootbetters.com/scooby-engine/docs/assets/screenshots/showdown-screens/. This index.md IS the canonical gallery page served by GitHub Pages and is the primary deliverable of this WP.

These become the visual ground truth for WP-002’s decoder: when probe_art.py produces an image, the comparison target is a named file, not a memory of what the game looked like.

Capture rules (binary):

Background

EC-002 pre-flight already requires a reference screenshot to be in place before running decode strategies. This WP creates that asset once, properly named and provenance-logged, so it’s reusable across WP-002 and any future decoder debugging session.

Without this library, “does this look right?” requires searching a longplay in real time. With it, it’s a 10-second side-by-side against a known-good file. For a decoder that may go through 5–6 strategy iterations (EC-002 Phases B1–B6), the savings compound.

Scope

This WP has two tiers, addressing two distinct downstream consumers:

Per-tier scope details

In scope (both tiers):

Capture quality requirements (both tiers):

Out of scope:

Dependencies

Exit criteria

  1. Required-tier coverage achieved (binary gate — WP cannot close without this).
    • All 16 TGIFILE.ART-backed canonical rooms captured as PNG files.
    • At least one character sprite anchor captured as OBJ_DAPHNE_A.png (or substituted sprite if OBJ_DAPHNE_A is unobservable in the longplay — log substitution reason in the Notes column).
    • Any Required-tier ID NOT captured MUST be listed in the provenance table with Match Status Gap and one of these explicit reasons:
      • Not reached in longplay
      • Not observable in source video (UI overlay, scene too brief, always behind transition)
    • The Required tier has no “uncertain” escape — every Required-tier row is either a captured canonical file or a Gap row with a reason. (Uncertain captures are saved as UNMATCHED_<slug> and listed in the Unmatched table; they do NOT satisfy Required-tier coverage.)
  2. Stretch-tier coverage logged.
    • For each of the 21 code-rendered canonical rooms, the gallery row is either a captured file (PNG or high-quality WebP) or a Gap row with the same reason set as Required tier.
    • Partial coverage is acceptable at this tier; the gate is honest accounting, not completion.
  3. Naming compliance (binary, both tiers).
    • Every committed file is either:
      • A WP-008 canonical room or object ID verbatim (e.g. ROOM_P21_Boot_Hill1.png, OBJ_DAPHNE_A.png), OR
      • Prefixed UNMATCHED_<descriptive-slug>.png (or .webp) with a Match Status: Unmatched row in the Unmatched captures table and a justification in the Notes column.
    • No silent slugs, no near-canonical names (ROOM_P21_BootHill.png when the catalog says ROOM_P21_Boot_Hill1), no half-matches.
  4. Gallery page rendered.
    • docs/assets/screenshots/showdown-screens/index.md (pre-renamed from README.md) renders on the Pages site, using the provenance schema in §Deliverables — every row shows an embedded preview alongside Room ID / Source Video / Timestamp / Match Status / Notes.
    • This index.md IS the canonical gallery page; it is the primary deliverable of this WP, not a side artifact.
  5. Decoder-anchor validation (Required-tier sanity check).
    • At least one Required-tier capture is a full-room static background (not a partial view, not a transition), clear and unobstructed per §Goal capture rules — suitable for direct visual comparison with decoded TGIFILE.ART output. This is the frame EC-002 pre-flight will pull when running decode strategies.
    • The OBJ_DAPHNE_A (or substitute) sprite anchor is present and clear — entry[0] of TGIFILE.ART is OBJ_DAPHNE_A, so this is the WP-002 first-decode comparison target. See §Notes.
  6. WORK_INDEX teaser updated.
    • WORK_INDEX “Reference Screenshots” section carries one or two representative thumbnail teasers, each linking to the gallery page. The full 16+ image set does NOT live inline in WORK_INDEX.
  7. Pages render verified.
    • Gallery page is visible at https://github.barefootbetters.com/scooby-engine/docs/assets/screenshots/showdown-screens/ and all embedded images load (no broken images in the live render).

Outcome (2026-11-13)

Method. Frames came from the source longplay’s 1080p stream (yt-dlp format 248), downloaded to a local scratch folder and deleted after capture; nothing but the chosen PNGs entered the repo. Rather than scrub by eye, each 0.5 s sample of the video was scored against all 69 backgrounds decoded by tools/probe_art.py. For each room, the pick is the best-matching frame that holds steady for ±1 s. Each pick was then checked by eye beside its decoded background. The gallery’s “How frames were chosen” section has the details.

The tier split is obsolete. WP-008 had listed 21 of the 37 rooms as code-rendered, with no TGIFILE.ART background. WP-002 and this WP found that every catalog room has a scene block, and that scene index = ROOM id (tgifile-art §Scene index = ROOM id). All 37 rows are therefore treated as Required tier and captured as PNG.

Exit criterion Status Evidence
1. Required-tier coverage ✅ 35 rooms captured as Canonical PNGs. ROOM_Main_Menu and ROOM_P27_Chase_B4 are Gap: Not reached in longplay: the video skips the main menu, and the player never takes chase branch B4 (best whole-video match 0.55, against 0.95+ for every chase room entered). OBJ_DAPHNE_A anchor captured.
2. Stretch-tier coverage logged ✅ (moot) No room is Stretch tier; see above
3. Naming compliance ✅ Every file is a catalog ID verbatim, or OBJ_DAPHNE_A. No UNMATCHED_ files were needed: each capture is tied to its room by the decoded-background match.
4. Gallery page rendered ✅ index.md filled with the 6-column provenance schema; ewiki gates pass
5. Decoder-anchor validation ✅ Every room capture is a full background, and every one matches its decoded scene. OBJ_DAPHNE_A matches decoded cel 0 in pose and color.
6. WORK_INDEX teaser ✅ Two thumbnails (Town Center, Boot Hill 2)
7. Pages render verified ✅ Verified 2026-11-13 after #27 merged. GitHub Pages serves all 36 images (200 image/png); the ewiki serves all 36 at 320 px. Pages first drew the thumbnails about 59 px wide (minima squeezed the column), fixed by assets/main.scss in the “fix gallery render” commit.

Side effect for WP-002. This closes WP-002’s open “frame comparison against in-game output”: 35 decoded backgrounds and Daphne’s sprite match captured frames, colors included.

Embed form changed. §Deliverables prescribes <a href><img width="320"></a> cells. That predates the Access-gated ewiki, which renders Markdown with raw HTML off (ewiki/hugo.toml, unsafe = false), so those cells would be blank there. The gallery uses [![id](file.png "width=320px")](file.png) instead: the ewiki theme sizes it from the title, and GitHub Pages (minima) fits it to the column. Both link to the full-size file.

Process note. §Execution below says “no branch, no PR”. This WP went through a PR anyway, like WP-002, because it also carries a format-doc finding (the scene-to-room mapping) beyond the gallery.

Deliverables

Provenance schema (mandatory).

The index.md provenance table MUST include exactly these columns:

| Preview | Room ID | Source Video | Timestamp | Match Status | Notes | |—|—|—|—|—|—|

Where:

Page-weight sanity check: full-size PNGs run ~1–2 MB each; WebP at quality 90 runs ~150–300 KB. The width="320" embed keeps the rendered gallery light regardless of file format; the underlying file is unchanged.

Execution

Inline operator checklist (no separate EC — this WP is one continuous capture session, not a multi-step branched workflow). Run top-to-bottom once; check each item as completed.

Setup

Per-room capture loop (repeat for each distinct room encountered)

Close-out (substantive docs-only WP — commits go direct to main per wp-lifecycle §0 Triage; split into two commits per §Two-commit topology. There is no branch and no PR for this WP — the discipline is provided by §Scope, the inline checklist, and the two-commit split.)

Commit A — the deliverable

Commit B — the close

Verify Pages render

Notes