find_harness/harness() check runtime/build/windows and add .exe on Windows; the
skip/error text names LEONIDA_VK_HARNESS. The tool and the test use fixed
image.raw / image_first_light.raw paths, unlinked before each run, so no random
raw files pile up. manifest.json records the OBJ SHA-256 and docs/first_light.md
names the 4,213/7,968 model and its hash.
--check now loads an existing manifest, writes a fresh raw path, and calls the
same check_image the test imports. The oracle adds four UV probes whose U and V
differ by more than 0.15, because a symmetric centre alone cannot catch a swapped
UV. Fake harnesses that exit 0 without writing, write a solid image or swap UV
all exit 1; the real draw exits 0. The test has seven cases, including the CLI.
The draw writes a fresh raw path (a harness that writes nothing cannot pass on a
stale file); the check adds a coverage maximum, a corner that must keep the clear
value and the centre UV the mesh's last covering triangle predicts on the CPU.
OracleTests cover the accepted fixture plus all-opaque, swapped-UV and short
negatives without a GPU or a package.
tools/first_light.py carves the game's shaders, translates one real VS/PS pair,
converts an exported OBJ to a mesh, writes a manifest and runs vk_harness. The
harness gains VKH_DRAW_MESH/VKH_VERTEX_LAYOUT (indexed mesh, vertex input), inert
when unset. The package-gated test draws the model and checks coverage and the
centre pixel; docs/first_light.md records the measured result.