Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

Merge plan/breath-phase-input-1023 (breathe: the in-breath share `inhale` a smooth row's own setting, and a stretch of a loop carried on the loop's breath — `loop_cells`/`start_cell`, `--reference FRAME`; video-sway --breathe follows the record's share and folds a stretch on its whole loop, `--frames --reference` reads the regions on the loop's first cell) into main, after out-dir-overlap-guards, validated in sprite-gen/breath-phase-input-1023

Soohong Kim32f669f8f768
diff --cc CHANGELOG.md
index efab66b,1e0f34e..7bc235f
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -40,277 -40,44 +40,307 @@@ The Breathe layer still supports `pixel
- **Changed: Inspection seams.** `video-sway-inspect` drops a pair's seam points covered by a third moving region.
Its record uses `schema_version` 3.
- **New: Breathe beat chosen to miss the hands.** In `smooth` mode, `--avoid-region` chooses a breath beat whose peaks keep the chest above the hands' own rise and records the choice in `breathe.json`.
+ - **New: The in-breath share.** The smooth sidecar key `inhale` is the share of one breath the in-breath takes; the in-breath peaks at that phase and the rest of the breath is the out-breath.
+ Default 0.40, range 0.2 to 0.8 with both ends allowed; out-of-range values are refused, not clamped, and a pixel row refuses the key.
+ With the key left out or at 0.40 every bake is byte-identical to before.
+ With `breath_peaks`, the rest between peaks p and q is at p + (1 - inhale) x (q - p).
+ `sprite-gen breathe --inhale S` sets it, and the normalized smooth config in `breathe.json` always carries it.
+ `--avoid-region` scores every candidate on the row's own `inhale` curve, the curve the bake uses.
+ Sway `--breathe` takes the chest curve, the late curve and the phase check at the record's share, so `breath_peaks` phases written at another share are accepted when they match.
+ A record without the key reads as 0.40 and sways exactly as before, and a hand-written record for a breath made elsewhere can state its share.
+ The sway record's `drive` now also carries `inhale`.
+ The curator sidecar round trip keeps `inhale` as written and its range table mirrors 0.2 to 0.8.
+ - **New: A stretch of a loop.** A loop set has an idle loop and short pieces that leave it or join it part way through a breath, and such a piece can now be breathed and swayed on the loop's own breath instead of being padded into a sequence and cut out by hand.
+ The smooth sidecar key `loop_cells` is the number of cells of the loop the row carries the breath of, an integer of 2 or more, and `start_cell` is the loop's cell the row starts at, an integer from 0 to loop_cells minus 1, default 0.
+ Cell i of the row has the phase of the loop's cell (start_cell + i) mod loop_cells, the very same floating point value, the beat (`breaths`, or `breath_peaks` whose cells are cells of that loop) is the loop's, and the row's first cell is then not necessarily at rest.
+ With `loop_cells` left out or null the row is its own loop, with both keys left out phases and bakes are byte identical to before, and the normalized smooth config in `breathe.json` always carries `start_cell: 0` and `loop_cells: null`.
+ `sprite-gen breathe --loop-cells N --start-cell K` sets them; `--avoid-region` is refused with either, since the beat is chosen on a whole loop's frames and a stretch carries on its loop's beat.
+ `sprite-gen breathe --reference FRAME.png`, in any mode, measures the row's anatomy (head line, chest, how far it rises and its place in the frame) on that frame instead of the row's first frame, normally the loop set's first cell, and `breathe.json` records `reference` with the file's `path` and `sha256`.
+ Sway `--breathe` reads `start_cell` and `loop_cells` from the record, recomputes the phases with them and offsets a stretch's cell i exactly as the loop's cell (start_cell + i) mod loop_cells, from the stretch's first cell on, with nothing wound up before it.
+ The fold rule and `--stretch-floor` read the loop's whole breath, so a stretch moves by the same gain as its loop and the seams between them do not jump; the record's `reach_px`, `fold` block and `least_cell` are the loop's, and `least_cell` is a cell of the loop.
+ `sprite-gen video-sway --reference FRAME.png`, only with `--frames`, names the frame the regions were read on; each frame's body motion is read with it laid first, `body_px`, `body_worn_px` and `body_bob_px` come from or span it, and `sway.json` records `reference` with `path` and `sha256`.
+ The sway record's `drive` now also carries `start_cell` and `loop_cells`, and a record without the keys reads as the loop itself from its first cell and sways exactly as before.
+ Refused, never clamped or wrapped: either key on a pixel row, a negative or non integer `start_cell`, a `loop_cells` under 2 or non integer, `start_cell` at or above `loop_cells`, `start_cell` at or above the row's cell count with `loop_cells` left out (at the bake), `breath_peaks` whose last peak is within one cell of the end of `loop_cells`, a `--reference` of another size on either command, and `--reference` with `--loop-dir`.
+ The curator sidecar round trip keeps `start_cell` and `loop_cells` as written and its range check mirrors the Python refusals.
+ - **Changed: Breath curve functions.** `breathe.smooth_wave(t, inhale)` and `breathe.smooth_shoulder_wave(t, lag, inhale)` now require the share.
+ The module constant `breathe.INHALE` is removed; the default lives in `curation.BREATHE_SMOOTH_SHAPE["inhale"]`, and `breathe.smooth_inhale(cfg)` returns a row's share.
+ `breath_beat.choose(images, lift, inhale, avoid, anchor, frame_ms)` and `breath_beat.nudged(n, k, inhale)` take it as well.
- **Tests:** `tests/effects/test_breathe.py` checks border counts, advice, smooth edge preservation, and the second face search.
`tests/effects/test_breathe_js_mirror.py` checks curator refusal wording and byte identity with the pixel bake.
- `tests/effects/test_breathe_smooth.py` checks pixel and smooth byte goldens and shared anatomy and strain measurements.
+ `tests/effects/test_breathe_smooth.py` checks pixel and smooth byte goldens and shared anatomy and strain measurements, and that the in-breath takes the row's share: at share 0.42 the cells at phases 0.21 and 0.42 are byte-identical to the default row's cells at 0.20 and 0.40, `breath_peaks` rests at the share, out-of-range and pixel values are refused, and the CLI flag is honoured.
+ `tests/effects/test_breathe_smooth_curator.py` checks that the sidecar round trip keeps `inhale`.
`tests/effects/test_breathe_publish.py` checks that the stand-in bake accepts the new argument.
`tests/video/test_sway_frames.py`, `tests/video/test_sway_breath.py`, `tests/video/test_sway_flat_across.py`, and `tests/video/test_sway_seams.py` check the Sway paths, drives, weights, gains and seams.
- `tests/effects/test_breath_beat.py` checks beat choice and refusals.
+ `tests/video/test_sway_breath.py` also checks that the sway follows the share the record says for `breaths` and `breath_peaks`, that a record without the key sways as the default, and that the default breath sways the same bytes as before the change.
+ `tests/effects/test_breathe_smooth.py` also checks that a stretch's cell i has the loop cell (start_cell + i) mod loop_cells phase for `breaths` and `breath_peaks` (inside the loop, past its close, the whole loop, and the loop turned), that a stretch has exactly the phases the pad hand step gave, that a row without the keys is its own loop, the stretch refusals, that the CLI bakes what the sidecar bake bakes, and that `--reference` measures the anatomy on that frame, bakes with it and records it.
+ `tests/effects/test_breathe_smooth_curator.py` also checks that the round trip keeps `start_cell` and `loop_cells` and that rows the bake refuses are kept and reported.
+ `tests/video/test_sway_breath.py` also checks, on a synthetic bust, that a 17 cell way out of a 48 cell loop of two breaths, starting at the loop's cell 13 with its body 0 to 3 px across, is offset as the loop's cells are, at the gain the loop is lowered to by the fold rule, a gain at which the 17 cells alone would not fold; that engine commands give the pad hand step's phases, offsets, fold, gain, reach, carry and cells byte for byte; that without `--reference` the carry is off by where the body lies in the first frame; that old records without the keys sway as before; and the `--reference` size and `--loop-dir` refusals.
+ `tests/effects/test_breath_beat.py` checks beat choice and refusals, and that each beat candidate is read on the row's share.
`tests/video/test_follow_stretch_floor.py` and `tests/video/test_follow_inspect.py` cover the changed inspection schema and frames options.
+- **Tests**: A plain `pytest` runs a fast bundle: tests marked `slow` are deselected, the header points to `pytest --full`, and the summary counts deselections. `pytest --full` runs every test. The release lane, `scripts/linux_lane.sh`, passes `--full` to both `pytest` calls, including `-m real_rife`, so its gate still runs every test. `tests/release/test_fast_bundle.py` checks both calls and probes selection with and without `--full`. The `slow` rule in `pyproject.toml` is 1 s per case or 5 s across a function's cases on an 8-core M1 running the whole suite; marking a function marks every case. Five tests remain unmarked as the only fast callers of `video-stop`, `workflow`, `defaults`, `video-sway`, and `export-aseprite`. Three fixture-first tests remain unmarked because other fast tests build their fixtures. In `tests/frames/test_ui_kit.py`, the fast bundle keeps 16 of 512 scattered-drawing grid seeds, 8 of 256 full-size-frame band grid seeds, 9 of 256 missing-element sets, 2 of 17 counterexample sheets, and one placement and start in each publish sweep. `tests/curate/test_anchor_selection.py` extracts each run once per module instead of repeating 1.5 to 2.6 s of setup per test; 25 of 27 affected tests are now fast. Removed `tests/video/test_loop_overlap.py::test_a_tail_on_its_own_beat_is_closed_at_the_wrap_with_the_clips_frames_a_cycle_apart[on]`; its wordless case makes the same call with the default "on". Removed `tests/video/test_walk_steps.py::test_cycle_align_takes_a_loop_cut_two_steps_as_one_cycle` and `tests/video/test_one_step_cut.py::test_cycle_align_takes_the_loop_cut_again_on_its_count`; `tests/video/test_loop_prop_seam_held.py::test_cycle_align_aligns_a_two_step_loop_as_the_one_cycle_it_is` covers alignment from recorded `steps: 2`. Merged `tests/video/test_loop_overlap.py::test_the_cli_passes_overlap_wrap_off_and_on_is_its_default` into `tests/video/test_loop_overlap.py::test_with_the_overlapped_wrap_off_nothing_is_read_for_the_wrap_and_the_gate_refuses_the_cut_as_filmed`, retaining both sets of assertions on one CLI cut with `--overlap-wrap off`. In a new virtual environment, the former suite ran 7,881 tests (7,880 passed, 1 skipped) in 21 minutes 54 seconds; `pytest --full` now runs 7,881, including two new release tests, and the fast bundle runs 6,555 in about 6 minutes. Package code, commands, and outputs are unchanged.
+
+**Upgrading from 3.0.0: the `sprite-gen logo` text checks read a refused image once more before refusing it, and on codex they read on a fixed model and effort.** A mood or logo reading of `mismatch` or `no-text` is read again, up to `logo.MAX_READS` readings, which is 2. One reading that spells the asked text passes. An image is refused only when every reading differs. A logo now costs four to six calls: two images and two text checks, each read once or twice. Beyond a check's second reading nothing is sent again on its own. On codex the text checks no longer follow the login's `~/.codex/config.toml`. They read on `gpt-6-sol` at reasoning effort `high`, and the report names the model and effort of every reading. **`sprite-gen logo` refuses a chroma key that is one of the title's own colours, and a cut that is see-through inside its letters.** A letter colour in the key's hue is, by its pixels, a mix with the key, so the matte cuts it see-through. `--chroma-key auto` now skips a key whose hue covers 5 % or more of the title's box in the mood image, or 1 % when the brief names a colour in that hue. When both keys are the title's colours, the run is refused at the new step `key` before the lettering image is bought. After the matte, see-through pixels walled in by the lettering, farther from it than the logo's own glow reaches, refuse the logo at `matte` on 1 % of the visible lettering or more. A run that went through before with a key in the title's hue, or with a see-through cut inside its letters, is now refused at `key` or at `matte` instead of passing with `status: ok`. Runs whose title carries neither key's hue pick the same key as before.
+
+- **A misreading is read once more before it refuses an image.** Before, each check read the image once, and one misreading refused it. A model reading stylised lettering can read the same picture two ways, so a correctly drawn title could be refused on one reading. Both checks use the one rule, `logo.read_text`. A call that fails is not asked again. With no reading before it, the check is `unverified` as before. With a misreading before it, the misreading stands and the image is refused. A refusal message names every reading, for example `the mood image reads ['IO'] and then ['I0'], not ['ION']`. docs/logo.md records a measurement on a synthetic pixel title drawn one stroke short (the Hangul syllable 쿠 drawn as 구, the middle bar of ㅋ left out). The codex reader at gpt-6-sol/high read it as 구 in 10 readings of 10 and never as 쿠, so neither one reading nor a check of two readings (0 of 5) passed the wrong picture. A second reading can only pass a wrong picture if the reader writes a stroke that is not drawn.
+- `logo.report.json`: `text_check.mood` and `text_check.logo` keep the deciding reading's `verdict` and `read` and gain `max_reads` and `readings`, each reading in order with its `reading` number, `verdict` and `read` lines, or `reason` when it could not be read. `calls` lists a check's call once per reading, each with `reading` (1 or 2) and `effort` (`null` where the provider names none).
+- Codex reader: the text checks run `codex exec --model gpt-6-sol -c model_reasoning_effort="high"`, named on each call, so a check's verdict does not change with the machine it runs on. Before, each machine read on its own config and the report recorded `model: null`. The values are `facing_vision.CODEX_READ_MODEL` and `facing_vision.CODEX_READ_EFFORT`. `--model` still names the images' model only. The facing check still runs on the login's config, unchanged. The xAI and OpenAI text checks read on their own fixed models, as before.
+- Python callers: `logo.read_text` returns `(check, calls)`, a list of call records, instead of `(check, call)`. `facing_vision.codex_inspect` takes optional `model` and `effort` keyword arguments. Without them its command line is as before.
+- **With `--chroma-key auto`, a key in the title's hue is not chosen.** `logo_matte.choose_key` rules out a key whose hue is 5 % or more of the title's box (`logo_matte.CLASH_HUED_PCT`), or 1 % (`logo_matte.NAMED_CLASH_HUED_PCT`) when `--style` or `--scene` names a colour in its hue (`logo.KEY_COLOUR_WORDS`: green, mint, lime, emerald, jade, chartreuse for green; magenta, fuchsia, pink, purple, violet, plum, orchid for magenta). A word alone never rules a key out; the pixels decide. The keys left are scored as before. When both keys are the title's colours there is no third: the run is refused at `key` (`refused_at: key`) before the lettering image is bought. The message gives each key's share and the brief's words for it and says to restyle the title without one of the two hues or to name the key to lose with `--chroma-key` (`--mood <mood.png>` skips the mood image). An explicit `--chroma-key` is kept; when it is one of the title's colours, a warning says so. Before, such a cut passed with `status: ok`, no warning, `key_hue_left` 0 and a matching text check.
+- **A cut that is see-through inside its letters is refused at `matte`.** `logo_matte.see_through_inside` measures see-through pixels (coverage under 240 of 255) walled in by opaque lettering and farther from it than the logo's own glow reaches beside it. Walled in means no way out to the picture's edge except across opaque pixels: the way out starts from the transparent pixels on the edge of the trimmed logo and runs through transparent pixels and see-through ones; a see-through gap of 2 px or narrower does not count as a way, a transparent gap of any width does. A hole joined to the outside, even through one pixel, is outside; a transparent hole walled in by the letters (an O's counter, or a letter colour cut all the way to nothing) is no way out, and a see-through patch round such a hole is still counted inside. Transparent pixels are never counted, only see-through ones. The same way out decides the glow's reach (`glow_reach_px`): the 99th percentile of how far the see-through pixels that have a way out to the picture's edge lie from the opaque lettering, and at least 2 px. On 1 % of the visible lettering or more (`logo_matte.INSIDE_MAX_PCT`) the logo is refused before its text is read, the cut is kept as `logo.rejected.png` and the preview is written. The message says to generate the lettering again on the other key or to restyle the title without that colour. Only the logo matte's own cut (`method: logo-unmix`) is refused; a lettering image returned with its own alpha is measured, not refused. A glow fades out beside the letters and pools in a counter no farther than it reaches there, so glows are not counted.
+- `logo.report.json`: `steps.key.scores.<key>` gains `named`, `clash_at_pct` and `clashes`, and `steps.key.key` is `null` when refused at `key`. `logo` gains `see_through_inside` with `px`, `pct_of_visible`, `glow_reach_px`, `max_pct` and `wide`. `refused_at` can now be `key`.
+- Python callers: `logo_matte.choose_key(mood, box=None, named=None)` takes `named`, the brief's colour words per key from `logo.named_colours(style, scene)`, and returns `key: None` when both keys are the title's colours. `logo_matte.see_through_inside(image)` is new.
+- **Tests**: `tests/gen/test_logo.py` checks that one matching reading is the whole check, that a misreading read again as asked passes at either check, that two misreadings refuse the mood image and refuse the logo and keep it aside with a refusal naming both, that a check reads no more than `MAX_READS` (set to 3, a third reading is taken), that a failed call is not asked again, that a misreading stands when the second call failed, and that the report names the reader model and effort of every reading. The existing refusal tests now script two misreadings. `tests/gen/test_vision_read.py` checks that codex reads on the named model and effort, passed before the image list, that docs/logo.md names both values, and that the facing check's command carries neither. `tests/frames/test_logo_matte.py` checks that a title in both keys' hues (synthetic patchwork letters: pink and plum in magenta's hue, mint in green's) gets neither key, that a colour in a key's hue rules the key out, that a colour the brief names rules it out at the smaller share while the same share unnamed and the word with no such pixels do not, that on green the mint patches are cut see-through and found inside (9.5 % of the visible lettering) while the other key keeps them and finds nothing, that six glow fixtures (a white glow, an outlined cyan glow, a cyan glow pooled in an O's counter on green and on magenta, an orange glow on green, pixel lettering) find nothing inside, that a mint patch walled in by a navy letter on green is still found inside, with the glow's reach at 2 px, when one or four squares of the key in it are cut to nothing, that a hole glued to the letter's edge is inside while sealed and outside once one pixel joins it to the key round the letter, and that big hollow O and A letters find nothing inside, plain or with a glow pooled round a counter whose middle stays clear (three glows). `tests/gen/test_logo.py` checks that a title in both keys' hues is refused at `key` before the lettering is bought, that a named key in the title's hue is kept and the warning says so, that a see-through cut is refused at `matte` and kept aside with no text check, with or without a 9x9 square of the key in the middle of its patch, and that a glowing title is not see-through inside. `tests/logo_lettering.py` gains the `quilt` fixture: square fabric patches in outlined pixel letters, one with a counter, on a key. It also gains `walled_patch` (a navy letter with a mint patch on pure green, with squares or a pixel of the key painted in) and `hollow_letters` (the big O and A shapes), which `lettering` draws through its new `shapes` argument.
+
+**Upgrading from 3.0.0:** Existing runs and commands do not change. This release adds two verbs and a JavaScript player. The wheel now also carries `sprite_gen/video/*.mjs`.
+
+- `sprite-gen video-face` builds a face pack from a reference, a keyed talking clip, and keyed body motions.
+- `sprite-gen face-bake` runs the pack's player through node to bake a voice onto body frames, with optional MP4 and beside video output.
+- Face request kind `sprite-gen-face-request`, version 1, records face geometry, clip placement, a rest loop, and optional own-mouth spans or timelines.
+- Face pack kind `sprite-gen-face-pack`, version 1, carries sprites, body cells, anchors, keeps, rules, a report, a copied player, and SHA-256 digests.
+- The lower-face layer covers the mouth, jaw line, cheeks, and chin. The body's own dark grey and black that reach in from the layer's boundary, such as a headset boom or a choker, the body's own lines in the layer's feather, and a hand that reaches over the face from outside the layer stay above it.
+- Each body frame receives a place, size, and tilt anchor. The pack records anchor residuals and corrects outlying readings against neighbouring frames. A body frame whose own mouth is closed has its place read again on a ring of skin round the mouth, because a head that turns moves its hair, headset, and cheeks further than its mouth, and a frame whose mouth is open takes the move of the read frames round it. The pack records each frame's move and the frames read on the ring.
+- Talking frames are assigned to smile or neutral sets by closed-mouth lift. Entry chooses a matching set and rest.
+- The player `sprite-gen-face-v1.mjs` contains the voice flap, face pick, scene plan, and live canvas playback rules.
+- A clip's own mouth and sound finish before a requested line starts. The voice and layer then wait together for the first frame whose switch to the chosen rest is within the 1.4 jump line. Layer exit also uses that jump line.
+- The live player keeps one queue of every `play` and `say` request, in the order the calls are made, and starts each request on the frame after the one before it has ended, so two voices never overlap. A line placed right after a clip with its own mouth is planned together with that clip, the plan `planScene` makes and `face-bake --play` bakes, and its voice and layer start at the plan's `line_start` after the own-mouth span. The queue has no length limit and drops nothing: a request whose sound does not load or decode, or whose line `planScene` refuses, rejects its promise when its turn comes, and the next request goes on.
+- Bakes check pack digests, changed pixels outside the weight, and composite jumps. Refused bakes retain their frames for inspection.
+- See [docs/face-parts.md](docs/face-parts.md) for the request, pack, player, commands, and limits.
+- **Tests**: `tests/video/test_face_layer.py` uses `tests/talking_face.py` to check smile and neutral sets; clip entry set and rest; own-mouth timelines, including a close during voiced sound and refusal of a missing or never-closing timeline; a head 60 px from its place and tilted 3 degrees; a head that turns, tilting up to 5 degrees about its mouth while its hair, headset, and cheeks move up to 12 px sideways and its mouth stays where it is, with two of its eleven frames open, whose anchor place is within 1 px of the mouth on closed frames and within 2 px on the two open frames and whose tilt is the band's, below minus 2.5 degrees where the turn is fullest; hand, headset boom, and choker keeps; a tongue in the body's own open mouth, joined to a hand by a finger at its corner, covered by the layer; unchanged pixels outside the weight; synthetic cells keeping the key's colour under no coverage; digests and new-folder pack writes; the player flap against its original numpy rule and the pick against the draft Viterbi over every frame; a line waiting for a clip's own mouth and for a frame its layer can come on at; the live player run by node on a fake audio clock, with two lines requested during a greeting's own mouth, three lines requested on the loop, one line requested during the own mouth and one after it, a line whose voice loads late, a line requested right after a clip whose sound loads late, a line whose voice loads only after the greeting's own mouth has ended or only after the greeting has ended, which waits for the greeting to end while the greeting plays to its end with the layer off, a line that plays on the loop when requested right after a clip whose sound fails to load, and a request that fails; loop and post-greeting bakes with greeting frames unchanged byte for byte; and refusal of a changed pack.
+
+**Upgrading from 2.45.3: This release changes defaults for video frames.**
+
+Outputs that change bytes are frames from `video-frames` and `video-set` on a green or magenta key.
+These changes occur within 6 px inside the keyed silhouette only.
+Video frames keyed with explicit `--decontam palette` also change bytes, because they use the same video fit.
+
+Outputs that do not change bytes include runs on a white key, subjects with no interior, and runs with `--alpha-mode brightness`.
+Stills (`cutout`, `gen`) and row extraction (`extract`, `inspect`) do not change bytes.
+Runs with `--decontam off` also give the 2.45.3 bytes back exactly.
+
+To get the 2.45.3 frames back, pass:
+`--decontam off`
+
+- **Default change: `video-frames` and `video-set` now default to `--decontam auto` (before: `off`).**
+ This release updates these defaults to clean chroma-bleed edges automatically.
+
+ On a chroma key, H.264 4:2:0 chroma mixes key colour into strands one to three pixels wide.
+ With decontamination off, a red hair strand on green keeps an olive rim.
+ The `auto` pass restores the subject's own colour to those edges.
+
+ The video default stayed `off` until now out of caution rather than any known defect.
+ The pass was benchmarked on a green key only.
+ The video fit is less decisive than the still fit.
+ In the documentation's benchmark table, the video-fit row (10.8 % residual contamination, 9.38/8.73 halo, 91.4 % recall) was measured in September 2026 with flank recovery.
+ It has not been remeasured since flank recovery was dropped, because those benchmark inputs and tools are not at hand.
+ The diagnosis table in `docs/chroma-alpha.md` (its `decontam` section) has the current video fit's numbers.
+ Still-fit rows in that table are unchanged.
+
+ Earlier fixes resolved the Grok-magenta regression through the key-hue cap and corrected the frame-edge interaction.
+ No blocking defect remains known.
+
+ On synthetic diagnosis clips (CRF 18, `--spill small`, 6 frames, one machine), `auto` reduced key contamination on red strands on painted green from 24.2 % to 10.2 %, and on pure green from 27.4 % to 10.9 %.
+ Halo composite error on dark and white backgrounds shifted from 11.6/12.1 to 9.6/10.1 on painted green, and from 12.0/11.9 to 10.0/9.9 on pure green.
+ Strand recall stayed at 91.4 % on painted green and 92.4 % on pure green.
+ Strand recall no longer rises with the pass, because that gain came from the flank that the video fit no longer recovers.
+ Halo gains are smaller than before for the same reason.
+ On these moving scenes, key contamination is about one point higher than with the hold and settle alone, because a change of call now takes a few frames to reach the fit's colour.
+
+ Key contamination dropped from 3.4 % to 0.5 % on magenta, and from 5.4 % to 1.8 % on Grok darker magenta.
+ Halo shifted from 15.0/19.6 to 12.7/16.4 on magenta, and from 20.7/31.5 to 19.3/30.0 on Grok darker magenta (compared to 17.1/24.7 when flank recovery was present).
+ Strand recall shifted from 87.0 % to 86.9 % on magenta and from 73.3 % to 73.2 % on Grok darker magenta.
+ Outline ink CIELAB error shifted from 19.3 to 20.2 on magenta, and from 21.7 to 22.6 on Grok darker magenta.
+ Red hair counts as key-coloured material there, so the palette is not key-free and the warning line appears.
+
+ Contamination dropped from 20.6 % to 8.8 % on a translucent glow scene (halo 12.6/9.4 to 11.7/8.5, strand recall 85.7 % to 85.4 %).
+ It dropped from 23.8 % to 11.4 % on a small green charm scene (halo 11.8/12.9 to 10.0/11.1, strand recall 90.7 %).
+
+ Changed pixels make up about 2.4 % of each frame (4.7 % in translucent scenes).
+ All changed pixels lie within 6 px inside the silhouette.
+ Nothing outside the silhouette changes any more.
+ Interior pixels remain byte-identical.
+
+ Stills (`cutout`, `gen`) and row extraction (`extract`, `inspect`) still default to `off`.
+ The row extractor frames are a derived cache that `heal` re-derives, so changing their default would silently rewrite existing runs.
+ Stills remain as they were.
+
+- **Temporal fit: The video fit holds edge decisions across frames, blends a change of call over frames, settles still pixels, and drops flank recovery.**
+ With default `auto`, the edge of a subject standing still sparkled from frame to frame where `--decontam off` remained calm.
+ Codec noise pushed edge pixels across the pass's threshold tests from frame to frame.
+ These tests decide blends, tints, material behind, explained pixels, palette colours, and flank coverage.
+ Each crossing changed the written colour by far more than the noise itself did.
+ The raw matte with `off` follows codec noise smoothly, staying calm despite keeping an olive rim.
+
+ `video-frames` and `video-set` now maintain a clip history in clip order.
+ This history passes to each frame through `decontaminate` as `history` (`decontam_history` in `cutout` and `remove_chroma_background`).
+
+ Each test now holds its previous outcome at that pixel until current evidence passes the bar the other way by 16 (an RGB distance, `VIDEO_HOLD`).
+ A palette colour picked in the previous frame stays unless another colour's line passes closer by 16.
+ Moving pixels change their evidence far beyond 16 and are decided afresh.
+ Only near-threshold calls stick.
+ With the hold alone, a call that did change could still move a still edge through the whole gap between the matte and the fit in one frame.
+
+ The blend mixes two renderings made from this frame's evidence at every pixel the pass examines.
+ One is the matte with its key hue capped, and the other is the fit's palette colour at the pixel's light, with the fit's coverage where the call refits coverage and the matte's coverage elsewhere.
+ For a palette-colour change, the fit's rendering mixes the two colours' renderings.
+ A new palette colour waits until the change in hand is done, while a return to the old colour turns that change around.
+ The mix moves toward this frame's call by at most 0.2 a frame (`VIDEO_BLEND`).
+ It moves less if needed to limit the output change to 4 (`VIDEO_STEP`) plus 0.25 (`VIDEO_STEP_MOTION`) per unit the source moved, measured in premultiplied colour or coverage across its 3x3 box.
+ A pixel new to the band starts at its call if it was transparent in the previous frame, and otherwise starts from the matte.
+ Both renderings follow a moving subject at once; the change of call is spread over frames.
+
+ A still pixel whose mix moved, has not reached its call, or came into or left the band moves at most 4 a frame from its previous output, measured in premultiplied colour and coverage.
+ Here, still means its source moved by at most 8 in any channel anywhere in its 3x3 box (`VIDEO_STILL`).
+ A pixel the hard cut keyed in this frame stays transparent.
+
+ Still pixels settle toward the current fit when their mix is at its call in both frames.
+ When a pixel was written in both frames in the same palette colour, and its source is still, it settles.
+ It moves a tenth of the way (`VIDEO_SETTLE` 0.1) toward this frame's fit and stays within 12 per channel (`VIDEO_SETTLE_REACH`) of it.
+ When it must catch up to get within 12, it now moves at most 4 a frame in premultiplied colour and coverage instead of moving all at once.
+ This dampens codec noise while following real slow changes within 12 levels.
+
+ The video fit also drops flank recovery.
+ It no longer gives coverage back to keyed pixels (hard cut background within 3 px of the subject).
+ Decoded chroma blur created faint blends on keyed pixels, and codec noise carried them back and forth over the noise floor.
+ This filled dark gaps between strands with a faint smear that came and went across frames.
+ The video fit now examines the band only (subject pixels within 6 px of the keyed background).
+ The still fit keeps its flank recovery unchanged.
+
+ With history enabled, frame bytes depend strictly on previous frames in clip order and remain deterministic.
+ A single video-fit call without history gives the same band bytes as before, leaving keyed flank pixels as the matte keyed them.
+
+ On a synthetic still scene under decoder noise (red strands 1 to 3 px wide on painted green, 8 frames, sigma 2):
+ Mean edge change between frames on a dark background was 2.34 with `off` (99th percentile 8.3).
+ With the hold and settle alone, the mean was 2.27 (99th percentile 8.3).
+ With the blend and still steps, the mean is 2.25 (99th percentile 8.0).
+ Key contamination on that scene was 6.5 % with `off`, 2.3 % with the hold and settle alone, and 2.4 % now.
+
+ On a second synthetic scene, decoder noise changed between two frames and the source then stayed still for 19 frames.
+ With the hold and settle alone, changed calls appeared in one frame and their pixels stopped moving when the source stopped.
+ Now those edge pixels keep moving toward their new calls, by no more than 4.31 premultiplied a frame including uint8 rounding, and arrive by frame 14.
+
+ Per-frame stats and clip totals include `held_px`, `blending_px`, and `settled_px`.
+ `held_px` counts pixels where a held outcome or colour differed from an independent fit.
+ `blending_px` counts pixels showing a mix of two calls rather than this frame's call.
+ `settled_px` counts pixels the settle or a still step moved from the previous frame's output.
+ In video, `recovered_px` is now 0.
+
+ Keying cost was remeasured on an Intel i5-7500 with a 1080x1920 synthetic clip at CRF 18 and `--spill small`, six frames, one process per run, in the same session.
+ Keying took 1.14 s a frame with `off`, 3.25 s with the hold and settle alone, and 3.36 s now.
+ Peak memory was about 400 MB with `off`, 945 MB with the hold and settle alone, and 1155 MB now, adding about 365 MB over `off` per megapixel.
+ Because `video-set` keys three items at once by default, it can use about 2.3 GB more than `off` at that size.
+
+- **Guards: Two new guards protect key-coloured details and material behind edges in the video fit.**
+ The still fit output is unchanged byte for byte, but explicit `--decontam palette` runs in video also use these guards.
+
+ The key-coloured parts guard protects small details that share the key colour.
+ A subject can own a key-coloured part too small for the palette to keep, such as a green charm on red hair under a green key.
+ When such a part covers under 0.5 % of the interior, the palette learns key-free colours.
+ Without the guard, the pass repainted the rim in the nearest key-free colour, turning the green charm's rim brown.
+
+ Now, when the palette is key-free, band pixels within 6 px of such a part keep the matte's bytes.
+ There is no flank in video any more, so this guard covers band pixels only.
+ This applies to pixels near parts that are opaque, deeper than 6 px, and have key hue above 8.
+ The key-hue cap leaves those pixels alone.
+
+ On synthetic tests, the share of the charm's key-coloured edge pixels that lost half their key hue or coverage was 0.77 with `off` and 0.82 now.
+ Its colour error was 41.7 with `off` and 45.6 now (64.9 without the guard in the diagnosis).
+
+ The material-behind guard preserves edges where subject material continues to the silhouette boundary.
+ A band pixel keeps the matte's bytes when its colour, observed directly or at its own luma, falls within the opaque margin of the mean colour of subject pixels right behind it.
+ This check reads subject pixels deeper than 2 px within a 3 px box radius.
+ Such pixels are treated as material continued to the edge rather than blends or tints.
+ The key-hue cap still applies to them.
+ Unlike the still fit, this guard does not require the pixel to be free of the key's hue, because decoded chroma blur gives every edge some key colour.
+
+- **Diagnostics: A one-line stderr warning and new report fields track skipped frames and guard activity.**
+ `video-frames` prints a single line on stderr after its JSON summary when edge decontamination warrants attention.
+ The line starts with `video-frames: warning: decontam auto ...` and ends by naming `--decontam off` as the way to keep the matte as it is.
+
+ The warning prints when `auto` ran on no frames, when `auto` skipped some frames, or when the subject owns key-coloured material so the palette is not key-free.
+ On magenta keys, the red hair's blue channel sits more than 8 above its green, making the hair key-coloured material (9.6 % of the interior on magenta and 6.6 % on Grok's darker magenta) and triggering this warning.
+ The warning also prints when the key-coloured part guard kept edge pixels, reporting how many and noting that thin details farther out may be repainted.
+ A few key-hued pixels deep inside from codec noise guard no edge and raise no warning.
+ Brightness alpha raises no warning.
+ `video-set` prefixes this warning line with the item name and records it under `warnings` in the set report.
+
+ The JSON report adds `decontam.reason` for the first skip reason and `decontam.skipped_frames` when frames are skipped.
+ Per-frame stats and clip totals in the video fit add `key_part_kept_px`, `behind_kept_px`, `held_px`, `blending_px`, and `settled_px`.
+ Where `auto` cannot run, frames remain exactly as the matte keyed them.
+ The report records "the white matte has no key colour to remove" for a white key.
+ It records "no interior to learn the subject's colours from" when no pixel lies deeper than 6 px inside the silhouette.
+ Under `--alpha-mode brightness`, `auto` defaults to off, recording `{"mode": "auto", "applied_frames": 0, "reason": "brightness alpha has no key colour to remove"}`.
+ Explicit `--decontam palette` with brightness alpha remains refused.
+
+ Known limits apply to this release.
+
+ The hold works on pixels that stay put.
+ A change of call on a still edge arrives at most 4 a frame.
+ The largest change, between the matte's full coverage and a faint fit, can take up to about 64 frames, or about 2.7 s at 24 fps.
+ Until it arrives, the edge shows a mix of the matte's colour and the fit's.
+ A strand that moves is decided afresh in every frame, while its change of call is spread over a few frames and both renderings follow it.
+ A moving edge still changes from frame to frame as its colour does, so a red rim moving over a dark background changes more than the olive rim `off` leaves.
+ Pixels whose call changes show a mix of the two calls for a few frames.
+
+ The settle follows a slow change within 12 levels per channel and catches up past that at most 4 a frame.
+
+ The video fit gives back no coverage the hard cut keyed.
+ Outer pixels of a soft edge that the cut erased stay erased.
+ Only on stills, outside a dark outline the flank can give a few faint pixels in the subject's colour.
+
+ A thin feature whose colour is absent from the interior can be read as a palette colour plus key.
+ For example, a thin yellow line beside red hair with a pink highlight turned pink (colour error 26.2 with `off`, 47.5 now).
+ `--decontam off` keeps that line.
+
+ A thin key-coloured detail farther than 6 px from any key-coloured interior is repainted in a palette colour.
+
+ The thinnest strands retain some olive because decoders share chroma across aligned 2x2 blocks, leaving a one-pixel strand with half the key's chroma.
+ A block-aware fit is planned separately.
+
+ Pixel-art rows binarizing alpha, the green-only benchmark, and increased processing time and memory remain known limits.
+
+- **Tests**: `tests/frames/test_chroma_decontam.py` checks that both video verbs default to `auto` and that still verbs and the row extractor do not.
+ It checks that `off` gives the engine's original bytes.
+ It checks that `video-set` hands its value to `video-frames` and lists the warning.
+ It checks that a white key, a subject with no interior, and brightness alpha give the same bytes as `off` with the reason.
+
+ A new section tests the video fit over time on the red-strand scene standing still while decoder noise changes every frame (luma per pixel, chroma per aligned 2x2 block, eight frames).
+ The default's edge changes from one frame to the next no more than `off`'s, in mean and at the 99th percentile.
+ The edge is still cleaned, with key contamination at most half of `off`'s.
+ Clip totals count held and settled pixels, and the first frame has none.
+ A frame given twice comes out with the same bytes both times.
+ Another test decodes one frame of the red-strand scene, then holds a second noise draw (sigma 3) still for nineteen frames.
+ After the source stops changing, the default keeps moving toward the calls the noise changed.
+ No pixel moves more than `VIDEO_STEP` in one frame in premultiplied colour or coverage, plus one for uint8 rounding.
+ It arrives by the last frame.
+ Clip totals count `blending_px`, and the first frame has none.
+
+ The video fit leaves every pixel the hard cut keyed transparent and recovers nothing.
+ The still fit still recovers its flank.
+
+ Changed tests reflect dropped flank recovery in video.
+ A head 6 px under the top frame edge passes the edge gate under the default and keeps the blur rows below the edge band as the matte keyed them.
+ For magenta skin tone in a 4:2:0 frame, the video fit's halo is read on the band where it acts (at most 0.9 of `off`'s), and the keyed flank keeps the matte's bytes.
+ The still fit keeps its halved halo.
+
+ The rim of a small green charm keeps the matte's pixels and loses at most 0.1 more than `off` while strands away from it are cleaned.
+ On magenta and Grok magenta, halo and alpha error do not rise.
+
+ A few key-hued pixels deep inside raise no warning.
+ `video-frames` prints the warning line on stderr.
+
+ `tests/video/test_gait_guard_anchor_wide.py` has its stand-in for `run_frames` take `decontam` and checks that the set's `auto` reaches it.
+
+**Upgrading from 2.45.3: Every cut 2.45.3 passed that neither new reading refuses gives the same loop files byte for byte.** Strip, sidecar, frames, GIF and WebP bytes match with the same stderr save new warning lines, measured on a batch of walk clips cut with caller arguments (the automatic walk cut, cuts by hand, forced cuts). The report gains `step_gate` on walk or run loops and `cycle.step_count` on fixed walk or run cuts, `producer` names the new version, and the CLI summary gains `step_gate`, whose `jitter` names the frames entered by steps over 2.5 that are a pixel's jitter, along with `jump_repair.unfixed`. Refusals outside the new readings keep their lines word for word, except the seam line's end where warning lines name a part on a beat of its own. Callers matching failure lines by first words need rules for `video-loop: loop step ratio` (the clip jumps inside: film again), `video-loop: loop step count refutes the fixed cut` (cutting again by hand failed), and `video-loop: loop frames left off the flow` only if passing `--unfixed refuse`; failure reasons can also be read from `seam_refusal`. Any `--seam-max` past 2.5 lifts the step gate and count refusal, so forced delivery keeps passing `--seam-max 1000`. Reading feet on a fixed walk or run cut costs less than the distance matrix read by every cut. As a known limit, the seam gate and the body anchor's rule from 2.45.3 still read frames, not drawings, so a walk held on twos or threes whose cut wraps between two drawings is still refused where it closes between its drawings.
+
+- **Behavior change: Walk and run loops that play round now pass a step gate that inspects spacing between drawings.** After the seam gate, cells are read between drawings rather than frame by frame, so held animation on twos or threes does not appear uneven when drawings span multiple frames. The largest step from one drawing to the next, the wrap included, over the mean of the others, must be at most `STEP_RATIO_MAX` (2.5), else the loop fails with `video-loop: loop step ratio <ratio> exceeds 2.5 (<kind> length <L> frames from <start>, into frame <frame>, read between its <n> drawings); the loop jumps inside — regenerate the clip`, with jump repair reason `: frame <frame> lies off the walk's flow, and the jump repair's frame there was refused (<faults>), so it plays as filmed` before ` — regenerate the clip` where present. A step over 2.5 is exempt from the bound when it is a pixel's jitter (`loop.step_jitter`): the move that aligns its drawing with the previous drawing with the least coverage difference, measured on alpha so colour has no effect, is at most `STEP_JITTER_PX` (1.5) pixels of the frames as filmed, and the step with that move taken back is within 2.5 of the mean. In a walk going away from the camera, foot rises of a whole crop row measure 2.5 to 3.6 times the mean as drawn, black or grey, but move one pixel and pass without a warning line. One frame of a 400 px tall walk cut moved 6 px and back moves 2 pixels of the frames as filmed, and the gate refuses the loop in every colour, including black. The report records `step_gate` on every walk or run loop (`drawings`, `hold`, `mean_step`, `largest_ratio`, `largest_from`, `largest_into`, `wrap_ratio`, `max`, `jitter`, `lifted`, `kept`; `skipped` for fewer than three drawings). The bound is the larger of 2.5 and `--seam-max`, so any `--seam-max` past 2.5 lifts it; a scan or forced delivery with `--seam-max 1000` keeps a loop whose largest step is over 2.5 with warning `video-loop: warning: the loop's largest step between drawings is <ratio>x their mean (into frame <frame>), over 2.5: it jumps inside — kept, as --seam-max <seam-max> lifts the step gate` and `step_gate.kept`.
+- **Behavior change: Fixed cuts fail when foot crossings count an odd number of steps.** Manual walk or run cuts using `--cycle fixed` now read the clip's foot crossings and evaluate the cut, matching `--anchor motion-auto`. The report records `cycle.step_count` with `chosen_by: caller`. A cut counted an odd number of steps fails with `video-loop: loop step count refutes the fixed cut <start>/<L> — the clip's crossings count one step, each seen where a walk loops on two, and an odd count swaps the legs at the wrap; cut it again two steps long (about <2 steps> frames)`. An even count is not refused by the count check, and the exemption `--anchor motion-auto` makes for a pass hidden among feet held together (the clip a cut on the same picture) applies identically through shared `local_cycle.same_picture_count`. The strip is unchanged, and there is no `steps` field. Any `--seam-max` past 2.5 lifts this refusal; a scan or forced delivery with `--seam-max 1000` keeps an odd step cut with warning `video-loop: warning: the clip's crossings count the fixed cut <start>/<L> one step, each seen: a walk loops on two steps, and an odd count swaps the legs at the wrap — kept, as --seam-max <seam-max> lifts the step gate` and records `cycle.step_count.lifted`.
+- **New: Refused jump repair drawings are listed in `jump_repair.unfixed` and can fail the command.** When jump repair refuses a frame group, its frames remain as filmed; where the playing loop still reads a drawing of it 3.0 or more of its window's usual steps off the flow, that drawing is recorded in `jump_repair.unfixed` alongside `refused` (the faults). Every `unfixed` drawing prints warning line `video-loop: warning: frame <frame> of the loop lies <off>x its window's usual step off the walk's flow after the jump repair: the group that would bring it back was refused (<faults>), so it plays as filmed — a jump played as filmed; --unfixed refuse refuses such a loop (docs/loop-repair.md section 2)`. A new flag `--unfixed warn|refuse` (default `warn`) controls handling: `refuse` fails such a loop with an error line starting `video-loop: loop frames left off the flow — `. This failure is not lifted by `--seam-max`.
+- **Fix: The seam gate failure line explains the cause where warning lines know it.** The first words of the failure line stay the same up to `the cycle does not close — `; where warning lines name a part on a beat of its own (an `--anchor motion-auto` cut two steps long by the clip's crossings whose wrap the gate refuses), the rest says so and names what became of the overlapped wrap, for example `video-loop: loop seam ratio <ratio> exceeds 2.0 (periodic length <L> frames from <start>); the cycle does not close — the cut covers two steps by the clip's crossings, and a part on a beat of its own (a tail, a held prop) closes on no cut of two steps: the overlapped wrap was not made (turned off (--overlap-wrap off)) — regenerate with that part moving on the walk's beat`. Elsewhere the line is word for word as before. Every refusal by the wrap, steps, or count records `seam_refusal` in the report (`reading`: `wrap`, `steps` or `count`). For `wrap`, it records `ratio`, `max`, `reason` (`own-beat` or null), and `overlap_wrap`. For `steps`, it records `ratio`, `max`, `into`, `reason` (`repair-refused`, `unfixed` or null), plus `frames` and `refused` where a reason was found. For `count`, it records `cut`, `verdict`, `k`, `why`, and `two_steps`.
+- **Tests** — `tests/video/test_loop_silent_pass.py`: a side walk in place with a middle frame moved 10 px fails the step gate while its wrap passes, recording `step_gate` and `seam_refusal`, kept by `--seam-max 1000` with a warning line; an eight drawing walk on threes passes when frame by frame steps exceed 2.5; melted ponytail outlines and smeared stand in RIFE frames stay `unfixed` with faults, cite the refused frame in step gate lines, and fail under `--unfixed refuse`; CLI tests confirm `--unfixed` defaults to `warn` and rejects other words. Hand cuts fail on one step, pass at two, keep one step cuts under `--seam-max 1000`, and exempt hidden far feet on twos. A walker whose tail swings on its own beat fails seam checks with the reason in its line and `seam_refusal`; a sideways wrap shift keeps its line word for word with `seam_refusal.reason` null. The walk going away from the camera passes with foot rises of a whole crop row as drawn, black and in a grey near the backdrop: its steps over 2.5 times the mean move one pixel and are recorded in `step_gate.jitter`. A standing side walk with a frame moved 2 px and back fails on that step as drawn, black and in that grey, with every frame's alpha the same. In `tests/video/test_body_anchor_gate.py`, the sliding side walk with its first frame moved 3 px is refused on the step into frame 1: those 3 px take up the sideways slide at the wrap and put the jump inside the loop. The seam still reads the source frames and is not read again.
+
+- **Fix: Windows run dir lock handling.** Every command that writes a run dir (for example `extract`, `compose-atlas`, `export-pngs`, `unpack-atlas`) takes a single-writer lock: the entry `.sprite-gen.lock` inside the run dir. Before this fix, on Windows only, when that name held a link pointing at a file that does not exist, the writer followed the link and made the lock file at the link's target, outside the run dir, and that file was left behind when the writer released the lock; also on Windows only, a folder at that name, a link to a folder, or a link whose target is written with forward slashes ended the command with a bare `OSError` (`EACCES` or `EINVAL`) instead of the named refusal. Now on Windows a link or a folder at that name is refused by name, the same as on macOS and Linux (`run dir lock ... is not a lock file (a link or a folder)`), and nothing is followed, made or removed, while macOS and Linux behave exactly as before. The test is `tests/spec/test_run_dir_lock.py`.
+
## v3.0.0 - Remove rig layer composition
**Upgrading from 2.46.0: `sprite-gen compose-layers` and its other launch forms are removed, and rig layer declarations are no longer read.** `compose-atlas` no longer writes a manifest `rig` block or `animation.rows.<state>.track` for a run that declared a rig. Runs that never declared `rig`, `layers` or a state `track` get the same manifest as before. Existing run files and `layers/` folders stay on disk.
diff --cc SKILL.md
index b11cb19,ddcc713..c5da475
--- a/SKILL.md
+++ b/SKILL.md
@@@ -95,18 -115,16 +95,18 @@@ front-facing observations also remain u
| Continue or edit an existing clip | `video-extend`, `video-edit` | [video](docs/video.md) |
| A clip run left unfinished (its line or report names a `request_id`): ask for it again, never submit it again | `video-resume --request-id <id>` | [video](docs/video.md#sprite-gen-video-resume--ask-again-for-an-unfinished-generation) |
| Grok video sprites | `video-set` | [video-pipeline](docs/video-pipeline.md) |
- | A soft part of a walk loop or cycle frames sways with the body (the Sway layer): an ellipse after `video-cycle-align`, `--read-on <sha256>` for a cut, `--stretch-floor D` for least area, `--frames` for full frames, `--breathe` for the breath drive, a flat share to move a region whole, and `--gain-across` for across gain | `video-sway` (old name `video-follow`) | [video-pipeline](docs/video-pipeline.md#6-the-sway-layer--video-sway) |
+ | A soft part of a walk loop or cycle frames sways with the body (the Sway layer): an ellipse after `video-cycle-align`, `--read-on <sha256>` for a cut, `--stretch-floor D` for least area, `--frames` for full frames, `--breathe` for the breath drive, a flat share to move a region whole, `--gain-across` for across gain, and `--reference` for a way in or out of a loop | `video-sway` (old name `video-follow`) | [video-pipeline](docs/video-pipeline.md#6-the-sway-layer--video-sway) |
| Where an ellipse is carried in every other cell, and what the move changes there (an arm crossing a chest moves with it; the stretch, the bend and the seam): a record and boards of every cell, nothing moved; a seam under a third moving region is not counted | `video-sway-inspect` (old name `video-follow-inspect`) | [video-pipeline](docs/video-pipeline.md#inspecting-a-sway--video-sway-inspect) |
-| A set's directions on one sheet, standing on one ground line (a 3×3 board, an engine import): rows in compass order S SW W NW N NE E SE from each loop's `--view`, one cell size, every row as cut, an optional centre picture (`--center`) at the rows' standing height; loops of different lengths are laid and said to differ (`same_length` false) — align the set first | `video-set-sheet` | [video-pipeline](docs/video-pipeline.md#7-one-sheet-for-a-set--video-set-sheet) |
-| A walk or run that stops, from the clip's own start played backwards: a one-shot strip (`loop: false`, `hold_last: true`), GIF, WebP and report beside the loop, ending on the still as filmed; leaves the loop from the cell nearest the entry (`from_cell`), drift taken out across the frames by a straight share; a seam past 1.4 steps (`--seam-max`), a run-up that comes back to a pose it left (another motion, however short) or one over 1.5 cycles (`--run-up-max`) refused; ghost screen checked, cells placed and anchored to match the loop's pivot | `video-stop` | [video-pipeline](docs/video-pipeline.md#8-a-walk-or-run-that-stops--video-stop) |
+| A set's directions on one sheet, standing on one ground line (a 3×3 board, an engine import) | `video-set-sheet` | [video-pipeline](docs/video-pipeline.md#7-one-sheet-for-a-set--video-set-sheet) |
+| A walk or run that stops, from the clip's own start played backwards | `video-stop` | [video-pipeline](docs/video-pipeline.md#8-a-walk-or-run-that-stops--video-stop) |
+| Build a talking lower-face pack anchored to every frame of body motions from a reference and keyed clips. | `video-face` | [face-parts](docs/face-parts.md) |
+| Bake a voice and the pack's face layer onto body frames, optionally after a clip's own mouth and sound. | `face-bake` | [face-parts](docs/face-parts.md#face-bake) |
| Compare the currently displayed loop with a final candidate, including after follow-through | `video-loop-compare` | [loop-comparison](docs/loop-comparison.md) |
| Restore post-processing damage in the current cut from its exact source times, preserving normal cells and playback | `video-source-manifest` → `video-loop-repair` → `video-loop-compare` | [source restoration](docs/loop-comparison.md#restoring-the-active-cut-from-source) |
-| Video sprites from a clip your agent makes with a connected video MCP (ZCRE, 지크) | `video-canvas`, `video-prompt --no-last-frame`, the agent's own MCP tools (quote, user approval, generate, save the mp4), then `video-frames` and `video-loop` (a walk or run with `--anchor motion-auto`, which holds its size), and for a walk or run cut in two or more directions `video-cycle-align --view …` over their loop directories (a set it stops on a loop that may hold two cycles: look at that loop, count its strides, and pass `--cycles <loop>=<k>`; a loop the report lists under `unnamed_feet` — its view could not tell the feet apart, or only by too small a margin (`low-margin`): look at its first candidate frame, say which own foot lands there, and align again with `--foot <loop>=left|right`). `video-set` is not run on this route, so the set stage it runs by default (`--align-cycles auto`) is yours to run. sprite-gen never calls the MCP. Walk, run and jump only: ZCRE's `grok-imagine-video-1.5` has no end frame, so idle, attack and diagonal walks are refused unless `--unpinned` | [video-pipeline](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre) |
+| Video sprites from a clip your agent makes with a connected video MCP (ZCRE, 지크) | `video-canvas`, `video-prompt --no-last-frame`, the agent's own MCP tools (quote, user approval, generate, save the mp4), then `video-frames` and `video-loop`, and for a walk or run cut in two or more directions `video-cycle-align --view …` over their loop directories. sprite-gen never calls the MCP. | [video-pipeline](docs/video-pipeline.md#a-clip-from-a-video-mcp-on-your-agent--zcre) |
| Typography logo, wordmark or title lettering (로고, 타이포그래피, 타이틀 글자): the title lettered into a title screen or poster first, then only its lettering redrawn on a key and cut out with its glow; the text is read back and a misspelt logo refused | `logo --text … --style …` (`--mood` to start from a picture you have, `--lettering` to cut again for nothing) | [logo](docs/logo.md) |
| Ordinary image or edit | `gen --provider codex` or `gen --provider grok` (the subscription login first; without one grok uses `XAI_API_KEY`, and a codex signed in with an API key bills it — both per call, said on stderr) | [gen](docs/gen.md) |
-| Pixel art the model draws directly as a grid, 8–48 px (best at 32 or less): an icon, a prop, a monster, a character still, four directions, a walk draft, a tile, or a hand-drawn motion of up to 64 frames drawn four a call (`--motion`, `{name, pose}` frames, `--duration-ms`), in a style of your own (`--style`) — on your Claude subscription (`claude` signed in), or without one on `ANTHROPIC_API_KEY`, **billed per call**; `grid.txt` is the truth, `--grid` re-renders an edited one, `--resume` collects a batch instead of buying it twice | `pixel-draw` | [pixel-draw](docs/pixel-draw.md) |
+| Pixel art the model draws directly as a grid, 8–48 px, on your Claude subscription (`claude` signed in), or without one on `ANTHROPIC_API_KEY`, **billed per call** | `pixel-draw` | [pixel-draw](docs/pixel-draw.md) |
| Image generation with no login available (server, container, SaaS) | `gen --provider openai` — server/SaaS route on `OPENAI_API_KEY`, **billed per call**, never a default; it runs only when named, or when the user chose it for a codex that cannot run | [gen](docs/gen.md#subscription-first--openai-runs-only-when-you-chose-it) |
| Base and direction anchors | `anchor` | [directional-anchor-workflow](docs/directional-anchor-workflow.md) |
| Curation view or existing image candidates | `curation`, `unpack-atlas --pngs-dir` | [curation](docs/curation.md) |