# Visual golden harness manifest (tests/visual/README.md).
#
# One row per pinned frame: `<label> <tick> <sha256-of-the-BMP>`. `label`
# names both the --demo-shots save point and the scenario it's meant to
# regression-test; `tick` is the sim tick (20 Hz) at which the SCRIPTED demo
# match (bomber::game::demo_inputs, libs/input/include/bomber/input/input.hpp)
# reaches that
# moment, against the shipped BASIC.SCH scheme and a real install's
# VALUELST.RES/level rotation. Recapture procedure: see README.md.
#
# label                 tick  sha256
# Recaptured 2026-07-13 (twice): the in-match master-palette colour snap
# (COLOR.PAL, colorpal.hpp / facts.md "In-match colour quantization") now
# applies to EVERY match-drawn asset: field, tiles/bricks, and all sprites
# (players, bombs, flames, powerups, poses, death anims). Front-end art and
# DATA_HD are not snapped. The demo's FIELD10 field is identity; tiles +
# sprites shift ~2-3% to their master-palette colours.
#
# Recaptured 2026-07-16 (canonical ~180 fps cadence + tile-layer draw order,
# facts.md "Canonical frame cadence" / "Draw order"): kSubFrames 3 -> 9
# shifts every walker's pixel timeline (918 vs 921 units/tick truncation), and
# static solid/brick tiles moved to a background pass under bombs/powerups/
# flames (sub_425D22 stamps them into the background surface, so a flying
# bomb's whole arc now composites OVER tiles). BMPs eyeballed before pinning:
# tiles/conveyors/bombs/flames/players composite in the original's order.
#
# `walking` recaptured 2026-07-19 (facts.md "Walk leg-cycle pacing"): the leg
# cycle now advances one frame per THREE pixels walked (sub_41F29B's +48/3),
# so tick 10's stride frame shifted. Only this shot moves -- the other four
# have no mid-stride walker on a differing frame index. (ASCII only in this
# file: cmake file(STRINGS) splits lines at non-ASCII bytes, orphaning the
# remainder as an uncommented "row".)
#
# ALL FIVE recaptured 2026-07-19 (spawn-pocket clear widened, facts.md
# "Spawn-pocket clear"): build_state's per-spawn brick clear grew from a
# radius-1 orthogonal "plus" to a radius-2 one (9 cells: spawn tile + 2 tiles
# in each cardinal direction), fixing the first-round AI mass-suicide bug.
# BASIC.SCH (this demo's scheme, 90% brick density) puts both scripted
# players in board corners, so every shot's brick population near each
# spawn changes from frame 1 onward -- eyeballed the recaptured BMPs first
# (build/windows-fetch/apps/game/visual_shots): both corners now show the
# wider cross-shaped clear pocket, matching the live BM95.EXE screenshots
# that motivated the fix; nothing else in the scene looks different.
#
# 2026-07-20 renderer fidelity fixes (audit row 9, F1-F4): player draw order
# is now fixed slot 0..9 (was Y-sorted); cornerhead fidget re-rolls on ANI-
# cycle completion with an elapsed phase (was a 20+rand%13 tick spread on a
# raw global-tick phase); kick/punch pose duration is the sequence's own
# frame count (was a hardcoded 8); the pickup pose FRAME is walk-phase-driven
# (was elapsed-since-grab, disasm-confirmed 0x420350). NOT RECAPTURED: these
# four fixes DO NOT move any pinned frame -- an instrumented run of the full
# 200-tick scripted demo shows none of the changed paths ever fire (no player
# overlap, no kick/punch/grab event, no boxed-in idle fidget), so the demo
# never exercises them. The walking shot (t10, two players) still matches
# byte-for-byte, confirming the slot-order loop restructure did not regress
# normal rendering (BMP eyeballed).
#
# RECAPTURED 2026-07-20 against the FINAL sim (the fidelity-audit sim fixes
# all landed: bombs F1-F4 round-end freeze + kicked/conveyor +100/frame speed
# + coast-stop + same-tick-trigger, flames F1 arm order, ai F1/F2, setup
# start_with). Four shots moved because the demo's bombs/flames now travel and
# explode on the faithful timeline (kicked bombs 19 px/tick not 10; explosion
# arm cast order godir 0,1,2,3). `walking` (t10) is byte-identical -- no bomb
# or flame in frame yet. All four changed BMPs eyeballed (explosion_mid_flame:
# two flame crosses composite correctly over tiles + bomb + player;
# bomb_pulse: two live bombs correctly placed) -- coherent scenes, not
# glitches. headless suite 49/49 green at recapture time.
#
# RE-RECAPTURED 2026-07-20 (batch 2 sim fixes: setup F1 hidden-powerup scatter
# now uses the original's rejection sampling, shifting the setup RNG stream, so
# the demo's whole bomb/powerup timeline moves from tick 1 -- ALL 5 shots moved,
# incl. walking t10, which now has a bomb on-board that the shifted timeline
# dropped earlier). Both walking (t10) and powerup_revealed (t76) BMPs eyeballed
# and confirmed coherent (walking: two players mid-stride + a correctly-placed
# bomb; powerup_revealed: two revealed tokens in reveal-flash over a decaying
# flame cross) -- the moves are the intended consequence of the now-faithful
# setup scatter, same reason test_golden B/C moved. headless 49/49 green.
# (ASCII only in this file -- non-ASCII bytes break cmake file(STRINGS).)
# 2026-07-20 brick-reveal cure roll (facts.md "Brick-reveal cure roll"):
# sub_425107 draws one rand%30 per brick ignite (calling an EMPTY hook), a
# pure RNG-count draw the port was missing. Added it -> the demo's RNG stream
# shifts from the FIRST brick destruction onward. Only the three post-brick
# shots moved (explosion_mid_flame t65, brick_crumble t68, powerup_revealed
# t76); walking t10 and bomb_pulse t40 (both BEFORE any brick is destroyed)
# are byte-identical -- crisp confirmation the draw only enters the stream at
# brick-reveal time. brick_crumble BMP eyeballed (flame cross + crumbling
# brick + player, coherent). headless 49/49 green (goldens unaffected: their
# blasts stay inside the radius-2 spawn pocket and reach no intact brick).
# ALL FIVE recaptured 2026-07-20 (bombs F2 REVERTED). An earlier audit folded a
# flat +100*kSubFrames "ground bonus" onto the kicked/conveyor slide (LABEL_21);
# the native oracle then showed that +100 is cancelled by a paired one-step
# position backoff in the original, so the faithful kicked/belt slide is the
# base speed alone (~0.25 tile/tick, cadence-invariant). Reverting the +100
# restores the base speed. In THIS demo, player 1's bomb (placed at (6,8) t7)
# rides the level's conveyor + dirarrows across the board and detonates at (2,7)
# t46; at the slower base belt speed it sits earlier on that path at every tick,
# so ALL five shots move -- walking (t10) shows the bomb mid-slide near player
# 1's spawn (pixel-diffed vs the +100 build: a single sliding-bomb region in the
# bottom-left, x428-547 y738-783, nothing else); the four later shots retime the
# whole (2,7) explosion -> flame -> brick -> powerup cascade. The renderer is
# UNCHANGED -- this is a pure sim-position shift, same class as test_golden E
# (bounce count 21 -> 10, back to its pre-F2 native-matching value). The +100
# build byte-reproduced the OLD pins exactly before the revert, confirming the
# capture pipeline is deterministic and the move is the intended consequence.
# Rovers keep their own +100 (a DIFFERENT sub, sub_401B5C, with no backoff --
# genuinely nets one extra pixel/frame). headless 49/49 green at recapture.
#
# Recaptured 2026-07-22 (FAITHFUL player recolour, docs/re/player-colour.md +
# results-and-options.md colour audit): all player art is 16bpp CIMG type-4
# (a survey of STAND/WALK/KICK/BOMBS/... returns 100% type-4), so the recolour
# now mirrors the native exactly for those frames -- snap each pixel to a master
# index, remap through the colour's .RMP (dword_460564, master-index ->
# master-index), re-look-up the master palette (sprites.cpp recolor_image_master)
# -- replacing the green-excess TINT approximation with the artist-authored
# per-colour shades. Every shot with a player body shifts; the white player in
# particular is no longer the old "blown-out blob". Verified by eye (walking +
# powerup_revealed) before pinning. Debug == Release byte-identical.
# NOT recaptured 2026-07-28 -- the hashes below are the SAME five bytes-for-bytes
# they have been since 2026-07-22, and the reason the suite was red is that the
# BUILD could no longer reproduce them, not that they were wrong. Two options.ini
# keys reached the scripted match unpinned: random_start (the spawn-slot shuffle,
# which rewrites the match from tick 1) and conveyor_speed (the belt speed; the
# demo's first bomb rides level 10's conveyor loop). The pins were captured while
# the install's file said random_start=1 / conveyor_speed=2; a later real session
# saved random_start=0, and from then on the same source rendered five different
# frames on the same machine. Bisect found nothing because there was nothing to
# find: 137c8ef (the capture commit) and today's main produce byte-identical
# output as each other, and neither matched. load_config now pins both on
# capture_run() to the values the pins encode, so these rows became reproducible
# again instead of being replaced -- which is why they keep the 2026-07-22
# eyeball review recorded above. Verified: 5/5 against the real install, and 5/5
# across a full random_start x conveyor_speed x team_play sweep of options.ini,
# which before the pin produced twelve different sets of five.
#
# RECAPTURED TWICE on 2026-07-30, for two sim changes that landed within hours
# of each other. Both notes are kept because both are true, and neither set of
# hashes each produced ALONE survives: the rows at the bottom were captured once
# more with BOTH changes in the tree, which is the only state that ever ships.
# Recapturing per-branch and merging the files would have pinned a board no
# build can produce.
#
# --- change 1 of 2 ---
# Recaptured 2026-07-30 (the per-FRAME bomb-action tail; docs/re/facts.md "The
# bomb-action tail is per-FRAME, not per-tick"). A SIM change, not a renderer
# one, and all five shots move because the demo's very first bomb does: the
# original creates it in the frame whose key edge asked for it, so the eight
# remaining sub-frames of that tick already see a bomb on the tile. Deferring
# the tail to the tick's end hid it from them. Player 1 drops at tick 7 and is
# standing on it, so its walk resolves a fraction of a pixel differently from
# tick 7 onward, and every later shot inherits that. Checked, not assumed:
# BOMBER_DEMO_TRACE diffs the two event streams to ONE added event (a bomb at
# tick 49 that the old tail refused because it tested the tick's END tile), and
# a pixel diff of `walking` is a thin outline around one player sprite, i.e. a
# sub-pixel shift, on a frame whose tile coordinates are unchanged. Nothing
# else in the field moves.
#
# The pre-change build was re-run against this same install first and matched
# all five rows below's PREDECESSORS exactly, so the environment was hermetic
# at capture time -- the failure mode this file's 2026-07-28 note describes was
# checked for, and ruled out, before recapturing. Two recapture passes gave
# identical hashes. bm_shots.txt is UNCHANGED: the front end has no sim behind
# it.
#
# --- change 2 of 2 ---
# ALL FIVE recaptured 2026-07-30 (facts.md "Stage actors do not clear the tile
# they sit on"): apply_actors used to blank cfg.cells under EVERY stage actor;
# sub_4056CA clears for the WARPHOLE only (cases 0/2/3 write no cell and gate
# just their DRAWING on !sub_425FB9). This demo is on level 10, INNER CITY
# TRASH, whose EXTRA10.RES is 32 conveyors -- so the harness exercises the
# change head-on rather than incidentally, and all five frames move. Of those
# 32 belt tiles, 28.7 on average were bricks the old code deleted; the belts
# are now visible only where build_state's spawn pockets open them, which is
# exactly the original's "the belts are under bricks at round start and have to
# be bombed open". A denser board also re-times the whole match: the scripted
# input is tick-indexed and does not adapt, so the bomb/flame/powerup
# choreography behind ticks 40-76 differs from the old pins.
#
# BMPs eyeballed before pinning (walking t10, brick_crumble t68): coherent
# scenes, not glitches -- the y=2 belt row and the x=12 belt column are fully
# bricked over, the y=8 row is open only across the two spawn pockets, and
# brick_crumble still shows a flame cross, crumbling bricks and both players.
# COVERAGE NOTE, deliberate and worth knowing: pinning conveyor_speed=2 was
# justified (game_app.cpp kCaptureConveyorSpeed) by the first bomb riding the
# belt "across the board". With the belts correctly bricked at round start that
# ride is now short, so these five frames cover less of the belt path than they
# used to. That is the faithful behaviour, not a regression to fix here; a
# later shot at a tick after the belts are bombed open would restore it.
#
# The five bm_shots.txt front-end frames are NOT recaptured: a recapture pass
# reprinted all five byte-identical, as expected for a match-only change.
# headless 89/89 green at recapture time.
# --- the combined capture, and the only one that matches a shipping build ---
# Taken with BOTH changes in the tree. `walking` came back byte-identical to
# change 2's own capture, so the per-frame tail does not reach tick 10 once the
# actor fix is in; the other four differ from BOTH single-change captures, which
# is why neither branch's file could simply be taken. Eyeballed brick_crumble
# before pinning: coherent scene, the belt row visible only where the flame has
# opened it, which is the behaviour change 2 is there to produce.
# bm_shots.txt reprinted byte-identical in the same pass and is unchanged.
walking                 10    f1291cfa9a5acd3f72072edf4647c00d21dbf9929e4ee366ece90dd55e02d5d9
bomb_pulse               40    4e8442989e87e556e8a5cebcfc29b1b4555999348a293378f61f07c1b5215e68
explosion_mid_flame     65    bf340184ef006db69ba05ad795240108bdf890423858f15c187b2e6a325bb3de
brick_crumble           68    732ad6cb9aaba28324db9ae91db4b10cd6e80598b022a1f6acbf6d64fa76d1fc
powerup_revealed        76    2a004c6662dc54d4254c078683441fea6c86088f0841deba17af4a289a84f0d8
