Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
test(kinds, codex, restoration): the kinds written to disk, the codex binary and a restoration's five suffixes are pinned as written, so a one-character change of a declaration fails
Soohong Kim9e02d467d42f
diff --git a/tests/gen/test_codex_login.py b/tests/gen/test_codex_login.pyindex a5eed43..c4db669 100644--- a/tests/gen/test_codex_login.py+++ b/tests/gen/test_codex_login.py@@ -111,3 +111,7 @@ def test_the_workflow_reads_the_same_login(monkeypatch, login, expected):monkeypatch.setattr(codex_provider, "codex_login", lambda: login)state = probe_access("codex")assert {k: state[k] for k in expected} == expected+++def test_the_binary_every_codex_call_runs_is_named_as_written():+ assert codex_provider.BINARY == "codex"diff --git a/tests/spec/test_assets.py b/tests/spec/test_assets.pyindex f517b30..948edd9 100644--- a/tests/spec/test_assets.py+++ b/tests/spec/test_assets.py@@ -2,6 +2,7 @@"""The shared read-only adapter: real writer formats, one-read snapshots, bound fingerprints."""import hashlib+import importlibimport jsonfrom pathlib import Path@@ -348,3 +349,14 @@ def test_all_direction_rows_share_one_snapshot_decode(tmp_path, monkeypatch):assert sequences["NE"].frames[0].getpixel((0, 0)) == (255, 0, 0, 255)assert sequences["SW"].frames[0].getpixel((0, 0)) == (0, 0, 255, 255)assert sequences["NE"].fingerprints() == sequences["SW"].fingerprints()++[email protected](("module", "name", "written"), [+ ("sprite_gen.spec.runio", "REQUEST_KIND", "sprite-gen-request"),+ ("sprite_gen.video.align", "REPORT_KIND", "sprite-gen-video-cycle-align-report"),+ ("sprite_gen.video.frames", "REPORT_KIND", "sprite-gen-video-frames-report"),+ ("sprite_gen.frames.unpack_atlas", "UNPACK_SOURCE_KIND", "sprite-gen-unpack-source"),+ ("sprite_gen.video.prop_plate", "CANVAS_REPORT", "sprite-gen-video-canvas-report"),+])+def test_a_kind_written_to_disk_is_pinned_as_written(module, name, written):+ assert getattr(importlib.import_module(module), name) == writtendiff --git a/tests/video/test_source_restoration.py b/tests/video/test_source_restoration.pyindex 30f67a6..ea5038b 100644--- a/tests/video/test_source_restoration.py+++ b/tests/video/test_source_restoration.py@@ -988,3 +988,8 @@ def test_video_frames_writes_a_receipt_of_the_actual_extraction(tmp_path):assert len(src.frames)==12assert src.record['extraction_engine']==evidence.engine_identity()assert src.record['inputs']['frames_report']['sha256']==evidence.digest(report.read_bytes())+++def test_a_restoration_s_five_files_are_pinned_as_written():+ assert restoration.ARTIFACT_SUFFIXES == {"strip": ".strip.png", "meta": ".strip.json", "report": ".loop.json",+ "gif": ".gif", "webp": ".webp"}