rig-parts 2.66.0 → 2.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/STABILITY.md CHANGED
@@ -615,7 +615,7 @@ and do not certify visibility. See the
615
615
  | `compare` | `--left`, `--right`; optional `--map`, `--help` (`-h`) |
616
616
  | `rig` | `--config`, `--parts`, `--out`; optional `--idle-keys` (ctl, direct), `--page-edges` (pot, free), `--pack-shape` (rect, polygon), `--page-size`, `--help` (`-h`) |
617
617
  | `check-parts` | `--parts`, `--out`; optional `--json`, `--help` (`-h`) |
618
- | `check` | `--rig`, `--out`; optional `--parts`, `--source`, `--page-edges`, `--pack-shape`, `--page-size`, `--requirements`, `--seam-pairs`, `--keep-stills`, `--no-extremes` (issue #829), `--set` or `--all-sets` (issue #454), `--environment` (issue #538, additive), `--wind-band` (issue #590, additive), paired `--loop-seam-bar` and `--loop-seam-cap` (issue #1590), `--json` (issue #904), `--help` (`-h`) |
618
+ | `check` | `--rig`, `--out`; optional `--parts`, `--source`, `--page-edges`, `--pack-shape`, `--page-size`, `--requirements`, `--seam-pairs`, `--keep-stills`, `--no-extremes` (issue #829), `--set` or `--all-sets` (issue #454), `--environment` (issue #538, additive), `--wind-band` (issue #590, additive), paired `--loop-seam-bar` and `--loop-seam-cap` (issue #1590), `--json` (issue #904), `--help` (`-h`). Standalone `--clip-stretch` takes one scene path and prints only text (issue #1623). |
619
619
  | `loop` | `--frames`, `--out`; optional `--palette`, `--help` (`-h`) |
620
620
  | `build` | `--config`, `--source`, `--full`, `--out`; optional `--head` (as for `assemble`), `--seam`, `--project`, `--page-edges`, `--pack-shape`, `--page-size`, `--loop`, `--lead-in`, `--requirements`, `--idle-keys`, `--seam-pairs`, `--keep-stills`, `--no-extremes` (issue #829), `--alt` (as for `assemble`, issue #454), `--set` or `--all-sets` (as for `check`, issue #454), `--environment` (as for `check`, issue #538, additive), `--wind-band` (as for `check`, issue #590, additive), `--help` (`-h`) |
621
621
  | `compose` | `--scene`, `--out`; optional `--requirements`, `--accept`, `--page-size`, paired `--loop-seam-bar` and `--loop-seam-cap` (issue #1590), `--output-profile` (`preview`) and `--no-extremes` (issue #1610), `--help` (`-h`) |
@@ -1205,15 +1205,17 @@ execution in historical evidence is inferred from a current export.
1205
1205
  | `rig.json`, `motion.json`, `mesh_report.json`, `images/`, `retune.json` | `retune` | the input revision's files, `rig.json` with `constraints` and `invariants.detached` replaced and `motion.json` with `animations.idle` replaced by the config's build, every other file byte for byte; `retune.json` is spec `rig-parts-retune/1`: `request` (`idle_keys`, `page_edges`, `pack_shape`), `versions` (`parts`, `rigc`), `input` (`rig` — `path`, `bytes`, `sha256` per file — `config_sha256`, `parts_json_sha256`), `held` (`compared`, `not_compared`), `changed` (`constraints` — each `name`, `type`, `fields` — `added`, `removed`, `idle`: `tracks_changed`, `duration` as before and after), `preserved` (`identical`, `spliced`), `revision` (per file as `input.rig`), `check` (`input`, `revision`: `pass`, `measured`, `not_met`, `skipped`, `physics`, then `line` and `status` — issue #541, additive, the spec stays `rig-parts-retune/1`: `line` is the last line `check` prints on that tree, byte for byte, and `status` every block's status as that tree's `check.json` records it, by name in the file's order — `gate`, `loop` and `seam` read from their figures, every other block its own `status`, a block the file does not write absent; `scope`) |
1206
1206
  | `input-check.json` | `remesh --record-input-check`, `retune --record-input-check` | spec `rig-parts-input-check/1` (issue #617, additive): `versions` (`parts`, `rigc` — `rigc --version`'s whole output), `options` (`page_edges`, `pack_shape`, `page_size` when `--page-size` is given, `requirements` — null, or `path` as resolved and `sha256`), `rig` and `parts` (`dir` as resolved, `files` — `path`, `bytes`, `sha256` per file: every file under `--rig`; `parts.json` and every file under `parts/`), `check` (the input's check side as `remesh.json` carries it); `--input-check` reads it back, and either command's serves the other |
1207
1207
  | composed turn producer inputs | `compose` | issue #1344 intentionally admits previously refused yaw/pitch derive maps, turn deform offsets/transforms, depth-grid generator images, bone inherit modes and producer mesh/fold invariants; every embedded reference is resolved and prefixed except the shared default skin. Mesh-slot ceilings sum and per-mesh triangle ceilings take the maximum, using actual counts only for unbudgeted members. Weighted lengths scale; image-sized depth grids at scale other than 1 are refused by `SCENE_SCALE_EXACT`. Other nested constructs remain refused. Previously passing scene payloads are byte-identical; the existing `check/check.json` requirement is retained, so `rig` plus `rigc build` alone is not a checked character. |
1208
- | named scene plates | `compose` | issue #1345 adds optional `plates[]`: required `name`, `image`, `provenance`, `at: [x, y]`; optional `note`, `editor_receipts`, `opaque_backdrop`. `at` is two finite integers for the image top-left in canvas pixels, y down from the top-left origin; negatives/outside allowed, no scale, native image size including oversize. Each bone/slot/attachment uses its declared name, bone under root at `(0,0)`; attachment centre is `stage.x + at[0] + width/2`, `cropToSpineY(at[1] + height/2, canvas.height)`. Each layer's token is required exactly once in draw order, with duplicate/missing/unknown/collision refusals. Names cannot collide with root, legacy plate, shared idle, character ids or prefixed bones/slots/animations; a plate name already refused by `SCENE_PLATE_NAME_FREE` or `SCENE_PLATE_NAME_UNIQUE` does not also draw a cascaded `SCENE_ORDER_COMPLETE` (issue #1350). Only that layer's explicit `opaque_backdrop: true` exempts it from compose alpha checks; an opaque declared backdrop must additionally meet width >= canvas.width AND height >= canvas.height (the rig stage), matching core 3.8.0 A19 size inference; otherwise SCENE_PLATE_BACKDROP_SIZE refuses before emission (placement coverage of the stage is the scene author's, not checked by the tool). Transparent layers have no size floor. rigc A19 remains enabled. Named images use `scene-plate.<index>.png` (atlas region `scene-plate.<index>`, by declaration index) with collision checks. The `[compose]` header line names composed `plates[]` in declaration order (`<N> named plate(s): <name>, ...`) when `plates[]` is non-empty and prints `no plate` only when neither `plate` nor `plates[]` is present (issue #1350). The additive report `plates` array records declaration, native size and PNG hash; absent declaration retains legacy output bytes and fixed first-plate behavior. |
1209
- | scene named animations | `compose` | issue #1346 adds optional `scene.animations`, a name-to-rigc-MotionAnimation map resolved against final scene bones/groups/easings. A scene-authored key on `root` moves the whole scene, including plates and characters. Imported character animations, including `idle`, are refused with `SCENE_ROOT_SHARED` if they key `root` directly or through a group. New names add clips at their own declared durations; `idle` appends timelines while retaining existing character tracks, deforms, metadata and physics. Without `idle_repeats`, idle duration mismatch is `SCENE_DURATION_AGREES`. Issue #1511 adds `characters[].idle_repeats`, a safe integer of at least two requiring an explicit scene idle. Its declared duration equals each source period times its count exactly, with an omitted count playing once. Each repeated source must close at its non-wrapping stored end. Character keys and absolute Bezier time handles repeat on the source clock, with one equivalent key at a shared endpoint and continuous physics across it. Scene timelines append once, prefixed side clips keep their durations, and the gated composed idle also closes at its stored end. `scene.json` retains each source `idle_duration`, adds `idle_repeats` only on opted-in rows, and gives the scene period as top-level `idle_duration`. `compose-run.json` keeps its schema. Imported non-idle names remain reserved. Core owns missing fields, unknown bones/references, duplicate property tracks and bad times. Unknown prefixed bones also name the character ID. Generated names `<id>:yaw_dial`, `<id>:pitch_dial`, and `<id>:<turn.body.slider>` (default `<id>:body_yaw_dial`) are stable; renaming them requires a major version. A dial exists only when generated by its character. Rotation keys use that slider's declared `[from, max]` bounds; out-of-range values are `SCENE_DIAL_KEY_RANGE`, unreadable bounds `SCENE_DIAL_RANGE_DECLARED`, never guessed. Slider-input keys require explicit numeric values; derive inputs are refused as `SCENE_DIAL_KEY_DECLARED`, including derive alongside a raw value. Bounds apply to the matching scalar or paired translate/scale/shear input channel; inherited group names are refused with `CE_COMPILE_ANIMATION_GROUP_UNKNOWN`. Each declared clip's gated posed endpoint values at 0 and duration with physics omitted must agree before emission (`SCENE_ANIMATION_LOOP_CLOSES`); physics-on frames are not measured by this check. Absent declaration retains stable output bytes at the same paths. Core `check/build/run.json` records fresh `started_at` and `finished_at` clocks; comparisons report these raw differences separately and require all other receipt fields and output bytes to match. |
1208
+ | named scene plates | `compose` | issue #1345 adds optional `plates[]`: required `name`, `image`, `provenance`, `at: [x, y]`; optional `note`, `editor_receipts`, `opaque_backdrop`. `at` is two finite integers for the image top-left in canvas pixels, y down from the top-left origin; negatives/outside allowed, no scale, native image size including oversize. Each bone/slot/attachment uses its declared name, bone under root at `(0,0)`; attachment centre is `stage.x + at[0] + width/2`, `cropToSpineY(at[1] + height/2, canvas.height)`. Each layer's token is required exactly once in draw order, with duplicate/missing/unknown/collision refusals. Names cannot collide with root, legacy plate, shared idle, character ids or prefixed bones/slots/animations; a plate name already refused by `SCENE_PLATE_NAME_FREE` or `SCENE_PLATE_NAME_UNIQUE` does not also draw a cascaded `SCENE_ORDER_COMPLETE` (issue #1350). Only that layer's explicit `opaque_backdrop: true` exempts it from compose alpha checks; an opaque declared backdrop must additionally meet width >= canvas.width AND height >= canvas.height (the rig stage), matching core 3.8.0 A19 size inference; otherwise SCENE_PLATE_BACKDROP_SIZE refuses before emission (placement coverage of the stage is the scene author's, not checked by the tool). Transparent layers have no size floor. rigc A19 remains enabled. Named images use `scene-plate.<index>.png` (atlas region `scene-plate.<index>`, by declaration index) with collision checks. The `[compose]` header line names composed `plates[]` in declaration order (`<N> named plate(s): <name>, ...`) when `plates[]` is non-empty and prints `no plate` only when neither `plate` nor `plates[]` is present (issue #1350). The report includes its additive `plates` array with declaration, native size and PNG hash when named plates are declared. Omitting the declaration retains fixed first-plate behavior. |
1209
+ | scene named animations | `compose` | issue #1346 adds optional `scene.animations`, a name-to-rigc-MotionAnimation map resolved against final scene bones/groups/easings. A scene-authored key on `root` moves the whole scene, including plates and characters. Imported character animations, including `idle`, are refused with `SCENE_ROOT_SHARED` if they key `root` directly or through a group. New names add clips at their own declared durations; `idle` appends timelines while retaining existing character tracks, deforms, metadata and physics. Without `idle_repeats`, idle duration mismatch is `SCENE_DURATION_AGREES`. Issue #1511 adds `characters[].idle_repeats`, a safe integer of at least two requiring an explicit scene idle. Its declared duration equals each source period times its count exactly, with an omitted count playing once. Each repeated source must close at its non-wrapping stored end. Character keys and absolute Bezier time handles repeat on the source clock, with one equivalent key at a shared endpoint and continuous physics across it. Scene timelines append once, prefixed side clips keep their durations, and the gated composed idle also closes at its stored end. `scene.json` retains each source `idle_duration`, adds `idle_repeats` only on opted-in rows, and gives the scene period as top-level `idle_duration`. `compose-run.json` keeps its schema. Imported non-idle names remain reserved. Core owns missing fields, unknown bones/references, duplicate property tracks and bad times. Unknown prefixed bones also name the character ID. Generated names `<id>:yaw_dial`, `<id>:pitch_dial`, and `<id>:<turn.body.slider>` (default `<id>:body_yaw_dial`) are stable; renaming them requires a major version. A dial exists only when generated by its character. Rotation keys use that slider's inclusive `[from, max]` bounds. Omitted `from` defaults to zero and `max` must be explicit and finite. Out-of-range values are `SCENE_DIAL_KEY_RANGE`. Missing `max`, malformed bounds and reversed bounds are `SCENE_DIAL_RANGE_DECLARED`. Slider-input keys require explicit numeric values; derive inputs are refused as `SCENE_DIAL_KEY_DECLARED`, including derive alongside a raw value. Bounds apply to the matching scalar or paired translate/scale/shear input channel; inherited group names are refused with `CE_COMPILE_ANIMATION_GROUP_UNKNOWN`. Each declared clip's gated posed endpoint values at 0 and duration with physics omitted must agree before emission (`SCENE_ANIMATION_LOOP_CLOSES`); physics-on frames are not measured by this check. Core `check/build/run.json` records fresh `started_at` and `finished_at` clocks. |
1210
1210
  | scene loop refusal detail | `compose` | Issue #1358 enriches `SCENE_ANIMATION_LOOP_CLOSES` with the first differing bone or slot, channel, start/end values and numeric tolerance 0 (exact equality), and issue #1590 states in the detail that it checks posed endpoint values with physics omitted and does not measure physics-on frames. The existing exact JSON endpoint comparison is unchanged: bones, slots, draw order, drawn geometry, clipping polygons and clipped geometry remain covered. Selection follows that family order, then producer row and field order; geometry-only differences name the slot and geometry channel. Physics is omitted from this posed-value comparison, and the refusal code, acceptance, emitted rig/motion and built scene bytes are unchanged. |
1211
- | scene canvas framing | `compose` | Issue #1491 adds optional `characters[].canvas_clip` to `spine-parts-scene/1`. Literal `true` requires finite placed bounds, overflow past a canvas edge and an intersection with positive width and height. The respective refusals are `SCENE_CHARACTER_CLIP_BOUNDS`, `SCENE_CHARACTER_CLIP_UNUSED` and `SCENE_CHARACTER_CLIP_EMPTY`. Other explicit values are `SCENE_FIELD_TYPE`. Omitting the key retains the exact containment rule, output bytes and console text. The opted-in character row in `scene.json` adds `canvas_clip: true` and `clipped_bounds` after the original `bounds`. Both boxes are canvas pixels, y down, with exclusive right and bottom edges. The console appends the clipped box only for those rows. The rig-c gate and packed build retain the full art and geometry. For a scene with any opt-in, compose check renders use the stage viewport unless the render specifies its own. Preview size caps and sampling stay in effect. Native-size renders and consumer playback use the authored stage rectangle as described in [Canvas framing for intentional overflow](AUTHORING.md#canvas-framing-for-intentional-overflow-issue-1491). |
1212
- | scene placement pivot | `compose` | Issue #1498 adds optional literal `true` at `characters[].placement_pivot` in `spine-parts-scene/1`. It emits the identity `<id>:placement` under `root` and requires a scene-authored `translate`, `translatex` or `translatey` key in final scene pixels. The existing placement math stays on the original first-level bones, root regions and root weights. Source root bindings use the unkeyed identity `<id>:root` child when needed. `SCENE_FIELD_TYPE` refuses other explicit values, `SCENE_PIVOT_NAME_FREE` a source bone collision, `SCENE_PIVOT_DECLARED` an unresolved pivot targeted directly or through a bone group without an opt-in, `SCENE_PIVOT_UNUSED` an unused declaration and `SCENE_PIVOT_TRACK` a forbidden property or carrier key. `SCENE_PLATE_NAME_FREE` still governs named plate collisions. Core's unknown-bone refusal, rig gate, scene clip timing and endpoint closure still apply. `scene.json` adds `placement_pivot` with the generated name after the bounds fields and counts the generated bones for that character. `compose-run.json` binds the declaration through `scene.sha256` with its existing shape and key order. Omitting the declaration preserves default output bytes at the same paths, subject to the existing Core receipt clocks. |
1211
+ | scene canvas framing | `compose` | Issue #1491 adds optional `characters[].canvas_clip` to `spine-parts-scene/1`. Literal `true` requires finite placed bounds, overflow past a canvas edge and an intersection with positive width and height. The respective refusals are `SCENE_CHARACTER_CLIP_BOUNDS`, `SCENE_CHARACTER_CLIP_UNUSED` and `SCENE_CHARACTER_CLIP_EMPTY`. Other explicit values are `SCENE_FIELD_TYPE`. Omitting the key retains the exact containment rule and console text for that character. The opted-in character row in `scene.json` adds `canvas_clip: true` and `clipped_bounds` after the original `bounds`. Both boxes are canvas pixels, y down, with exclusive right and bottom edges. The console appends the clipped box only for those rows. The rig-c gate and packed build retain the full art and geometry. For a scene with any opt-in, compose check renders use the stage viewport unless the render specifies its own. Preview size caps and sampling stay in effect. Native-size renders and consumer playback use the authored stage rectangle as described in [Canvas framing for intentional overflow](AUTHORING.md#canvas-framing-for-intentional-overflow-issue-1491). |
1212
+ | scene placement pivot | `compose` | Issue #1498 adds optional literal `true` at `characters[].placement_pivot` in `spine-parts-scene/1`. It emits the identity `<id>:placement` under `root` and requires a scene-authored `translate`, `translatex` or `translatey` key in final scene pixels. The existing placement math stays on the original first-level bones, root regions and root weights. Source root bindings use the unkeyed identity `<id>:root` child when needed. `SCENE_FIELD_TYPE` refuses other explicit values, `SCENE_PIVOT_NAME_FREE` a source bone collision, `SCENE_PIVOT_DECLARED` an unresolved pivot targeted directly or through a bone group without an opt-in, `SCENE_PIVOT_UNUSED` an unused declaration and `SCENE_PIVOT_TRACK` a forbidden property or carrier key. `SCENE_PLATE_NAME_FREE` still governs named plate collisions. Core's unknown-bone refusal, rig gate, scene clip timing and endpoint closure still apply. `scene.json` adds `placement_pivot` with the generated name after the bounds fields and counts the generated bones for that character. `compose-run.json` binds the declaration through `scene.sha256` with its existing shape and key order. Omitting the declaration retains shared-root placement. |
1213
1213
  | `compose-run.json` | `compose` | spec `rig-compose-run/1` (issue #1348), separate from `rig-run/1`; a stable contract as of 2.44.0. Written at the `--out` root only after the gate and check are green and no accepted failing character remains. Fixed keys in order: `spec`, `scene` (`path`, `sha256`), `characters` (each `id`, `build`, `files`, each file `path`, `sha256`, then optional `placement`), `plate` (`path`, `sha256`, or null), `plates` (each `name`, `path`, `sha256`), then optional `output_profile` (`"preview"` or `"no-extremes"`, issue #1610). Scene and plate paths are the supplied and declared paths; character file paths are build-relative. Characters sort by `id`, files by `path`, named plates by `name`, in code-unit order. Each character's files are exactly `check/check.json`, `parts.json`, `rig/rig.json`, `rig/motion.json` and each distinct image the default skin names under `rig/images/`, including a generator's depth image. Every `sha256` is of the raw file bytes compose consumed before the gate. Only a character with `canvas_clip: true` has `placement`, with `canvas_clip: true`, `bounds` and `clipped_bounds` in that order from the scene report. Identical inputs at identical supplied paths with the same output profile give identical record bytes. The receipt inventories the listed inputs and selected profile, without clocks. Compose owns the name: a file of that name at the `--out` root is deleted at the start of every compose, before stage validation, so a refused rerun leaves none. |
1214
- | compose output profiles | `compose` | Issue #1610 adds `--no-extremes` to omit only the extremes diagnostic renders, and `--output-profile preview` to also omit `check/idle_frames/`, `check/contact.png` and `check/motion_heat.png`. Preview takes precedence when both flags are given. Preview uses the stock idle render and existing readers. Before preview success, Parts removes the idle render directory, including Core's temporary contact sheet, skips copying the sheet to the check root, and skips generating heat. Each omission has a diagnostic `SKIP` line naming its selected flag. The gate, camera binding and check requirements still apply. Success prints `compose: PREVIEW — checks met; …` or `compose: NO EXTREMES — checks met; …`, respectively, and writes `output_profile` as `"preview"` or `"no-extremes"`. Default compose keeps its existing file bytes (with the nested Core receipt clock comparison described above), output paths and `compose: PASS — …` line. `COMPOSE_PREVIEW_REQUIRED_CHECK` refuses a valid loop seam pair in preview with `found=preview, required=default or no-extremes`, because the `loop_seam` record in `check.json` binds the paths and hashes of first and wrap PNGs that must remain under `check/idle_frames/`. Compose clears its owned outputs before this refusal. See [Compose output profiles](AUTHORING.md#compose-output-profiles-issue-1610). |
1215
- | the scene report | `compose` | spec `spine-parts-scene-report/1`; the plate block carries `sha256` of the plate PNG's bytes after `size` (issue #1183, additive under *What "stable" means here*: a new report key in a minor version, so the spec stays `/1`); `pack_mode` records `page_size` only when `--page-size <px>` is given (issue #1352, additive; without `--page-size`, rigc's default 2048 px page and padding 2 on each side bound any plate or region side to at most 2044 px before `CE_ATLAS_REGION_EXCEEDS_PAGE`). `scene.json` echoes the optional `repeats` map in declared order as the final top-level key after `idle_duration`, omitting it when absent. |
1216
- | keyed scene camera | `compose` | optional `camera` in `spine-parts-scene/1` (issue #1596). A camera scene writes `spine-parts-scene-report/2` at the existing `scene.json` path with its keyed camera, sampled coverage and framing verdict, and packed model SHA-256. Report /1 and the existing output inventory and bytes are preserved for scenes without a camera, subject to the existing Core receipt clocks. The camera path uses Core animation easing and the posed backdrop at each sampled frame. Rig, motion and stock check outputs retain their existing semantics. The compose input receipt stays `rig-compose-run/1`. See [Keyed scene camera](AUTHORING.md#keyed-scene-camera-issue-1596) |
1214
+ | compose output profiles | `compose` | Issue #1610 adds `--no-extremes` to omit only the extremes diagnostic renders, and `--output-profile preview` to also omit `check/idle_frames/`, `check/contact.png` and `check/motion_heat.png`. Preview takes precedence when both flags are given. Preview uses the stock idle render and existing readers. Before preview success, Parts removes the idle render directory, including Core's temporary contact sheet, skips copying the sheet to the check root, and skips generating heat. Each omission has a diagnostic `SKIP` line naming its selected flag. The gate, camera binding and check requirements still apply. Success prints `compose: PREVIEW — checks met; …` or `compose: NO EXTREMES — checks met; …`, respectively, and writes `output_profile` as `"preview"` or `"no-extremes"`. Default compose retains the complete diagnostics and the `compose: PASS — …` line. `COMPOSE_PREVIEW_REQUIRED_CHECK` refuses a valid loop seam pair in preview with `found=preview, required=default or no-extremes`, because the `loop_seam` record in `check.json` binds the paths and hashes of first and wrap PNGs that must remain under `check/idle_frames/`. Compose clears its owned outputs before this refusal. See [Compose output profiles](AUTHORING.md#compose-output-profiles-issue-1610). |
1215
+ | the scene report | `compose` | spec `spine-parts-scene-report/1`; the plate block carries `sha256` of the plate PNG's bytes after `size` (issue #1183, additive under *What "stable" means here*: a new report key in a minor version, so the spec stays `/1`); `pack_mode` records `page_size` only when `--page-size <px>` is given (issue #1352, additive; without `--page-size`, rigc's default 2048 px page and padding 2 on each side bound any plate or region side to at most 2044 px before `CE_ATLAS_REGION_EXCEEDS_PAGE`). `scene.json` writes [`scene_driven`](#scene-driven-timeline-addresses) immediately after `idle_duration`, then `camera` when present, then the optional `repeats` map in declared order as the final top-level key. |
1216
+ | `scene_driven` | `compose` | Per-take view flag and scene-authored timeline addresses in `scene.json`. See [Scene-driven timeline addresses](#scene-driven-timeline-addresses). |
1217
+ | `SCENE_CHANNEL_SHARED` | `compose` | Refuses shared bone-axis writes and character constraints that write scene-keyed bones. See [Scene-driven timeline addresses](#scene-driven-timeline-addresses). |
1218
+ | keyed scene camera | `compose` | optional `camera` in `spine-parts-scene/1` (issue #1596). A camera scene writes `spine-parts-scene-report/2` at the existing `scene.json` path with its keyed camera, sampled coverage and framing verdict, and packed model SHA-256. Scenes without a camera write report /1. Both report specs include `scene_driven` on new writes. The camera path uses Core animation easing and the posed backdrop at each sampled frame. Rig, motion and stock check outputs retain their existing semantics. The compose input receipt stays `rig-compose-run/1`. See [Keyed scene camera](AUTHORING.md#keyed-scene-camera-issue-1596) |
1217
1219
  | physics clips and scene repeats | `compose` | Issue #1615 adds `characters[].with_idle` and top-level `repeats` to `spine-parts-scene/1`. Each physics-only side clip requires literal `false` at any character scale or a safe integer count of at least 1 at scale 1. Numeric declarations fold whole periods into `idle` with exact duration equality. Both values retain `<id>:<clip>` subject to the character's scale checks, and the character report row echoes `with_idle` when declared. A scene repeat count is a safe integer of at least 2 on an authored take. Its duration remains the whole take length. Its tracks, deforms and camera keys use the exact duration divided by the count as their period. Repeated camera keys are expanded in report /2, with coverage on the full take clock and per-frame figure measurements. See [Physics clips and scene repeats](AUTHORING.md#physics-clips-and-scene-repeats-issue-1615) |
1218
1220
  | `idle.png`, `idle-indexed.png`, `idle.gif` | `loop`, `build --loop` | APNG and GIF encodings of the rendered idle |
1219
1221
  | `run.json` | `rig`, `assemble` | spec `rig-run/1` (issue #1165, additive): `spec`, `package` (`name`, `version`), `command` (`"rig"` or `"assemble"`), `started_at` and `finished_at` (UTC ISO-8601 millisecond timestamps ending in `Z`, read in the CLI layer), `config` (`path` relative to `--out`, `sha256` of the config file on disk), `inputs` on `assemble` (issues #1316, #1554, additive: one `{role, path, sha256}` entry for each of `--source`, `--full` and `--head` that was given, in that order, with `path` relative to `--out` by the per-platform link rule — naming `<dir>/layers.json` when given a directory — and `sha256` of the file `path` names), and `outputs` (`path` relative to `--out`, `sha256` of each written output file on disk, sorted by `path` in code-unit order and excluding `run.json` itself); written only after the command's gate is green |
@@ -1325,8 +1327,79 @@ Files authors write for this package, each with a spec id the reader holds:
1325
1327
  name on purpose: they name a file format, not the tool, and a file written before
1326
1328
  the rename still reads. They do not change at 1.0.
1327
1329
 
1330
+ ### Scene-driven timeline addresses
1331
+
1332
+ Issue #1621 adds `scene_driven` to every new compose `scene.json` report.
1333
+ This is an additive report field under the existing
1334
+ `spine-parts-scene-report/1` and `spine-parts-scene-report/2` specs.
1335
+ For a scene accepted before and after this change, the packed model bytes
1336
+ are identical. Older reports omit the key. Readers can check for its
1337
+ presence while continuing to accept both report specs.
1338
+
1339
+ The map has one entry for every take in the model, keyed by its take name.
1340
+ Each entry contains exactly `view` (boolean) and `timelines` (array of
1341
+ strings), in that order. `view` is true exactly when
1342
+ `scene.camera.tracks` keys that take. The name `scene_driven` identifies
1343
+ the source of the model timelines. Camera keys supply the report's view,
1344
+ and `scene.animations` supplies the model timelines for this declaration.
1345
+ Compose derives the field from those inputs. Playback chooses its own
1346
+ hold time and sampling.
1347
+
1348
+ `timelines` lists the addresses of scene-authored pose timelines after
1349
+ `scene.repeats` splicing, using final model names. A group track contributes
1350
+ an ordinary address for each member Core resolves in its family (`bone`,
1351
+ `slot` or `physics`). Keys on a placement pivot or a dial contribute ordinary
1352
+ addresses. The list excludes character idle,
1353
+ `with_idle` folds, imported `animations_from` clips, and events. A take
1354
+ with neither camera keys nor scene-authored pose timelines has
1355
+ `{ "view": false, "timelines": [] }`.
1356
+
1357
+ | Timeline | Address |
1358
+ | --- | --- |
1359
+ | Bone property | `bone <bone>.<prop>` |
1360
+ | Slot property | `slot <slot>.<prop>` |
1361
+ | Physics, slider or path constraint property | `<family> <constraint>.<prop>` |
1362
+ | IK or transform constraint | `<family> <constraint>` |
1363
+ | Deform | `deform <skin>/<slot>/<attachment>` |
1364
+ | Sequence | `sequence <skin>/<slot>/<attachment>` |
1365
+ | Draw order | `drawOrder` |
1366
+
1367
+ The constraint family token is lower-case (`physics`, `slider`, `path`,
1368
+ `ik` or `transform`). Properties use their motion spec spelling. Deform and
1369
+ sequence both use `default` for the default skin. Each separator space, dot and
1370
+ slash shown in the table is literal. Within a name component, escape
1371
+ `%` as `%25`, space as `%20`, dot as `%2E` and slash as `%2F`.
1372
+ Use the uppercase escape spelling and copy every other character, including
1373
+ colons, verbatim. Split the address on its literal separators, then decode
1374
+ each name component exactly once. Sort the complete encoded addresses by
1375
+ JavaScript UTF-16 code-unit order.
1376
+
1377
+ For example, the default skin, slot `front left.edge` and attachment
1378
+ `clip/%2F` yield `sequence default/front%20left%2Eedge/clip%2F%252F`.
1379
+ Splitting and decoding once recovers `default`, `front left.edge` and
1380
+ `clip/%2F`.
1381
+
1382
+ Compose accepts existing group and sequence inputs that satisfy its
1383
+ validation rules, including the shared-write check below. Scene-authored
1384
+ `drawOrder` appears in the list. Compose refuses character clips that key
1385
+ `drawOrder` when reading the character's build.
1386
+
1387
+ Compose refuses `SCENE_CHANNEL_SHARED` when the scene and character
1388
+ producers key the same bone axis through distinct properties in one take
1389
+ or when a character constraint writes a scene-keyed bone. A life bone can
1390
+ inherit a scene-keyed parent, and a constraint can read a scene-keyed input. See the
1391
+ [repair examples](AUTHORING.md#scene-driven-timelines).
1392
+
1328
1393
  ### Check report (`rig-parts-check/1`)
1329
1394
 
1395
+ `check --clip-stretch <scene.json>` has its own text and exit status. It exits
1396
+ 0 when every played take has a measurable passing peak and all dial rows report
1397
+ `PASS` or `SKIP`, 1 on a refusal, failing bar or missing required reading, and
1398
+ 2 on usage errors. It writes no `check.json`, `check-run.json`, or scene output.
1399
+ The ordinary check report, verdict and compose admission retain their existing meanings.
1400
+ The [slider stretch contract](#slider-stretch-diagnostic-issue-1627) defines
1401
+ the dial rows and their effect on the verdict.
1402
+
1330
1403
  Spec `rig-parts-check/1` (issues #1372, #1378) is a stable contract as of
1331
1404
  2.45.0, the first version that writes it.
1332
1405
 
@@ -1427,6 +1500,47 @@ Compose reads `bar_outcomes` on a report that declares this spec (issue
1427
1500
  readers, the historical interpretation is kept, including for reports
1428
1501
  written before this version.
1429
1502
 
1503
+ #### Slider stretch diagnostic (issue #1627)
1504
+
1505
+ Stock `check.json` gains `slider_stretch` immediately after `TEXTURE_STRETCH`
1506
+ when the rig has a slider, including when its range is undeclared. The block
1507
+ has `fps` (the 12 Hz clip frame grid), `limit` (the `TEXTURE_STRETCH` limit),
1508
+ and `rows` (one per slider/clip binding, using the rig's local names).
1509
+
1510
+ A bone-driven slider's inclusive range bounds its configured local or world
1511
+ input property. Omitted `from` defaults to zero. `max` must be explicit, and
1512
+ any declared endpoint must be a finite number. The scene diagnostic reads
1513
+ the final bounds in composed units. Malformed or reversed bounds fail.
1514
+ Missing `max` reports `SKIP` with `no declared dial range; declare max to
1515
+ measure texture stretch`. A time-driven slider also reports `SKIP`.
1516
+ The authored `max` is editor metadata. Core applies its own mapping and
1517
+ clamp or wrap, and the clip supplies no inferred endpoint.
1518
+ Equal endpoints keep the resolved range and report `SKIP` with zero samples.
1519
+ The console prints only the reason after the binding name, for example
1520
+ `declared dial range [0, 0] has equal endpoints`, using the actual endpoints.
1521
+
1522
+ | Row fields | Meaning |
1523
+ | --- | --- |
1524
+ | `slider`, `clip`, `status` | Binding names and the diagnostic outcome, `PASS`, `FAIL`, or `SKIP`. |
1525
+ | `range`, `sample_count` | Inclusive resolved `[from, max]`, or `null` when no valid bone-driven range resolves, and the number of dial samples read. A complete sweep reads 13 evenly spaced values including both endpoints. Equal endpoints retain `[from, max]` with zero samples. |
1526
+ | `peak` | `severity` (raw), `gate` (rounded), `dial_value`, `sample` (zero-based ordinal), `clip_frame` (integer on the clip grid, `null` off-grid), `clip_time_s` (applied time after wrapping), `slot`, `attachment`, `triangle`, `vertices`, and `edge`. Present when a peak was measured. |
1527
+ | `reason` | Explains an unmeasured `SKIP`, refused bounds, or an incomplete sweep. A `SKIP` has zero samples and omits `peak`. A measured failing peak remains a `FAIL` when a different sample is missing. |
1528
+ | `row_scope`, `row_kind`, `row_subjects` | Standard check-row metadata. The scope is `rig` with no part subjects. A `FAIL` is an advisory finding. |
1529
+
1530
+ The stock console displays measured `FAIL` rows at the existing `WARN` level.
1531
+ Slider outcome counts are separate from ordinary bar totals. `slider_stretch`
1532
+ has no entry in `bar_outcomes` and does not affect stock `PASS`, exit status,
1533
+ or compose admission. The report retains spec `rig-parts-check/1`.
1534
+
1535
+ `check --clip-stretch` opts into the same reset-pose measurement on the composed
1536
+ rig, with each dial sampled independently and compared with canonical rest
1537
+ using the stock stretch metric. It prints `CHECK_SLIDER_STRETCH` rows using
1538
+ composed names. Slider-only clips have dial rows. Clips with an explicitly
1539
+ declared played role also have `CHECK_CLIP_STRETCH` rows. The diagnostic still
1540
+ writes only text. A failed or incomplete declared sweep exits 1. A slider
1541
+ `SKIP` leaves the exit unchanged. Existing played take and idle
1542
+ verdicts still apply. See [the authoring guide](AUTHORING.md#slider-applied-clip-stretch-issue-1627).
1543
+
1430
1544
  ### Run stamp (`run.json`, spec `rig-run/1`)
1431
1545
 
1432
1546
  The CLI commands `rig` and `assemble` (when writing `--out`) write `<out>/run.json`
@@ -1657,8 +1771,9 @@ in the package.
1657
1771
 
1658
1772
  ## rig-c
1659
1773
 
1660
- `dependencies` takes `@rig-c/core` `3.11.0` exactly. Core 3.11.0 supplies the idle
1661
- render's `--loop-seam-bar` and `--loop-seam-cap` support. Bun 1.4 or later
1774
+ `dependencies` takes `@rig-c/core` `3.12.0` exactly. Core supplies the idle
1775
+ render's `--loop-seam-bar` and `--loop-seam-cap` support and the `poseSlider`
1776
+ reading used for independent dial samples. Bun 1.4 or later
1662
1777
  is the declared floor (`engines.bun` `>=1.4.0`; older 1.4 releases are not tested in
1663
1778
  CI, which runs `latest`, and compatibility with an older 1.4 release is handled when
1664
1779
  reported as an issue). What this package relies on in rig-c, every import
@@ -1670,7 +1785,8 @@ read off `src/` and `cli.ts`:
1670
1785
  `skinningEnvelopeBone`, `writeMeshQualityReport` and their types),
1671
1786
  `@rig-c/core/meshcompare` (`compareMeshesInMotion`, `comparePreparedMotion`,
1672
1787
  `prepareMotionReference`), `@rig-c/core/compile` (`f32`), `@rig-c/core/core`
1673
- (`RUNTIME_PI`), `@rig-c/core/deformgen` (`evaluateDeformTransform`),
1788
+ (`RUNTIME_PI`, `poseSlider`, `readModel`, `underNoSkin`),
1789
+ `@rig-c/core/deformgen` (`evaluateDeformTransform`),
1674
1790
  `@rig-c/core/environment` (`ENVIRONMENT_SPEC`, `EnvironmentError`,
1675
1791
  `environmentResponse`, `readEnvironmentSchedule`), `@rig-c/core/errors`
1676
1792
  (`CompileError`), `@rig-c/core/font5x7` (`GLYPH_H`, `drawText`),
@@ -2223,10 +2339,9 @@ verified even without `required`; when required, the plate needs a verified
2223
2339
  receipt matching its bytes. Receipt refusals occur before compose writes new
2224
2340
  artifacts. As before, compose creates `--out` and clears its owned outputs,
2225
2341
  including an earlier `rig/` and `scene.json`, before input validation, so a
2226
- refused re-run can remove earlier artifacts. Omitting the field preserves
2227
- exit codes and `scene.json` bytes. The existing required
2228
- `provenance` field is preserved. It declares pixel origin, while the receipt
2229
- verifies file identity and records the author's edit declaration.
2342
+ refused re-run can remove earlier artifacts. The receipt checks apply when
2343
+ the field is declared. The required `provenance` field declares pixel origin.
2344
+ The receipt verifies file identity and records the author's edit declaration.
2230
2345
 
2231
2346
  ### Editor receipts
2232
2347
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rig-parts",
3
- "version": "2.66.0",
3
+ "version": "2.68.0",
4
4
  "description": "AI-authored 2D character parts from one anime painting and its See-through layer decomposition: measured parts, weighted-mesh rig specs, verified through rig-c before anything is written. A CLI for agents that cannot see the image.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "ag-psd": "^31.0.2",
79
- "@rig-c/core": "3.11.0"
79
+ "@rig-c/core": "3.12.0"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@esotericsoftware/spine-core": "4.3.13",
package/src/build.ts CHANGED
@@ -101,7 +101,7 @@ import {
101
101
  } from './autoreplay.ts';
102
102
  import { physicsLines } from './physicscontrib.ts';
103
103
  import { besideIdleLine, checkSummaryLine, inputFileRecord, type InputFileRecord, CLOTH_LINE, type ClothLine, clothWarnText, figureOpeningLines, frameRuns, MOTION_SEAM_LINE, type MotionSeamLine, type MotionSeamPlant, motionSeamRequiredLine, motionSeamWarnText, motionJointContactLines, FOLD_LINE, type FoldsLine, LEVEL_LINE, type LevelLine, LIMB_LINE, type LimbLine, STRESS_LINE, SWEEP_LINE, type SweepLine, buildGateLines, causeLines, environmentLine, IDLE_FPS, IDLE_MAX_PX, maxRgbDiff, REQUIREMENTS_DIR, type CheckReport, type PackLine, DEFAULT_PACK_SHAPE, DEFAULT_PAGE_EDGES, GATE_PROFILE, JUDGEMENT_LINES, type JudgementLine, packedBuildArgs, packedBuildLabel, type PackMode, parsePageSize, readCheckEnvironment, readWindBand, type PackShape, type PageEdges, readFrameSet, rigcFailed, rigcIdentity, rigcRanClause, REPORTED_LINES, type ReportedLine, type RigcRunner, runCheck, SEAM_DIR, SEAM_MEAN_BAR, seamPairText, seamRigPxText, SOURCE_LINE, SEAM_PX_BAR, SEAM_PX_LEVEL, SEAM_PX_LEVEL_HIGH, SPINEBOY_YARDSTICK, STILL_DIR, WIND_BAND_LINE, windBandLines } from './check.ts';
104
- import type { LoopSeamRequest } from './check.ts';
104
+ import { sliderStretchLine, type LoopSeamRequest } from './check.ts';
105
105
  import { type CharacterConfig, type Cut, type Extend, loadConfigAndAnimations, loadConfigWithBytes, loadEarlyConfig, type Patch, type PlanEntry } from './config.ts';
106
106
  import { coreCompileGuideLine, failLine, foldName, PartsError, type Problem, refuseIfAny } from './errors.ts';
107
107
  import { editedConfigImages, editedRunImages, missingReceipts, readEditorReceipts } from './editreceipt.ts';
@@ -2094,7 +2094,8 @@ export function rigStage(input: RigStageInput, rigc: RigcRunner, scratch: string
2094
2094
  log(
2095
2095
  ` bones ${rig.rig.bones.length} (${rig.controls.length} control) slots ${rig.rig.slots.length} meshes ${rig.meshReport.length} regions ${regions} vertices ${vertices}; idle ${rig.motion.animations.idle.duration} s, ${tracks.length} track(s), ${keys} key(s)`,
2096
2096
  );
2097
- if (from !== null) log(` animations beside the idle, from ${from.file} as written: ${Object.keys(from.table).join(', ') || 'none'}`);
2097
+ const importedClipNames = from === null ? [] : Object.keys(from.table);
2098
+ if (from !== null) log(` animations beside the idle, from ${from.file} as written: ${importedClipNames.join(', ') || 'none'}`);
2098
2099
  log(faceAxisLine(rig.faceAxis));
2099
2100
  if (rig.turn !== null) log(turnLine(rig.turn));
2100
2101
  for (const w of rig.turnWarnings ?? []) log(` WARN ${w.code}: ${w.object} — ${w.detail}`);
@@ -2154,6 +2155,12 @@ export function rigStage(input: RigStageInput, rigc: RigcRunner, scratch: string
2154
2155
  for (const [file, img] of rig.images) writePng(join(input.out, 'images', file), img);
2155
2156
  for (const [file, text] of texts) writeFileSync(join(input.out, file), text);
2156
2157
  if (layout !== undefined) writeFileSync(join(input.out, LAYOUT_FILE), rigJsonText(layout));
2158
+ if (importedClipNames.length > 0 || Object.keys(rig.motion.animations).some(name => name !== 'idle')) {
2159
+ log(' Side clips have not been measured for texture stretch. Run rig-parts check --clip-stretch <scene.json> to measure them.');
2160
+ }
2161
+ if (rig.rig.constraints?.some(constraint => constraint.type === 'slider') === true) {
2162
+ log(' Slider dial ranges have not been measured for texture stretch. Run rig-parts check on this rig or rig-parts check --clip-stretch <scene.json>.');
2163
+ }
2157
2164
  log(`rig-parts rig: wrote ${join(input.out, 'rig.json')}, motion.json, mesh_report.json and ${rig.images.length} image(s) under ${join(input.out, 'images')}`);
2158
2165
  return rig;
2159
2166
  }
@@ -2519,6 +2526,7 @@ export function checkStage(input: CheckStageInput, rigc: RigcRunner, bin: string
2519
2526
  }
2520
2527
  }
2521
2528
  for (const name of JUDGEMENT_LINES) log(` ${judgementLine(name, fig[name])}`);
2529
+ for (const row of fig.slider_stretch?.rows ?? []) log(sliderStretchLine(row, true));
2522
2530
  const folds = fig[FOLD_LINE];
2523
2531
  if (folds !== undefined) for (const l of foldsLines(folds)) log(` ${l}`);
2524
2532
  const level = fig[LEVEL_LINE];
@@ -2890,6 +2898,7 @@ export const CHECK_FLAGS_IN_BUILD: Readonly<Record<string, CheckFlagInBuild>> =
2890
2898
  '--wind-band': { as: 'forwarded' },
2891
2899
  '--loop-seam-bar': { as: 'supplied', why: 'run check or compose with --loop-seam-bar and --loop-seam-cap to measure the shipped idle' },
2892
2900
  '--loop-seam-cap': { as: 'supplied', why: 'run check or compose with --loop-seam-bar and --loop-seam-cap to measure the shipped idle' },
2901
+ '--clip-stretch': { as: 'supplied', why: 'run check --clip-stretch <scene.json> to measure the scene declaration' },
2893
2902
  '--json': { as: 'supplied', why: 'build supplies its multi-stage text report; run check --rig <out>/rig --parts <out> --out <dir> --json for the completed check object' },
2894
2903
  };
2895
2904