rig-parts 2.67.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/cli.ts CHANGED
@@ -648,7 +648,8 @@ usage:
648
648
  [--wind-band <spec.json>] [--json]
649
649
  [--loop-seam-bar <channel-delta,pixels> --loop-seam-cap <loops>]
650
650
  Diagnostic form: rig-parts check --clip-stretch <scene.json>
651
- Measures each retained side clip alone and the declared scene idle.
651
+ Measures played side clips and the declared scene idle. Slider-applied
652
+ clips have a separate reading over the authored dial range.
652
653
  This form takes only the scene path and prints a text diagnostic.
653
654
  --json prints the completed check.json object only, with unchanged exit codes.
654
655
  The loop seam flags together require a positive idle period. Core selects
package/docs/AUTHORING.md CHANGED
@@ -7021,6 +7021,7 @@ outside the consumed inputs.
7021
7021
  | <a id="CHECK_TIP_OVER_ROOT"></a>`CHECK_TIP_OVER_ROOT` | a `handwear`/`bottomwear` part's art in the lower half of its box travels less than 1.4725 times as far as in the upper half, measured from the idle's posed geometry against the bone the part hangs from (issue #987; rig px quoted, the world reading beside it) | the chain track's `amps` (grow toward the tip), or the mesh's `segments` (the chain must be among them), or its mode: on `scarf`'s short skirt the proposal's lattice read 1.207 and the same part in `contour` mode 1.738 with the same segments and idle (issue #118) — both carried the `chest` segment #262 removed, after which the lattice reads 3.487. When the detail says `the root travels with the breath (x px of y px): it is carried by \`<bone>\`` (issue #262) the chain is not the cause: a bone an idle `translate` track moves (the breath) moves the root more than the tip, and with that translate held still (the part posed again without it, in proportion to each vertex's weight on the bone and those under it) the ratio passes — the row adds `carried_by`, `breath_rig_px`, `root_without_breath_rig_px` and `tip_without_breath_rig_px`; take that bone's segment off the mesh, or bind the root to the bone the part hangs from, which the detail names. Since issue #987 only a breath keyed under that bone is read: one at or above it is in the frame the halves are read in and carries nothing. When the bone named is a link of the chain the part hangs on, its segment stays, and the detail says to key the translate on the bone the part hangs from or above it. `nothing in it moves against \`<bone>\`` is a part that rides the bone it hangs from whole — a rigid sleeve, whose world ratio is 1. Since issue #995 a lone swing counts as a link too — a rotate-keyed bone with no child bone, or whose only child is its control twin (a one-link chain's control) — so a skirt bound to the one bone that swings it is read against the bone above, where its swing shows. A rotate-keyed body segment other bones hang under (a pelvis carrying the legs) is not one: a part bound whole to it reads `nothing in it moves against` that bone and fails, its world ratio passing only through the lever arm. Hang swinging cloth on its own bone under the body segment; a fitted garment the rig holds rigid on purpose (shorts on the pelvis) is declared in the scene file's `not_swinging` (§7), and the line then reads it SKIP with the reason. A part the scene file declares `rests` (issue #245) is held the other way, its tip half's travel at most its root half's (ratio ≤ 1); the detail then reads `the scene file's rests declares its tip at rest, so a ratio <= 1 is required`, and for it the fix is the chain's `amps` (shrinking toward the tip) or the mesh's tip weighted to a bone the idle does not swing |
7022
7022
  | <a id="CHECK_STILL_REGIONS_DARK"></a>`CHECK_STILL_REGIONS_DARK` | a slot of the face's still set (the `face` slots and every slot drawn over the face that the head bone alone carries) moves relative to the bone the face's slot rides, or a `footwear` slot moves on the screen, by more than the arithmetic's own rounding — measured from the idle's posed geometry (the slot, its largest displacement in rig px, the idle frame and the tolerance quoted) | on the face: a face mesh with a weight on a bone other than the head (`segments`), or one deformed by another bone; on the feet: a mesh weighted to a swinging bone, or a region on the wrong bone. A bang swinging over the face is not this line's failure: its depth is reported (`crossing`), with no bar |
7023
7023
  | <a id="CHECK_CLIP_STRETCH"></a>`CHECK_CLIP_STRETCH` | `check --clip-stretch` refused the scratch candidate or found a take with a zero-length rest edge, no measurable edge, or a peak over the Parts stretch bar | read the named take, peak and edge influences. Change one input and rerun [the clip diagnostic](#physics-clips-and-scene-repeats-issue-1615) on the actual scene declaration. If Core refused, follow the relayed Core gate lines |
7024
+ | <a id="CHECK_SLIDER_STRETCH"></a>`CHECK_SLIDER_STRETCH` | a sampled dial pose exceeds the Parts stretch bar, the sweep is incomplete, the bounds are invalid, or the slider reports SKIP | use the named slider, clip time and edge to inspect a measured peak. For a skipped bone-driven slider, check `max` and the resolved range. See [Slider-applied clip stretch](#slider-applied-clip-stretch-issue-1627) |
7024
7025
  | <a id="CHECK_TEXTURE_STRETCH"></a>`CHECK_TEXTURE_STRETCH` | a mesh triangle's edge, in some idle frame, is more than 1.926544 times its rest length or less than 1/1.926544 of it (the mesh, triangle, its three vertices, the edge and the frame are named, and — issue #314 — the bones the edge's two vertices hang on: each vertex's two largest weights from `rig.json`, `vertex <i> is weighted to "<bone>" <w>, …`, then `on the idle's chains, the chain from "<first link>" carries "<bone>", …` — each chain `CHAIN_LAG` reads named once, by its first link — with a bone on no chain said, or `none of these bones hangs on a chain of the idle`); or a rest edge has length 0 A differing bone set on the failing edge or triangle names the bone and both shares. Cut attribution requires a matching config replay; otherwise the influence-cut remedy is conditional ("The weight cut"). When a vertex of the failing edge lies inside a declared contour band or at its cutoff, the detail also names the governing contour band — its region, its target bone, its declared width (`band`), and each vertex's band position and share — and says that the band's falloff governs the edge (issue #1598). The clause needs the config: on `build`, the one it ran with; on a standalone `check --rig`, the one `<rig>/run.json` (`rig-run/1`, from `rig`) names, used only when the stamp's `rig.json` and config SHA-256 both match the files on disk. Without a verified config, or when an edge vertex does not rebuild onto the contour grid, the clause is left out and the rest of the line is unchanged. | the chain tracks' `amps` on the bones that mesh is weighted to (the stretch grows with them), or the mesh's `segments` — a vertex blending two bones that swing against each other. Two chains named, with opposed amplitudes: give both one sign, or drop one — `propose --from-config` measures the pair before a build (§3, *Two chains on one lattice*). An edge whose two ends disagree on whether a bone's small share survives the 0.03 cut (one vertex keeps the bone at a few hundredths, the next drops it — read the two vertices' weights the line quotes): declare `influences: {floor: "continuous"}` on that mesh first, `rule: "heat"` second; the weight `exponent` moves the figure without removing the cut (issue #115, `reference-demo` `hair_back` as contour at tolerance 1, rig-c 2.47.1: 2.535 as drafted; continuous floor 1.422, heat 1.816, both PASS; exponent 1.5 / 3 / 4 / 6 read 2.564 / 1.902 / 2.119 / 4.816, the one pass on the same cut at another edge). When the detail names a governing contour band (an edge with a vertex inside a declared contour band or at its cutoff), go to that band's width (`meshes.<part>.contour.regions[].band`, or `meshes.<part>.contour.bust` for a derived bust band), not `meshes.<part>.influences` or mesh density: the reach is not monotonic in the band's width, so sweep it on your own rig and read both yaw directions |
7025
7026
  | <a id="CHECK_ANIMATIONS_DO_NOT_FOLD"></a>`CHECK_ANIMATIONS_DO_NOT_FOLD` | an animation, the idle included, turns a mesh triangle over against the setup pose on some frame, read by `rigc render --folds` over the build with its physics on — and with its physics constraints left out beside it when the rig declares any, so each row reports `physics_on` and `physics_off` side by side (issues #320, #333, #363); the object names the animation and the mesh, the detail quotes rigc's line — the frames, the worst frame, which triangles, their world box and setup-pose area — and when the fold appears only with physics on, names the physics constraint(s) on the mesh's bones and the worst frame. After rigc's line it names what the worst frame's folded triangles hang on (issue #567), in `TEXTURE_STRETCH`'s words: each vertex's dominant bone is its largest weight in `rig.json`, the triangles whose vertices share one set of dominant bones are one group (the set in `rig.json`'s bone order), and each group lists its first 6 triangles (`triangles 63, 78, 79 dominated by "knee_r", "knee_l"`, past 6 `… and N more`) and spells out its first triangle's vertices — the largest two weights of each, and the idle chains those bones hang on; 3 groups are written and the rest counted (`; … and N more group(s), M triangle(s)`). An attachment the skin does not hold, or a triangle its table does not reach, is said, not guessed. Or a `may_fold` entry of the `--requirements` file names a slot and animation that does not fold: an exception that excepts nothing A differing bone set on the failing edge or triangle names the bone and both shares. Cut attribution requires a matching config replay; otherwise the influence-cut remedy is conditional ("The weight cut"). | the physics constraint(s) the line names (lower `inertia`, raise `strength`, or lower `damping`), the clip's keys on the bones the line names (a bend past what the weights carry, two bones turned toward each other until the rows between them pass, a translate that carries one row of vertices past the next), or the mesh's `segments`; to look, `rigc inspect --candidate <out>/check/build --show art,folds,mesh --animation <name> --at <the worst frame's time> --zoom folds`. A fold the art means (a sleeve behind the body) is declared, `"may_fold": [{ "slot": …, "animation": …, "why": … }]` (§7, *Declared requirements*); a stale entry is taken out |
7026
7027
  | <a id="CHECK_FEET_STAY_LEVEL"></a>`CHECK_FEET_STAY_LEVEL` | a `footwear` part riding a bone that hangs from another turns more than ±10 degrees from its setup pose on a frame where a bone above that bone is turned (issue #348) — the bar is HQ's line (rig-c/parts#347 ruling 4), not a figure measured here; the object names the part, its bone and the bone it hangs from, the detail the animation, frame and time, the turned bone and its turn, the drawing's turn, and every bone the turn came through with its `inherit` | config.bones' `inherit` on the foot's bone (§3, `bones`): a mode that does not take the parent's rotation (`noRotationOrReflection`, `onlyTranslation`) keeps the drawing at its setup angle; which mode is the author's. Or the clip's keys on the foot's own bone, which turn the shoe whatever its mode |
@@ -7234,8 +7235,8 @@ and stay absent).
7234
7235
  | <a id="SCENE_REPEAT_KEY_SEAM"></a>`SCENE_REPEAT_KEY_SEAM` | a repeated source timeline cannot be spliced on its effective key clock, for example because of a setup gap, an unequal boundary state or left limit, a reset at the boundary or a period that collapses on the playback clock. Repeated scene animations also refuse timeline families without a defined splice | author a state timeline that starts at effective time zero and closes continuously, with any explicit reset strictly inside the source period and separate on Core's playback clock |
7235
7236
  | <a id="CE_COMPILE_ANIMATION_GROUP_UNKNOWN"></a>`CE_COMPILE_ANIMATION_GROUP_UNKNOWN` | a scene track names no own declared group, including inherited object names such as `constructor` | name an explicitly declared final group; prototype properties are not groups |
7236
7237
  | <a id="SCENE_ANIMATION_NAME_FREE"></a>`SCENE_ANIMATION_NAME_FREE` | a scene clip name already belongs to an imported character animation | choose a new name; only shared `idle` can be extended |
7237
- | <a id="SCENE_DIAL_RANGE_DECLARED"></a>`SCENE_DIAL_RANGE_DECLARED` | a keyed slider has no readable explicit `from` and `max` bounds, or its bounds are reversed; the bone and slider are named | declare both finite bounds with `from <= max`; no limits are invented |
7238
- | <a id="SCENE_DIAL_KEY_RANGE"></a>`SCENE_DIAL_KEY_RANGE` | a scene key on a slider input is outside that slider's declared range; the message names the bone, slider, key time, found value and range | author the value inside its own declared `[from, max]` bounds |
7238
+ | <a id="SCENE_DIAL_RANGE_DECLARED"></a>`SCENE_DIAL_RANGE_DECLARED` | a keyed slider lacks an explicit finite `max`, declares a nonfinite or nonnumeric `from`, or has reversed bounds; the bone and slider are named | declare a finite `max` at or above `from`, which defaults to zero when omitted |
7239
+ | <a id="SCENE_DIAL_KEY_RANGE"></a>`SCENE_DIAL_KEY_RANGE` | a scene key on a slider input is outside that slider's resolved range; the message names the bone, slider, key time, found value and range | author the value inside its resolved `[from, max]` bounds |
7239
7240
  | <a id="SCENE_DIAL_KEY_DECLARED"></a>`SCENE_DIAL_KEY_DECLARED` | a scene key uses `derive` on a slider's input property, including one that also carries a raw `v`; derived slider inputs are not a supported scene dial dialect | declare an explicit numeric `v` for the named dial, within the named slider's own range; group member values are checked separately |
7240
7241
  | <a id="SCENE_ANIMATION_LOOP_CLOSES"></a>`SCENE_ANIMATION_LOOP_CLOSES` | the gated posed values at 0 and the scene clip's declared duration differ with physics omitted, for a new clip or an idle extension (physics-on frames are not measured by this check) | close the posed bone, slot, geometry, alpha, clip and draw-order values with physics omitted; comparison never wraps the endpoint to zero, and physics-on frame closure is not measured here |
7241
7242
  | <a id="SCENE_ANIMATION_POSE_READABLE"></a>`SCENE_ANIMATION_POSE_READABLE` | Core cannot read or pose the compiled scene clip for its endpoint comparison | correct the construct named by Core; unreadable poses never count as closed and no scene is emitted |
@@ -8118,13 +8119,14 @@ prefixed definitions already in the scene; this field adds no definitions.
8118
8119
  Generated dial names are stable: `<id>:yaw_dial`, `<id>:pitch_dial`, and
8119
8120
  `<id>:<turn.body.slider>` (default `<id>:body_yaw_dial`); renaming these is a major
8120
8121
  change. They exist only when that character's producer generated them. Dial
8121
- rotation keys must lie in their own slider's explicitly declared `[from, max]`
8122
- range. `SCENE_DIAL_KEY_RANGE` names the bone, slider, time, found value and range;
8123
- `SCENE_DIAL_RANGE_DECLARED` refuses unreadable bounds instead of inventing limits.
8122
+ rotation keys must lie within their own slider's inclusive `[from, max]` range.
8123
+ Omitted `from` defaults to zero and `max` must be explicit and finite.
8124
+ `SCENE_DIAL_KEY_RANGE` names the bone, slider, time, found value and range.
8125
+ `SCENE_DIAL_RANGE_DECLARED` refuses missing `max`, malformed bounds and reversed bounds.
8124
8126
  Keys on a slider input must state numeric `v` values. `derive` there is refused
8125
8127
  by `SCENE_DIAL_KEY_DECLARED`, even alongside a raw `v`, because derived inputs
8126
8128
  are not a supported scene dial dialect. A group's explicit values are checked
8127
- against each member dial's own declared range.
8129
+ against each member dial's own resolved range.
8128
8130
  Slider source properties resolve to their numeric timeline channels: `x/y` read
8129
8131
  `translatex/translatey` or the respective `translate` channel; `scaleX/scaleY`
8130
8132
  read `scalex/scaley` or the respective `scale` channel; `shearY` reads `sheary`
@@ -8430,7 +8432,7 @@ Before composing, run `rig-parts check --clip-stretch <scene.json>` with the
8430
8432
  actual scene declaration. The scene's `build` paths must hold the assemble
8431
8433
  record and `rig/` outputs. This diagnostic can run before the character
8432
8434
  checks. It gates a temporary packed candidate and measures each retained
8433
- named take on its own, then the declared scene idle with character repeats,
8435
+ played take on its own, then the declared scene idle with character repeats,
8434
8436
  `with_idle` and scene-authored tracks applied. Each take starts from reset
8435
8437
  physics and measures all the scene's meshes as posed in that take. A clip declared `false` still has its
8436
8438
  own reading. Other clips and the idle are not playing during that reading.
@@ -8443,8 +8445,9 @@ If a clip passes alone but the idle fails, change one input, such as the
8443
8445
  wind key's peak, and rerun the same command on the edited build and scene.
8444
8446
  Read both lines before running the regular character check and `compose`,
8445
8447
  which still makes the shipping decision. The diagnostic prints only text.
8446
- Exit 0 means every take was measured and passed. Exit 1 means a failure,
8447
- refusal or missing reading. Exit 2 means a usage error.
8448
+ Exit 0 means every played take was measured and passed and the
8449
+ [slider rows](#slider-applied-clip-stretch-issue-1627) report `PASS` or `SKIP`.
8450
+ Exit 1 means a failure, refusal or missing required reading. Exit 2 means a usage error.
8448
8451
 
8449
8452
  Literal `false` is accepted at any character scale. The side clip still passes
8450
8453
  through the character's scale checks, which refuse nonzero `wind` or `gravity`
@@ -8492,14 +8495,14 @@ frame's pose, with physics stepping through the whole take.
8492
8495
  ##### Compose the generated fixture
8493
8496
 
8494
8497
  From the repository root, generate the fixture, compose its tiled scene and
8495
- single-period reference, then render only `idle` with Core 3.11.0.
8498
+ single-period reference, then render only `idle` with Core 3.12.0.
8496
8499
 
8497
8500
  ```sh
8498
8501
  bun fixtures/scene.ts scratch/fixture
8499
8502
  bun cli.ts compose --scene scratch/fixture/scene.json --out scratch/folded
8500
8503
  bun cli.ts compose --scene scratch/fixture/period.json --out scratch/period
8501
8504
  bunx --no-install rigc render --candidate scratch/folded/check/build --animation idle --fps 12 --loop-seam --out scratch/physics-on
8502
- bunx --no-install rigc render --candidate scratch/folded/check/build --animation idle --fps 12 --physics off --out scratch/physics-off
8505
+ bunx --no-install rigc render --candidate scratch/folded/check/build --animation idle --fps 12 --physics off --viewport-from scratch/physics-on --out scratch/physics-off
8503
8506
  ```
8504
8507
 
8505
8508
  Both compose runs reported `PASS` on Linux. In
@@ -8513,6 +8516,9 @@ differing pixels and a maximum RGBA channel delta of 95. At 0.75 s, the
8513
8516
  256 × 204 `f0009.png` differs by 253 pixels between the physics-on and
8514
8517
  physics-off renders, with a maximum RGBA channel delta of 128. To compare
8515
8518
  the two frames, use the frame-set directory named in each `frames.json`.
8519
+ The physics-off render takes `--viewport-from scratch/physics-on` so that both
8520
+ renders draw on one pixel grid. Each render otherwise fits its own box, and
8521
+ frames from two different boxes cannot be compared pixel for pixel.
8516
8522
 
8517
8523
  ```sh
8518
8524
  bun - <<'TS'
@@ -8549,6 +8555,42 @@ The `scene.json` reports contain 13 period rows and 37 tiled rows in
8549
8555
  Figure rows differed from the reference phase on 36 of 37 frames, with
8550
8556
  zero outside the view.
8551
8557
 
8558
+ #### Slider-applied clip stretch (issue #1627)
8559
+
8560
+ For a bone-driven slider, declare `max` and set `from` when the lower bound
8561
+ differs from zero. See the [range and SKIP contract](STABILITY.md#slider-stretch-diagnostic-issue-1627).
8562
+
8563
+ The check takes 13 evenly spaced dial samples including both bounds of a
8564
+ nondegenerate range. Core 3.12.0's `poseSlider` starts each sample from a
8565
+ reset pose. Sliders that share the selected input respond in constraint
8566
+ order. The check uses the same canonical rest geometry, edge severity and
8567
+ rounded limit as [`CHECK_TEXTURE_STRETCH`](#CHECK_TEXTURE_STRETCH). A
8568
+ passing row covers the sampled values of one dial. The continuous maximum
8569
+ between samples is unknown. For a played take that drives several dials
8570
+ together, read that take's own `CHECK_CLIP_STRETCH` row.
8571
+
8572
+ `CHECK_SLIDER_STRETCH` names the slider, its clip, the sample count, and the
8573
+ peak's dial value and zero-based sample ordinal. The clip time is the applied
8574
+ time, after wrapping where applicable. The clip frame is its index on the
8575
+ 12 Hz grid. The row says `frame off-grid` and gives the clip time when the
8576
+ peak falls between grid frames. It also names the mesh slot, attachment,
8577
+ triangle, vertices and edge.
8578
+
8579
+ Stock `check` reports a measured dial `FAIL` at the existing `WARN` level and
8580
+ counts slider outcomes separately from the ordinary bars. The dial report is
8581
+ advisory. Run `rig-parts check --clip-stretch <scene.json>` to make the scene's
8582
+ slider findings count toward the command's exit. A failed or incomplete
8583
+ declared sweep exits 1. A slider `SKIP` leaves the exit unchanged.
8584
+ A slider-only clip has a dial row only. A separate played role
8585
+ explicit in the source or composition produces both a dial row and a played
8586
+ row. The declared idle and existing `with_idle` readings still apply.
8587
+
8588
+ When `rig` writes a rig with a slider, its notice reads
8589
+
8590
+ ```text
8591
+ 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>.
8592
+ ```
8593
+
8552
8594
  #### Keyed scene camera (issue #1596)
8553
8595
 
8554
8596
  A camera projects an already posed scene into the fixed canvas. It follows the
@@ -10990,8 +11032,8 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
10990
11032
  <!-- check-row-table:begin -->
10991
11033
  | Row family | Registered JSON paths | row_scope | row_kind | row_subjects (producer expression) | Producer |
10992
11034
  | --- | --- | --- | --- | --- | --- |
10993
- | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for e.slot; otherwise [] | [check.ts:3876](../src/check.ts#L3876) |
10994
- | `ANIMATIONS_DO_NOT_FOLD.folding` | `ANIMATIONS_DO_NOT_FOLD.folding` | part when the supplied mapping resolves a piece; otherwise rig | finding when entry === undefined; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:3836](../src/check.ts#L3836) |
11035
+ | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | `ANIMATIONS_DO_NOT_FOLD.declared_not_folding` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for e.slot; otherwise [] | [check.ts:3887](../src/check.ts#L3887) |
11036
+ | `ANIMATIONS_DO_NOT_FOLD.folding` | `ANIMATIONS_DO_NOT_FOLD.folding` | part when the supplied mapping resolves a piece; otherwise rig | finding when entry === undefined; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:3847](../src/check.ts#L3847) |
10995
11037
  | `ART_JOINT_DISTANCE.joints` | `ART_JOINT_DISTANCE.joints` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [artjoints.ts:86](../src/artjoints.ts#L86) |
10996
11038
  | `BEHIND_PART_SEAMS.contributors` | `BEHIND_PART_SEAMS.turn.pairs[].frames[].standing.samples[].contributors`; `BEHIND_PART_SEAMS.turn.pairs[].frames[].motion_opened.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].setup.motion_opened.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].setup.standing.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].frames[].motion_opened.samples[].contributors`; `BEHIND_PART_SEAMS.pairs[].frames[].standing.samples[].contributors` | 'pair' | evidence | [pair.a, pair.b] | [behindseams.ts:664](../src/behindseams.ts#L664) |
10997
11039
  | `BEHIND_PART_SEAMS.hits` | `BEHIND_PART_SEAMS.pairs[].motion_opened.frames`; `BEHIND_PART_SEAMS.pairs[].standing.frames`; `BEHIND_PART_SEAMS.pairs[].motion_opened.worst`; `BEHIND_PART_SEAMS.pairs[].standing.worst` | 'pair' | finding when r.px > allowance; otherwise evidence | parts | [behindseams.ts:750](../src/behindseams.ts#L750) |
@@ -11007,53 +11049,54 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
11007
11049
  | `BEHIND_PART_SEAMS.unread_corridors` | `BEHIND_PART_SEAMS.turn.pairs[].frames[].standing.unread_corridors`; `BEHIND_PART_SEAMS.pairs[].setup.standing.unread_corridors`; `BEHIND_PART_SEAMS.pairs[].frames[].standing.unread_corridors` | 'pair' | evidence | [pair.a, pair.b] | [behindseams.ts:585](../src/behindseams.ts#L585) |
11008
11050
  | `BOUNDARY_COLOUR_STEP.over` | `BOUNDARY_COLOUR_STEP.over` | 'pair' | finding | r.parts | [boundarycolour.ts:221](../src/boundarycolour.ts#L221) |
11009
11051
  | `BOUNDARY_COLOUR_STEP.unmeasured` | `BOUNDARY_COLOUR_STEP.unmeasured` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for r.slot; otherwise [] | [boundarycolour.ts:222](../src/boundarycolour.ts#L222) |
11010
- | `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:6329](../src/check.ts#L6329) |
11052
+ | `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:6340](../src/check.ts#L6340) |
11011
11053
  | `CUT_JOINT_MATERIAL.rows` | `CUT_JOINT_MATERIAL.rows` | 'part' | finding when r.status === 'FAIL'; otherwise evidence | [r.part] | [cutmaterial.ts:280](../src/cutmaterial.ts#L280) |
11012
- | `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:4078](../src/check.ts#L4078) |
11013
- | `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:4053](../src/check.ts#L4053) |
11014
- | `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4371](../src/check.ts#L4371) |
11054
+ | `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:4089](../src/check.ts#L4089) |
11055
+ | `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:4064](../src/check.ts#L4064) |
11056
+ | `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4382](../src/check.ts#L4382) |
11015
11057
  | `PART_SUPPORT_REPORT.pairs` | `PART_SUPPORT_REPORT.pairs` | 'pair' | evidence; finding when length > 0; otherwise evidence | [F.name, B.name] | [coincide.ts:114](../src/coincide.ts#L114), [coincide.ts:130](../src/coincide.ts#L130) |
11016
11058
  | `PART_SUPPORT_REPORT.raw_pairs` | `PART_SUPPORT_REPORT.raw_pairs` | 'pair' | evidence | [F.name, B.name] | [coincide.ts:110](../src/coincide.ts#L110) |
11017
11059
  | `PART_SUPPORT_REPORT.unowned.regions` | `PART_SUPPORT_REPORT.unowned.regions` | 'rig' | finding | [] | [coincide.ts:145](../src/coincide.ts#L145) |
11018
11060
  | `PHYSICS_CONTRIBUTES.rows` | `PHYSICS_CONTRIBUTES.rows` | 'part' | evidence; finding when !moves; otherwise evidence | [part] | [physicscontrib.ts:217](../src/physicscontrib.ts#L217), [physicscontrib.ts:220](../src/physicscontrib.ts#L220) |
11019
- | `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:5726](../src/check.ts#L5726) |
11020
- | `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:5041](../src/check.ts#L5041) |
11021
- | `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5033](../src/check.ts#L5033) |
11022
- | `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5699](../src/check.ts#L5699) |
11023
- | `SEAM_OVER_MOTION.rows` | `SEAM_OVER_MOTION.rows` | 'pair'; unique ? 'pair' : 'rig' | finding when motionSeamFinding(want.root !== undefined, p.status, p.banded, opens.length); otherwise evidence; finding when motionSeamFinding(rootNames.has(r.pair), r.status, r.banded, r.opens.length); otherwise evidence | [want.a, want.b]; unique ? [pair.a, pair.b] : [] | [check.ts:5656](../src/check.ts#L5656), [check.ts:5732](../src/check.ts#L5732) |
11024
- | `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:5669](../src/check.ts#L5669) |
11025
- | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b] | [check.ts:5659](../src/check.ts#L5659) |
11061
+ | `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:5737](../src/check.ts#L5737) |
11062
+ | `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:5052](../src/check.ts#L5052) |
11063
+ | `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5044](../src/check.ts#L5044) |
11064
+ | `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5710](../src/check.ts#L5710) |
11065
+ | `SEAM_OVER_MOTION.rows` | `SEAM_OVER_MOTION.rows` | 'pair'; unique ? 'pair' : 'rig' | finding when motionSeamFinding(want.root !== undefined, p.status, p.banded, opens.length); otherwise evidence; finding when motionSeamFinding(rootNames.has(r.pair), r.status, r.banded, r.opens.length); otherwise evidence | [want.a, want.b]; unique ? [pair.a, pair.b] : [] | [check.ts:5667](../src/check.ts#L5667), [check.ts:5743](../src/check.ts#L5743) |
11066
+ | `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:5680](../src/check.ts#L5680) |
11067
+ | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b] | [check.ts:5670](../src/check.ts#L5670) |
11026
11068
  | `SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | `SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | 'rig' | evidence | [] | [motionseampose.ts:53](../src/motionseampose.ts#L53) |
11027
- | `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5653](../src/check.ts#L5653) |
11028
- | `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4695](../src/check.ts#L4695), [check.ts:4741](../src/check.ts#L4741) |
11029
- | `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:4739](../src/check.ts#L4739) |
11069
+ | `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5664](../src/check.ts#L5664) |
11070
+ | `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4706](../src/check.ts#L4706), [check.ts:4752](../src/check.ts#L4752) |
11071
+ | `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:4750](../src/check.ts#L4750) |
11030
11072
  | `SETUP_MATCHES_PAINTING.regions` | `SETUP_MATCHES_PAINTING.regions` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [setuppainting.ts:175](../src/setuppainting.ts#L175) |
11031
11073
  | `SETUP_MATCHES_PAINTING.regions[].slots` | `SETUP_MATCHES_PAINTING.regions[].slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for slot; otherwise [] | [setuppainting.ts:176](../src/setuppainting.ts#L176) |
11032
11074
  | `SOURCE_EXPOSURE.rows` | `SOURCE_EXPOSURE.rows` | 'part' | finding when declared !== undefined && r.px > declared.max_px; otherwise evidence | [r.part] | [sourceexposure.ts:292](../src/sourceexposure.ts#L292) |
11033
11075
  | `SOURCE_EXPOSURE.unmeasured` | `SOURCE_EXPOSURE.unmeasured` | part when the supplied mapping resolves a piece; otherwise rig | finding when declared !== undefined; otherwise evidence | resolved piece for u.slot; otherwise [] | [sourceexposure.ts:293](../src/sourceexposure.ts#L293) |
11034
- | `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:9537](../src/check.ts#L9537) |
11035
- | `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when r.max > tolerance; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:9523](../src/check.ts#L9523), [check.ts:9528](../src/check.ts#L9528) |
11036
- | `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4299](../src/check.ts#L4299) |
11037
- | `STRESS_OFF_CHAIN.per_part` | `STRESS_OFF_CHAIN.per_part` | 'part' | finding when poses.some(p => typeof p.reading === 'number' && p.reading > STRESS_RIGID); otherwise evidence | [r.part] | [check.ts:4287](../src/check.ts#L4287) |
11038
- | `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4287](../src/check.ts#L4287) |
11039
- | `STRESS_OFF_CHAIN.per_part[].poses` | `STRESS_OFF_CHAIN.per_part[].poses` | 'part' | evidence; finding when shown > STRESS_RIGID; otherwise evidence | [r.part] | [check.ts:4255](../src/check.ts#L4255), [check.ts:4273](../src/check.ts#L4273) |
11040
- | `TEXTURE_STRETCH.per_mesh` | `TEXTURE_STRETCH.per_mesh` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when exceeds; otherwise evidence | resolved piece for m.slot; otherwise [] | [check.ts:10317](../src/check.ts#L10317), [check.ts:10324](../src/check.ts#L10324) |
11041
- | `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts` | 'part' | evidence; finding when !ok && !(!rigid && hanging.onLink && Math.max(c.root, c.tip) < TIP_TRAVEL_FLOOR); otherwise evidence | [p.name] | [check.ts:8912](../src/check.ts#L8912), [check.ts:8917](../src/check.ts#L8917), [check.ts:8938](../src/check.ts#L8938), [check.ts:8949](../src/check.ts#L8949) |
11042
- | `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:6833](../src/check.ts#L6833) |
11043
- | `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:6844](../src/check.ts#L6844) |
11044
- | `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6150](../src/check.ts#L6150) |
11045
- | `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:7947](../src/check.ts#L7947) |
11046
- | `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8280](../src/check.ts#L8280) |
11047
- | `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8280](../src/check.ts#L8280) |
11048
- | `requirements.lines.* (stretch)` | `requirements.lines.*` | part when the supplied mapping resolves a piece; otherwise rig | finding when line.status === 'FAIL'; otherwise evidence | resolved piece for r.slot; otherwise [] | [check.ts:8280](../src/check.ts#L8280) |
11049
- | `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5030](../src/check.ts#L5030) |
11050
- | `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise [] | [check.ts:4990](../src/check.ts#L4990) |
11051
- | `seam_pairs` | `seam_pairs`; `seam_scope.whole_pairs`; `sets.*.seam_pairs`; `sets.*.seam_scope.whole_pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:2708](../src/check.ts#L2708) |
11052
- | `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2186](../src/check.ts#L2186) |
11053
- | `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2271](../src/check.ts#L2271) |
11054
- | `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:7797](../src/check.ts#L7797) |
11055
- | `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2642](../src/check.ts#L2642) |
11056
- | `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:2643](../src/check.ts#L2643) |
11076
+ | `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:9550](../src/check.ts#L9550) |
11077
+ | `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when r.max > tolerance; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:9536](../src/check.ts#L9536), [check.ts:9541](../src/check.ts#L9541) |
11078
+ | `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4310](../src/check.ts#L4310) |
11079
+ | `STRESS_OFF_CHAIN.per_part` | `STRESS_OFF_CHAIN.per_part` | 'part' | finding when poses.some(p => typeof p.reading === 'number' && p.reading > STRESS_RIGID); otherwise evidence | [r.part] | [check.ts:4298](../src/check.ts#L4298) |
11080
+ | `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4298](../src/check.ts#L4298) |
11081
+ | `STRESS_OFF_CHAIN.per_part[].poses` | `STRESS_OFF_CHAIN.per_part[].poses` | 'part' | evidence; finding when shown > STRESS_RIGID; otherwise evidence | [r.part] | [check.ts:4266](../src/check.ts#L4266), [check.ts:4284](../src/check.ts#L4284) |
11082
+ | `TEXTURE_STRETCH.per_mesh` | `TEXTURE_STRETCH.per_mesh` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when exceeds; otherwise evidence | resolved piece for m.slot; otherwise [] | [check.ts:10612](../src/check.ts#L10612), [check.ts:10619](../src/check.ts#L10619) |
11083
+ | `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts` | 'part' | evidence; finding when !ok && !(!rigid && hanging.onLink && Math.max(c.root, c.tip) < TIP_TRAVEL_FLOOR); otherwise evidence | [p.name] | [check.ts:8925](../src/check.ts#L8925), [check.ts:8930](../src/check.ts#L8930), [check.ts:8951](../src/check.ts#L8951), [check.ts:8962](../src/check.ts#L8962) |
11084
+ | `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:6844](../src/check.ts#L6844) |
11085
+ | `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:6855](../src/check.ts#L6855) |
11086
+ | `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6161](../src/check.ts#L6161) |
11087
+ | `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:7959](../src/check.ts#L7959) |
11088
+ | `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8293](../src/check.ts#L8293) |
11089
+ | `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8293](../src/check.ts#L8293) |
11090
+ | `requirements.lines.* (stretch)` | `requirements.lines.*` | part when the supplied mapping resolves a piece; otherwise rig | finding when line.status === 'FAIL'; otherwise evidence | resolved piece for r.slot; otherwise [] | [check.ts:8293](../src/check.ts#L8293) |
11091
+ | `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5041](../src/check.ts#L5041) |
11092
+ | `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise [] | [check.ts:5001](../src/check.ts#L5001) |
11093
+ | `seam_pairs` | `seam_pairs`; `seam_scope.whole_pairs`; `sets.*.seam_pairs`; `sets.*.seam_scope.whole_pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:2709](../src/check.ts#L2709) |
11094
+ | `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2187](../src/check.ts#L2187) |
11095
+ | `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2272](../src/check.ts#L2272) |
11096
+ | `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:7809](../src/check.ts#L7809) |
11097
+ | `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2643](../src/check.ts#L2643) |
11098
+ | `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:2644](../src/check.ts#L2644) |
11099
+ | `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:10563](../src/check.ts#L10563) |
11057
11100
 
11058
11101
  | Serialized type path | Reason for schema exclusion |
11059
11102
  | --- | --- |
package/docs/STABILITY.md CHANGED
@@ -1206,7 +1206,7 @@ execution in historical evidence is inferred from a current export.
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
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 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. Core `check/build/run.json` records fresh `started_at` and `finished_at` clocks. |
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
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
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. |
@@ -1393,10 +1393,12 @@ inherit a scene-keyed parent, and a constraint can read a scene-keyed input. See
1393
1393
  ### Check report (`rig-parts-check/1`)
1394
1394
 
1395
1395
  `check --clip-stretch <scene.json>` has its own text and exit status. It exits
1396
- 0 when every take has a measurable passing peak, 1 on a refusal, failing bar
1397
- or missing reading, and 2 on usage errors. It writes no `check.json`,
1398
- `check-run.json`, or scene output. The ordinary check report, verdict and
1399
- compose admission retain their existing meanings.
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.
1400
1402
 
1401
1403
  Spec `rig-parts-check/1` (issues #1372, #1378) is a stable contract as of
1402
1404
  2.45.0, the first version that writes it.
@@ -1498,6 +1500,47 @@ Compose reads `bar_outcomes` on a report that declares this spec (issue
1498
1500
  readers, the historical interpretation is kept, including for reports
1499
1501
  written before this version.
1500
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
+
1501
1544
  ### Run stamp (`run.json`, spec `rig-run/1`)
1502
1545
 
1503
1546
  The CLI commands `rig` and `assemble` (when writing `--out`) write `<out>/run.json`
@@ -1728,8 +1771,9 @@ in the package.
1728
1771
 
1729
1772
  ## rig-c
1730
1773
 
1731
- `dependencies` takes `@rig-c/core` `3.11.0` exactly. Core 3.11.0 supplies the idle
1732
- 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
1733
1777
  is the declared floor (`engines.bun` `>=1.4.0`; older 1.4 releases are not tested in
1734
1778
  CI, which runs `latest`, and compatibility with an older 1.4 release is handled when
1735
1779
  reported as an issue). What this package relies on in rig-c, every import
@@ -1741,7 +1785,8 @@ read off `src/` and `cli.ts`:
1741
1785
  `skinningEnvelopeBone`, `writeMeshQualityReport` and their types),
1742
1786
  `@rig-c/core/meshcompare` (`compareMeshesInMotion`, `comparePreparedMotion`,
1743
1787
  `prepareMotionReference`), `@rig-c/core/compile` (`f32`), `@rig-c/core/core`
1744
- (`RUNTIME_PI`), `@rig-c/core/deformgen` (`evaluateDeformTransform`),
1788
+ (`RUNTIME_PI`, `poseSlider`, `readModel`, `underNoSkin`),
1789
+ `@rig-c/core/deformgen` (`evaluateDeformTransform`),
1745
1790
  `@rig-c/core/environment` (`ENVIRONMENT_SPEC`, `EnvironmentError`,
1746
1791
  `environmentResponse`, `readEnvironmentSchedule`), `@rig-c/core/errors`
1747
1792
  (`CompileError`), `@rig-c/core/font5x7` (`GLYPH_H`, `drawText`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rig-parts",
3
- "version": "2.67.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';
@@ -2158,6 +2158,9 @@ export function rigStage(input: RigStageInput, rigc: RigcRunner, scratch: string
2158
2158
  if (importedClipNames.length > 0 || Object.keys(rig.motion.animations).some(name => name !== 'idle')) {
2159
2159
  log(' Side clips have not been measured for texture stretch. Run rig-parts check --clip-stretch <scene.json> to measure them.');
2160
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
+ }
2161
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')}`);
2162
2165
  return rig;
2163
2166
  }
@@ -2523,6 +2526,7 @@ export function checkStage(input: CheckStageInput, rigc: RigcRunner, bin: string
2523
2526
  }
2524
2527
  }
2525
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));
2526
2530
  const folds = fig[FOLD_LINE];
2527
2531
  if (folds !== undefined) for (const l of foldsLines(folds)) log(` ${l}`);
2528
2532
  const level = fig[LEVEL_LINE];
package/src/check.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { refuseStaleAssembly, type AssemblyRules } from './assembly-reading.ts';
2
- import { checkRow, checkSlotRow, checkSlotParts, serializeCheckRows } from './checkrow.ts';
2
+ import { checkRow, checkSlotRow, checkSlotParts, serializeCheckRows, type CheckRowLabels } from './checkrow.ts';
3
3
  import { readSetupFigureMask } from './setupfiguremask.ts';
4
4
  import { readSetupBackdrop } from './setupbackdrop.ts';
5
5
  import { COINCIDE_LINE, type SupportReport } from './coincide.ts';
@@ -96,7 +96,8 @@ import { PHYSICS_CONTRIBUTES_LINE, measurePhysicsContribution, physicsLine, type
96
96
  import { jointContactReading, type JointContactReading } from './jointcontact.ts';
97
97
  import { createHash } from 'node:crypto';
98
98
  import { createRequire } from 'node:module';
99
- import type { Candidate, Piece, Viewport as RootCoverageViewport } from '@rig-c/core/render-shared';
99
+ import { poseSlider, readModel, underNoSkin } from '@rig-c/core/core';
100
+ import type { AttachmentPose, AttachmentRest, Candidate, Piece, Viewport as RootCoverageViewport } from '@rig-c/core/render-shared';
100
101
  import { fillHoles } from './raster/morph.ts';
101
102
  import { closeSync, copyFileSync, cpSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, readSync, realpathSync, renameSync, rmSync, statSync, writeFileSync, writeSync } from 'node:fs';
102
103
  import { argvPathFromOut, diagnosticSegment, diagnosticSiblings, unsafeSegmentReason } from './outputpaths.ts';
@@ -106,7 +107,7 @@ import { type BoneTransform, computeExactFrameTransforms, cropToSpineY, normalis
106
107
  import { capBox, inDisc } from './limbs.ts';
107
108
  import { motionSeamProblems, type MotionSeamDeclaration } from './motionseams.ts';
108
109
  import { seamPoseFrame, seamStaticRange, type SeamPoseAtWorst } from './motionseampose.ts';
109
- import { coreCompileGuideLine, PartsError, type Problem, refuseIfAny } from './errors.ts';
110
+ import { coreCompileGuideLine, failLine, PartsError, type Problem, refuseIfAny } from './errors.ts';
110
111
  import { framesInside, IDLE_FPS, TIME_SLACK } from './motion.ts';
111
112
  import {
112
113
  blinkFigures,
@@ -2983,6 +2984,8 @@ export interface CheckFigures {
2983
2984
  TIP_OVER_ROOT: JudgementLine;
2984
2985
  STILL_REGIONS_DARK: JudgementLine;
2985
2986
  TEXTURE_STRETCH: JudgementLine;
2987
+ /** Texture stretch at the authored slider inputs. Stock check reports these rows as advisories. */
2988
+ slider_stretch?: SliderStretchBlock;
2986
2989
  /** Written whenever motion.json holds an animation, the idle included (issues #320, #333): {@link FoldsLine}. */
2987
2990
  [FOLD_LINE]?: FoldsLine;
2988
2991
  /** Written only where a `footwear` part rides a bone with a parent and motion.json holds an animation (issue #348): {@link LevelLine}. */
@@ -3465,8 +3468,16 @@ export function barsSummary(r: Pick<CheckReport, 'bars'>): string {
3465
3468
  /** The summary's warning clause: each warning line that read something, named, with the warnings they printed together, and `PHYSICS_CONTRIBUTES` (issue #1320) and `SETUP_PAINTING_MOSTLY_UNCOVERED` only when they printed one (issue #1421); empty when none read. */
3466
3469
  export function warningsClause(r: Pick<CheckReport, 'motionSeam' | 'cloth' | 'figures'>): string {
3467
3470
  const read = [...(r.motionSeam.status === 'SKIP' || (r.motionSeam.roots !== undefined && r.motionSeam.pairs.every(p => p.root !== undefined)) ? [] : [{ name: MOTION_SEAM_LINE, n: r.motionSeam.warnings }]), ...(r.cloth.status === 'SKIP' ? [] : [{ name: CLOTH_LINE, n: r.cloth.warnings }]), ...((r.figures[PHYSICS_CONTRIBUTES_LINE]?.warnings ?? 0) === 0 ? [] : [{ name: PHYSICS_CONTRIBUTES_LINE, n: r.figures[PHYSICS_CONTRIBUTES_LINE]?.warnings ?? 0 }]), ...(setupPaintingWarningCount(r.figures[SETUP_PAINTING_LINE]) === 0 ? [] : [{ name: SETUP_PAINTING_UNCOVERED_WARNING, n: setupPaintingWarningCount(r.figures[SETUP_PAINTING_LINE]) }])];
3468
- if (read.length === 0) return '';
3469
- return `; ${read.reduce((a, x) => a + x.n, 0)} warning(s) (${read.map((x) => x.name).join(', ')}, not a bar)`;
3471
+ const sliders = r.figures.slider_stretch;
3472
+ let sliderTally = '';
3473
+ if (sliders !== undefined) {
3474
+ const counts = { PASS: 0, FAIL: 0, SKIP: 0 };
3475
+ for (const row of sliders.rows) counts[row.status]++;
3476
+ if (counts.FAIL > 0) read.push({ name: SLIDER_STRETCH_RULE, n: counts.FAIL });
3477
+ sliderTally = `; ${SLIDER_STRETCH_RULE} advisory rows: ${counts.PASS} PASS, ${counts.FAIL} FAIL, ${counts.SKIP} SKIP`;
3478
+ }
3479
+ const warnings = read.length === 0 ? '' : `; ${read.reduce((a, x) => a + x.n, 0)} warning(s) (${read.map((x) => x.name).join(', ')}, not a bar)`;
3480
+ return warnings + sliderTally;
3470
3481
  }
3471
3482
 
3472
3483
  /**
@@ -7411,6 +7422,7 @@ export function runCheck(rigDir: string, outDir: string, rigc: RigcRunner, parts
7411
7422
  stretchFailedWithoutReading = stretch.status === 'SKIP' && problems.length > beforeStretch;
7412
7423
  if (full !== null) still = stillLine(full, idle, geometry, geometryPath, problems, notPlanted, readingSkip('STILL_REGIONS_DARK'));
7413
7424
  }
7425
+ const sliderStretch = readSliderStretch(buildDir, sliderStretchBindings(inp.rig));
7414
7426
 
7415
7427
  // 3c. a sleeve on one chain, its first link turned large (issue #347): a throwaway copy, physics left out, posed by rigc
7416
7428
  let stress: JudgementLine | null = null;
@@ -7959,6 +7971,7 @@ export function runCheck(rigDir: string, outDir: string, rigc: RigcRunner, parts
7959
7971
  TIP_OVER_ROOT: tip,
7960
7972
  STILL_REGIONS_DARK: still,
7961
7973
  TEXTURE_STRETCH: stretch,
7974
+ ...(sliderStretch === undefined ? {} : { slider_stretch: sliderStretch }),
7962
7975
  ...(folds === null ? {} : { [FOLD_LINE]: folds }),
7963
7976
  ...(level === null ? {} : { [LEVEL_LINE]: level }),
7964
7977
  ...(stress === null ? {} : { [STRESS_LINE]: stress }),
@@ -10284,6 +10297,288 @@ export function measureTextureStretch(meshes: readonly MeshRest[], frames: reado
10284
10297
  });
10285
10298
  }
10286
10299
 
10300
+ const SLIDER_STRETCH_RULE = 'CHECK_SLIDER_STRETCH';
10301
+ const SLIDER_STRETCH_SAMPLES = 13;
10302
+
10303
+ export interface SliderStretchBinding {
10304
+ slider: string;
10305
+ clip: string;
10306
+ bone?: unknown;
10307
+ from?: unknown;
10308
+ max?: unknown;
10309
+ }
10310
+
10311
+ export type SliderStretchProvider = (candidate: Candidate, binding: SliderStretchBinding, dial: number) => {
10312
+ attachments: readonly AttachmentPose[];
10313
+ time: number;
10314
+ };
10315
+
10316
+ export interface SliderStretchPeak {
10317
+ severity: number;
10318
+ gate: number;
10319
+ dial_value: number;
10320
+ sample: number;
10321
+ clip_frame: number | null;
10322
+ clip_time_s: number;
10323
+ slot: string;
10324
+ attachment: string;
10325
+ triangle: number;
10326
+ vertices: StretchAt['vertices'];
10327
+ edge: StretchAt['edge'];
10328
+ }
10329
+
10330
+ export interface SliderStretchRow {
10331
+ slider: string;
10332
+ clip: string;
10333
+ status: 'PASS' | 'FAIL' | 'SKIP';
10334
+ range: [number, number] | null;
10335
+ sample_count: number;
10336
+ peak?: SliderStretchPeak;
10337
+ reason?: string;
10338
+ }
10339
+
10340
+ export interface SliderStretchBlock {
10341
+ fps: number;
10342
+ limit: number;
10343
+ rows: Array<SliderStretchRow & CheckRowLabels>;
10344
+ }
10345
+
10346
+ /** Read authored endpoints before the compiler fills in defaults. */
10347
+ export function sliderStretchBindings(rig: Record<string, unknown>): SliderStretchBinding[] {
10348
+ const bindings: SliderStretchBinding[] = [];
10349
+ if (!Array.isArray(rig.constraints)) return bindings;
10350
+ for (const c of rig.constraints) {
10351
+ if (!isRecord(c) || c.type !== 'slider' || typeof c.name !== 'string' || typeof c.animation !== 'string') continue;
10352
+ bindings.push({ slider: c.name, clip: c.animation,
10353
+ ...(Object.hasOwn(c, 'bone') ? { bone: c.bone } : {}),
10354
+ ...(Object.hasOwn(c, 'from') ? { from: c.from } : {}),
10355
+ ...(Object.hasOwn(c, 'max') ? { max: c.max } : {}) });
10356
+ }
10357
+ return bindings;
10358
+ }
10359
+
10360
+ function sliderStretchObject(binding: Pick<SliderStretchBinding, 'slider' | 'clip'>): string {
10361
+ return `slider-applied clip ${JSON.stringify(binding.clip)} via dial ${JSON.stringify(binding.slider)}`;
10362
+ }
10363
+
10364
+ function sliderStretchRefusal(api: OfficialRenderer, err: unknown): string {
10365
+ if (err instanceof PartsError) {
10366
+ const [first] = err.problems;
10367
+ return err.problems.length === 1 && first?.code === SLIDER_STRETCH_RULE ? first.detail : err.message;
10368
+ }
10369
+ if (err instanceof api.CandidateAtlasError || err instanceof api.CandidatePairError || err instanceof api.CoreInputError ||
10370
+ err instanceof api.PoserChoiceError || err instanceof api.SlotSubsetError || err instanceof api.SpineRuntimeError) return err.message;
10371
+ throw err;
10372
+ }
10373
+
10374
+ function sliderSampleLabel(sample: number, dial: number): string {
10375
+ return `sample ${sample}, dial ${dial}`;
10376
+ }
10377
+
10378
+ function finiteSliderNumber(value: unknown): value is number {
10379
+ return typeof value === 'number' && Number.isFinite(value);
10380
+ }
10381
+
10382
+ function sliderDialGrid([from, max]: [number, number]): number[] {
10383
+ const span = max - from;
10384
+ return Array.from({ length: SLIDER_STRETCH_SAMPLES }, (_, i) => {
10385
+ const last = SLIDER_STRETCH_SAMPLES - 1;
10386
+ if (i === 0) return from;
10387
+ if (i === last) return max;
10388
+ const t = i / last;
10389
+ return Number.isFinite(span) ? from + span * t : from * (1 - t) + max * t;
10390
+ });
10391
+ }
10392
+
10393
+ type SliderPose = ReturnType<SliderStretchProvider> & { sample: number; dial: number };
10394
+
10395
+ function sliderMeshGeometry(mesh: AttachmentRest, pose: AttachmentPose): string | undefined {
10396
+ const { vertices, triangles } = mesh;
10397
+ if (!numberArray(vertices) || vertices.length % 2 !== 0 || vertices.length !== pose.vertices.length ||
10398
+ !numberArray(triangles) || triangles.length % 3 !== 0 || !triangles.every(i => Number.isInteger(i) && i >= 0 && 2 * i < vertices.length)) {
10399
+ return 'requires finite setup vertices matching the posed vertex count and triangle triplets indexing those vertices';
10400
+ }
10401
+ // Finite vertices can still yield an overflowing length. The shared extrema
10402
+ // alone cannot detect a NaN ratio between finite readings of other edges.
10403
+ for (let i = 0; i < triangles.length; i += 3) {
10404
+ const triangle = triangles.slice(i, i + 3);
10405
+ for (let edge = 0; edge < 3; edge++) {
10406
+ const a = triangle[edge], b = triangle[(edge + 1) % 3];
10407
+ if ([vertices, pose.vertices].some(v => !Number.isFinite(edgeLength(v[2 * a] - v[2 * b], v[2 * a + 1] - v[2 * b + 1])))) {
10408
+ return `triangle ${i / 3} edge ${a}-${b} has a non-finite setup or posed length`;
10409
+ }
10410
+ }
10411
+ }
10412
+ }
10413
+
10414
+ function measureSliderStretch(api: OfficialRenderer, candidate: Candidate, binding: SliderStretchBinding, range: [number, number], provide: SliderStretchProvider): SliderStretchRow {
10415
+ const dials = sliderDialGrid(range);
10416
+ const base = { slider: binding.slider, clip: binding.clip, range };
10417
+ const poses: SliderPose[] = [];
10418
+ const missed = new Set<number>();
10419
+ let incomplete: { sample: number; reason: string } | undefined;
10420
+ const miss = (sample: number, dial: number, detail: string) => {
10421
+ missed.add(sample);
10422
+ if (incomplete === undefined || sample < incomplete.sample) incomplete = { sample, reason: `${sliderSampleLabel(sample, dial)}: ${detail}` };
10423
+ };
10424
+ for (const [sample, dial] of dials.entries()) {
10425
+ try {
10426
+ const { attachments, time } = provide(candidate, binding, dial);
10427
+ if (!finiteSliderNumber(time) || time < 0) {
10428
+ miss(sample, dial, `applied clip time is ${String(time)}; requires a finite nonnegative time`);
10429
+ } else if (!Array.isArray(attachments) || attachments.some(a => !isRecord(a) || typeof a.slot !== 'string' ||
10430
+ typeof a.attachment !== 'string' || !numberArray(a.vertices) || a.vertices.length === 0 || a.vertices.length % 2 !== 0)) {
10431
+ miss(sample, dial, `clip time ${time} s: requires named attachment geometry with finite x/y vertex pairs`);
10432
+ } else {
10433
+ poses.push({ sample, dial, attachments, time });
10434
+ }
10435
+ } catch (err) {
10436
+ miss(sample, dial, sliderStretchRefusal(api, err));
10437
+ }
10438
+ }
10439
+
10440
+ let peak: SliderStretchPeak | undefined;
10441
+ let worstSeverity = 0;
10442
+ let exceeds = false;
10443
+ if (poses.length > 0) {
10444
+ let rest: AttachmentRest[] = [];
10445
+ try {
10446
+ rest = api.throughPoser(candidate.choice, poser => {
10447
+ const setup = poser.setup(undefined).attachments();
10448
+ return poser.rest(undefined, [setup, ...poses.map(p => [...p.attachments])]);
10449
+ }).value;
10450
+ } catch (err) {
10451
+ const { sample, dial } = poses[0];
10452
+ if (!(err instanceof Error)) throw err;
10453
+ miss(sample, dial, `setup geometry: ${err.message}`);
10454
+ }
10455
+ const byAttachment = new Map(rest.map(mesh => [JSON.stringify([mesh.slot, mesh.attachment]), mesh]));
10456
+ for (const { sample, dial, time, attachments } of poses) {
10457
+ const meshes: MeshRest[] = [];
10458
+ const seen = new Set<string>();
10459
+ const unmeasured = (detail: string) => miss(sample, dial, `clip time ${time} s: ${detail}`);
10460
+ for (const attachment of attachments) {
10461
+ const key = JSON.stringify([attachment.slot, attachment.attachment]);
10462
+ const object = `slot ${JSON.stringify(attachment.slot)} attachment ${JSON.stringify(attachment.attachment)}`;
10463
+ const mesh = byAttachment.get(key);
10464
+ if (seen.has(key) || mesh === undefined) {
10465
+ unmeasured(`${object} ${seen.has(key) ? 'appears more than once' : 'has no setup geometry'}`);
10466
+ continue;
10467
+ }
10468
+ seen.add(key);
10469
+ if (mesh.kind !== 'mesh') continue;
10470
+ const bad = sliderMeshGeometry(mesh, attachment);
10471
+ if (bad !== undefined) unmeasured(`${object}: ${bad}`);
10472
+ else meshes.push(mesh);
10473
+ }
10474
+ let measurable = false;
10475
+ for (const { mesh, peak: hit } of measureTextureStretch(meshes, [{ index: sample, attachments }])) {
10476
+ const object = `mesh ${JSON.stringify(mesh.slot)} attachment ${JSON.stringify(mesh.attachment)}`;
10477
+ const degenerate = mesh.degenerate[0];
10478
+ if (degenerate !== undefined) unmeasured(`${object} triangle ${degenerate.triangle} edge ${degenerate.edge.join('-')} has zero setup length`);
10479
+ if (hit === null) continue;
10480
+ const { at, raw, rounded } = hit;
10481
+ if (!Number.isFinite(raw) || !Number.isFinite(rounded) || !Number.isFinite(at.ratio) || at.ratio <= 0) {
10482
+ unmeasured(`${object} triangle ${at.triangle} edge ${at.edge.join('-')} has no finite stretch severity (ratio ${at.ratio})`);
10483
+ continue;
10484
+ }
10485
+ measurable = true;
10486
+ exceeds ||= hit.exceeds;
10487
+ if (peak !== undefined && raw <= worstSeverity) continue;
10488
+ worstSeverity = raw;
10489
+ const frame = Math.round(time * IDLE_FPS);
10490
+ peak = {
10491
+ severity: round6(raw), gate: rounded, dial_value: dial, sample,
10492
+ clip_frame: Number.isSafeInteger(frame) && Math.abs(time - frame / IDLE_FPS) <= TIME_SLACK ? frame : null,
10493
+ clip_time_s: time, slot: mesh.slot, attachment: mesh.attachment, triangle: at.triangle, vertices: at.vertices, edge: at.edge,
10494
+ };
10495
+ }
10496
+ if (!measurable) unmeasured('no posed mesh triangle edge could be measured');
10497
+ }
10498
+ }
10499
+ return { ...base, status: incomplete !== undefined || exceeds ? 'FAIL' : 'PASS', sample_count: dials.length - missed.size,
10500
+ ...(peak === undefined ? {} : { peak }), ...(incomplete === undefined ? {} : { reason: incomplete.reason }) };
10501
+ }
10502
+
10503
+ /** Measure each slider binding on the pre-gated build. Stock check never votes these rows into its verdict. */
10504
+ export function readSliderStretch(buildDir: string, bindings: readonly SliderStretchBinding[], provide?: SliderStretchProvider): SliderStretchBlock | undefined {
10505
+ if (bindings.length === 0) return undefined;
10506
+ const rows: SliderStretchRow[] = [];
10507
+ let source: { api: OfficialRenderer; candidate: Candidate; provider: SliderStretchProvider } | { reason: string } | undefined;
10508
+ for (const binding of bindings) {
10509
+ const { slider, clip, bone, max } = binding;
10510
+ const from = finiteSliderNumber(binding.from) ? binding.from : 0;
10511
+ const base = { slider, clip, range: null, sample_count: 0 };
10512
+ const bad = (['from', 'max'] as const).find(key => Object.hasOwn(binding, key) && !finiteSliderNumber(binding[key]));
10513
+ if (bad !== undefined) {
10514
+ rows.push({ ...base, status: 'FAIL', reason: `declared dial bound ${bad} is ${String(binding[bad])}; requires a finite number` });
10515
+ } else if (finiteSliderNumber(max) && from > max) {
10516
+ rows.push({ ...base, status: 'FAIL', reason: `declared dial range [${from}, ${max}] is reversed; requires from <= max` });
10517
+ } else if (Object.hasOwn(binding, 'bone') && (typeof bone !== 'string' || bone.length === 0)) {
10518
+ rows.push({ ...base, status: 'FAIL', reason: `declared driving bone is ${String(bone)}; requires a bone name` });
10519
+ } else if (bone === undefined || !finiteSliderNumber(max)) {
10520
+ const reason = bone === undefined ? 'no declared dial range; the slider is time-driven' : 'no declared dial range; declare max to measure texture stretch';
10521
+ rows.push({ ...base, status: 'SKIP', reason });
10522
+ } else if (from === max) {
10523
+ rows.push({ ...base, status: 'SKIP', range: [from, max], reason: `declared dial range [${from}, ${max}] has equal endpoints` });
10524
+ } else {
10525
+ const range: [number, number] = [from, max];
10526
+ if (source === undefined) {
10527
+ const api = officialRenderer();
10528
+ const skeleton = join(buildDir, 'skeleton.json'), atlas = join(buildDir, 'skeleton.atlas');
10529
+ if (!existsSync(skeleton)) source = { reason: 'gated skeleton.json is missing' };
10530
+ else {
10531
+ try {
10532
+ const candidate = api.loadCandidate({ skeletonText: readFileSync(skeleton, 'utf8'), atlasText: existsSync(atlas) ? readFileSync(atlas, 'utf8') : null,
10533
+ atlasDir: buildDir, label: 'slider stretch' }, { skeleton, atlas }, undefined);
10534
+ let provider = provide;
10535
+ if (provider === undefined) {
10536
+ const modelPath = join(buildDir, 'skeleton.model.json');
10537
+ const doc = underNoSkin(readModel(readFileSync(modelPath, 'utf8'), modelPath));
10538
+ provider = (_candidate, target, value) => {
10539
+ const { pose, appliedTime } = poseSlider(doc, target.slider, value);
10540
+ return {
10541
+ attachments: pose.drawn.map(({ slot, attachment, vertices, colour }) => ({ slot, attachment, vertices, color: colour })),
10542
+ time: appliedTime,
10543
+ };
10544
+ };
10545
+ }
10546
+ source = { api, candidate, provider };
10547
+ } catch (err) {
10548
+ source = { reason: sliderStretchRefusal(api, err) };
10549
+ }
10550
+ }
10551
+ }
10552
+ if ('reason' in source) {
10553
+ rows.push({ slider, clip, status: 'FAIL', range, sample_count: 0,
10554
+ reason: `${sliderSampleLabel(0, from)}: ${source.reason}` });
10555
+ } else {
10556
+ rows.push(measureSliderStretch(source.api, source.candidate, binding, range, source.provider));
10557
+ }
10558
+ }
10559
+ }
10560
+ return {
10561
+ fps: IDLE_FPS,
10562
+ limit: TEXTURE_STRETCH_CEILING,
10563
+ rows: rows.map(row => ({ ...row, ...checkRow('slider_stretch.rows', 'rig', row.status === 'FAIL', []) })),
10564
+ };
10565
+ }
10566
+
10567
+ export function sliderStretchLine(row: SliderStretchRow, advisory = false): string {
10568
+ const object = sliderStretchObject(row);
10569
+ const { peak, range, reason, sample_count: samples } = row;
10570
+ const coverage = samples === SLIDER_STRETCH_SAMPLES ? String(samples) : `${samples} of ${SLIDER_STRETCH_SAMPLES}`;
10571
+ const grid = range === null || row.status === 'SKIP' ? '' : `${coverage} dial samples in [${range.join(', ')}]`;
10572
+ const reading = peak === undefined ? grid :
10573
+ `peak ${peak.severity.toFixed(6)}x (gate ${peak.gate.toFixed(3)}x, limit ${TEXTURE_STRETCH_CEILING}x), ${grid}, ` +
10574
+ `dial ${peak.dial_value}, sample ${peak.sample}, clip frame ${peak.clip_frame ?? 'off-grid'} at ${peak.clip_time_s.toFixed(6)} s, ` +
10575
+ `mesh ${JSON.stringify(peak.slot)} attachment ${JSON.stringify(peak.attachment)}, triangle ${peak.triangle} (vertices ${peak.vertices.join(' ')}), edge ${peak.edge.join('-')}`;
10576
+ const detail = [reading, reason].filter(Boolean).join('; ');
10577
+ if (row.status === 'FAIL' && !advisory) return failLine({ code: SLIDER_STRETCH_RULE, object, detail });
10578
+ const level = row.status === 'FAIL' ? 'WARN' : row.status;
10579
+ return ` ${level} ${SLIDER_STRETCH_RULE}: ${object} — ${detail}`;
10580
+ }
10581
+
10287
10582
  /**
10288
10583
  * (6) No visible texture stretch: for every mesh triangle, each edge's length
10289
10584
  * in each idle frame over its rest length (the setup pose's bones, no deform —
package/src/checkrow.ts CHANGED
@@ -85,6 +85,7 @@ export const CHECK_ROW_PATHS = {
85
85
  'seam_scope.pairs': ['seam_scope.pairs', 'sets.*.seam_scope.pairs'],
86
86
  'seam_scope.population.pairs': ['seam_scope.population.pairs', 'sets.*.seam_scope.population.pairs'],
87
87
  'seam_scope.population.single_art': ['seam_scope.population.single_art', 'sets.*.seam_scope.population.single_art'],
88
+ 'slider_stretch.rows': ['slider_stretch.rows'],
88
89
  } as const;
89
90
  export type CheckRowFamily = keyof typeof CHECK_ROW_PATHS;
90
91
  /** Enumerable so object spread preserves provenance; JSON never serializes symbols. */
@@ -3,8 +3,8 @@ import { join } from 'node:path';
3
3
  import type { AttachmentRest, Frame } from '@rig-c/core/render-shared';
4
4
  import { gateThroughRigc, type Log } from './build.ts';
5
5
  import {
6
- DEFAULT_PACK_SHAPE, DEFAULT_PAGE_EDGES, edgeBonesText, measureTextureStretch, officialRenderer, rigcRanClause,
7
- TEXTURE_STRETCH_CEILING, type RigcRunner,
6
+ DEFAULT_PACK_SHAPE, DEFAULT_PAGE_EDGES, edgeBonesText, measureTextureStretch, officialRenderer, readSliderStretch, rigcRanClause,
7
+ sliderStretchBindings, sliderStretchLine, TEXTURE_STRETCH_CEILING, type RigcRunner, type SliderStretchProvider,
8
8
  } from './check.ts';
9
9
  import { failLine, PartsError } from './errors.ts';
10
10
  import { IDLE_FPS } from './motion.ts';
@@ -56,9 +56,11 @@ export function clipStretchReading(
56
56
  }
57
57
 
58
58
  /** Compose in scratch, gate once, then sample each retained take without rasterizing or emitting a report. */
59
- export function checkClipStretch(scene: string, scratch: string, rigc: RigcRunner, log: Log): boolean {
59
+ export function checkClipStretch(scene: string, scratch: string, rigc: RigcRunner, log: Log, provide?: SliderStretchProvider): boolean {
60
60
  const mode = { pageEdges: DEFAULT_PAGE_EDGES, packShape: DEFAULT_PACK_SHAPE };
61
- const { rig, motion, images } = readSceneForClipStretch(scene, mode);
61
+ const { rig, motion, images, explicitlyPlayed } = readSceneForClipStretch(scene, mode);
62
+ const bindings = sliderStretchBindings({ ...rig });
63
+ const sliderClips = new Set(bindings.map(binding => binding.clip));
62
64
  let passed = true;
63
65
  const [gate] = gateThroughRigc(images, [['rig.json', rigJsonText(rig)], ['motion.json', rigJsonText(motion)]], rigc, scratch, mode, build => {
64
66
  const api = officialRenderer();
@@ -68,7 +70,8 @@ export function checkClipStretch(scene: string, scratch: string, rigc: RigcRunne
68
70
  let object = sceneObject;
69
71
  try {
70
72
  const candidate = api.loadCandidate({ skeletonText: readFileSync(skeleton, 'utf8'), atlasText: readFileSync(atlas, 'utf8'), atlasDir: build, label: sceneObject }, { skeleton, atlas }, undefined);
71
- const sides = Object.keys(motion.animations).filter(name => name !== 'idle');
73
+ const sides = Object.keys(motion.animations).filter(name =>
74
+ name !== 'idle' && (!sliderClips.has(name) || explicitlyPlayed.has(name)));
72
75
  for (const name of [...sides, 'idle']) {
73
76
  object = `${name === 'idle' ? 'declared idle' : 'side clip'} ${JSON.stringify(name)}`;
74
77
  const { value } = api.throughPoser(candidate.choice, poser => {
@@ -85,6 +88,10 @@ export function checkClipStretch(scene: string, scratch: string, rigc: RigcRunne
85
88
  for (const line of value.lines) log(line);
86
89
  if (!value.passed) passed = false;
87
90
  }
91
+ for (const row of readSliderStretch(build, bindings, provide)?.rows ?? []) {
92
+ log(sliderStretchLine(row));
93
+ if (row.status === 'FAIL') passed = false;
94
+ }
88
95
  } catch (err) {
89
96
  if (!(err instanceof api.CandidateAtlasError || err instanceof api.CandidatePairError || err instanceof api.CoreInputError ||
90
97
  err instanceof api.PoserChoiceError || err instanceof api.SpineRuntimeError)) throw err;
package/src/scene.ts CHANGED
@@ -1173,6 +1173,7 @@ export function scaledConstraint(con: Record<string, unknown>, s: number): Recor
1173
1173
  case 'slider':
1174
1174
  if (sliderInputIsLength(con)) {
1175
1175
  len('from');
1176
+ len('max');
1176
1177
  out.scale = scaledBy(typeof con.scale === 'number' ? con.scale : SPINE_SLIDER_SCALE_DEFAULT, 1 / s);
1177
1178
  }
1178
1179
  break;
@@ -2591,8 +2592,14 @@ function readSceneComposition(scenePath: string, mode: PackMode, accept: readonl
2591
2592
  }
2592
2593
 
2593
2594
  /** Read the declared composition before character checks. The diagnostic gates its own scratch candidate. */
2594
- export function readSceneForClipStretch(scenePath: string, mode: PackMode): Pick<ComposedScene, 'rig' | 'motion' | 'images'> {
2595
- return readSceneComposition(scenePath, mode, [], false).composed;
2595
+ export function readSceneForClipStretch(scenePath: string, mode: PackMode):
2596
+ Pick<ComposedScene, 'rig' | 'motion' | 'images'> & { explicitlyPlayed: ReadonlySet<string> } {
2597
+ const { scene, composed: { rig, motion, images } } = readSceneComposition(scenePath, mode, [], false);
2598
+ const explicitlyPlayed = new Set([...Object.keys(scene.animations ?? {}), ...Object.keys(scene.camera?.tracks ?? {})]);
2599
+ for (const character of scene.characters) {
2600
+ for (const clip of Object.keys(character.with_idle ?? {})) explicitlyPlayed.add(prefixed(character.id, clip));
2601
+ }
2602
+ return { rig, motion, images, explicitlyPlayed };
2596
2603
  }
2597
2604
 
2598
2605
  /**
package/src/sceneclips.ts CHANGED
@@ -533,7 +533,7 @@ export function mergeSceneAnimations(rig: RigSpec, motion: MotionSpec, clips: Sc
533
533
  continue;
534
534
  }
535
535
  // Bounds belong to the actual final slider, never to a guessed dial-name list.
536
- // `from` is the declared bottom and `max` the editor's declared top (Core's RigSliderConstraint).
536
+ // Core resolves an omitted `from` to zero. The editor's `max` is authored.
537
537
  for (const track of clip.tracks) {
538
538
  if (track.group !== undefined && (!Object.hasOwn(motion.groups, track.group) || !Array.isArray(motion.groups[track.group]))) {
539
539
  problems.push({ code: 'CE_COMPILE_ANIMATION_GROUP_UNKNOWN', object: `scene.animations.${name}`,
@@ -545,9 +545,9 @@ export function mergeSceneAnimations(rig: RigSpec, motion: MotionSpec, clips: Sc
545
545
  if (slider.type !== 'slider' || slider.bone !== bone) continue;
546
546
  const channel = sliderInputChannel(slider.property, track.property);
547
547
  if (channel === null) continue;
548
- const from = slider.from, max = slider.max;
548
+ const from = slider.from === undefined ? 0 : slider.from, max = slider.max;
549
549
  if (typeof from !== 'number' || !Number.isFinite(from) || typeof max !== 'number' || !Number.isFinite(max) || from > max) {
550
- problems.push({ code: 'SCENE_DIAL_RANGE_DECLARED', object: `scene.animations.${name} bone "${bone}" slider "${String(slider.name)}"`, detail: `has no readable declared range: from ${String(from)}, max ${String(max)}; declare both bounds before keying this dial` });
550
+ problems.push({ code: 'SCENE_DIAL_RANGE_DECLARED', object: `scene.animations.${name} bone "${bone}" slider "${String(slider.name)}"`, detail: `has no readable declared range: from ${String(from)}, max ${String(max)}; declare an ordered range with finite max before keying this dial` });
551
551
  continue;
552
552
  }
553
553
  for (const key of track.keys) {