rig-parts 2.67.0 → 2.69.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/README.md CHANGED
@@ -274,6 +274,7 @@ Command details and config saving are in the [command reference](docs/AUTHORING.
274
274
  | `head-crop-preflight` | [Report what a head box would clip, before the head run](docs/AUTHORING.md#command-reference) |
275
275
  | `sheet` | [Make a contact sheet](docs/AUTHORING.md#command-reference) |
276
276
  | `assemble` | [Merge layers into measured parts](docs/AUTHORING.md#command-reference) |
277
+ | `replace-parts` | [Apply receipted PNG edits to a recorded parts set](docs/AUTHORING.md#replace-parts) |
277
278
  | `check-parts` | [Check assembled parts' integrity and write a report](docs/AUTHORING.md#check-parts) |
278
279
  | `diff-components` | [List every place the stacked parts differ from the painting](docs/AUTHORING.md#whole-figure-difference-inventory) |
279
280
  | `diff-drafts` | [Compare two assemble outputs](docs/AUTHORING.md#command-reference) |
package/cli.ts CHANGED
@@ -9,6 +9,7 @@ import { modelArrayMap, serializeModelArrayMap } from './src/modelarray.ts';
9
9
  import { externalReceipt } from './src/externalreceipt.ts';
10
10
  import { BUST_LANDMARKS_ACT_SCHEMA, BUST_LANDMARKS_COMMENT_ACT_SCHEMA, BUST_LANDMARKS_PROVENANCE_SPEC, BUST_LANDMARKS_PROVENANCE_SUFFIX, BUST_POINT_SHAPE_FIELDS, bustShapeClause, type BustSidecar, effectiveBustShape, planBustLandmarks, readBustSidecar, stageBustLandmarks, stageReplacements, type StagedBustLandmarks } from './src/bustlandmarks.ts';
11
11
  import { writeEditedPart } from './tools/edited-part-cli.ts';
12
+ import { replaceParts } from './src/replaceparts.ts';
12
13
  /**
13
14
  * rig-parts — one painting and its See-through layers in, Spine-ready parts
14
15
  * and rig specs out, verified through rig-c.
@@ -46,6 +47,7 @@ import { idleKeysOf, isIdleKeys } from './src/rig.ts';
46
47
  import { bodyCoreBox, bodyOpaqueBox, CORE_ALPHA, depthSkipLine, exportLayers, figuresPhrase, hiddenLayerLine, implausibleRules, layerCoreBox, layerFigures, layerOpaqueBox, type LayerSet, layerSetDiff, type OpaqueBox, OPAQUE_ALPHA_ABOVE, pct, readLayers, readWrapperLayers, ruleSummary, templateLayerNames, templatePsdBytes, times } from './src/layers.ts';
47
48
  import { checkImageSize, choosePerson, KEYPOINTS_SPEC, loadKeypoints, type RigJoints, toRigJoints } from './src/keypoints.ts';
48
49
  import { checkPartsStage } from './src/partscheck.ts';
50
+ import { withinPartsPath } from './src/partsfiles.ts';
49
51
  import { basisLines, branchSqueezeLine, bustCleavage, checkProposal, compare, compareLines, DEFAULT_GRID_RULE, draftTurn, drawLandmarks, FIGURE_GRID_DIVISOR, FRINGE_STEP_PX, GRID_RULES, type GridRule, type BustDraft, type Proposal, HIP_MIN_FRACTION, type DraftLintFinding, lint, lintLine, type PartSet, PROPOSAL_CONFIG_SECTIONS, proposalAsConfig, proposeWithBasis, readBustLandmarks, readPartSet, serializeProposal, withTurn, WRIST_ON_PART_PX } from './src/propose.ts';
50
52
  import { BASIS_FILE, BASIS_SPEC, basisFile, basisLine, coverageLines, legChainChoice, serializeBasis } from './src/diagnostics.ts';
51
53
  import { BEND_DEGREES, BEND_WORST_SHARE, DUST_MAX_PX, DUST_MAX_SHARE, IDLE_BOUND_PX, MESH_DRAFT_REPORT, MESH_DRAFT_SPEC, meshDraftStage, MORE_TRIANGLES_FLAG, relativeConfigPaths, TOLERANCE_FIGURE_DIVISOR } from './src/meshdraft.ts';
@@ -56,10 +58,11 @@ import { RETUNE_FILE, RETUNE_SPEC, retuneStage } from './src/retune.ts';
56
58
  import { checkPainting, DEFAULT_PAINTING_FORM, isPaintingForm, PAINTING_FORMS, paintingFormOf } from './src/paintcheck.ts';
57
59
  import { decodePngBytes, readPng, writePng } from './src/raster/png.ts';
58
60
  import { REQUIREMENTS_SENTENCE } from './src/requirements.ts';
61
+ import { replacementTreeDigest } from './src/replacementrecord.ts';
59
62
  import { type ComposeInput, composeStage, IMAGE_SEP, PLATE, PROVENANCES, refusePreviewLoopSeam, SCENE_CAMERA_REPORT_SPEC, SCENE_REPORT_FILE, SCENE_REPORT_SPEC, SCENE_SPEC } from './src/scene.ts';
60
63
  import { buildSheet, defaultCaption, type Tile, tilesFrom } from './src/sheet.ts';
61
64
  import { loadComparison, requiredProblems, structureLines } from './src/structure.ts';
62
- import { type ArgvTable, assembleOutputFiles, BUILD_RUN_FILE, CHECK_RUN_FILE, clearComposeRun, clearRunRecord, clearRunStamp, readPackageIdentity, recordArgv, rigOutputFiles, RUN_STAMP_FILE, RUN_STAMP_SPEC, writeRunRecord, writeRunStamp } from './src/runstamp.ts';
65
+ import { type ArgvTable, assembleOutputFiles, BUILD_RUN_FILE, CHECK_RUN_FILE, clearComposeRun, clearRunRecord, clearRunStamp, readPackageIdentity, realWhereItExists, recordArgv, rigOutputFiles, RUN_STAMP_FILE, RUN_STAMP_SPEC, type RunStampFileEntry, writeRunRecord, writeRunStamp } from './src/runstamp.ts';
63
66
  import { authorLayerLine } from './src/tags.ts';
64
67
 
65
68
  const EXIT_OK = 0;
@@ -88,6 +91,10 @@ usage:
88
91
  Record both file hashes and the declared editor in one edited_parts receipt.
89
92
  Update only explicitly named configs; build verifies the assembled baseline.
90
93
 
94
+ rig-parts replace-parts --parts <dir> --edits <json> --out <dir> [--source-sha256 <sha256>]
95
+ Derive a new parts set from a recorded set and hash-bound replacement PNGs.
96
+ Write the derivation record and retain independent files byte for byte.
97
+
91
98
  rig-parts diff-components --stack <png> --painting <png> --parts <parts.json> --floor <px>
92
99
  [--threshold <channel>] [--figure <binary-png>] [--owners] (--out <json> | --verify <json>)
93
100
  Exhaustive native difference inventory; default max RGB channel > 40.
@@ -648,7 +655,8 @@ usage:
648
655
  [--wind-band <spec.json>] [--json]
649
656
  [--loop-seam-bar <channel-delta,pixels> --loop-seam-cap <loops>]
650
657
  Diagnostic form: rig-parts check --clip-stretch <scene.json>
651
- Measures each retained side clip alone and the declared scene idle.
658
+ Measures played side clips and the declared scene idle. Slider-applied
659
+ clips have a separate reading over the authored dial range.
652
660
  This form takes only the scene path and prints a text diagnostic.
653
661
  --json prints the completed check.json object only, with unchanged exit codes.
654
662
  The loop seam flags together require a positive idle period. Core selects
@@ -1292,6 +1300,7 @@ function printLayerTable(set: LayerSet): void {
1292
1300
  */
1293
1301
  const TAKES = {
1294
1302
  'edited-part': { valued: ['--config', '--part', '--file', '--from', '--editor', '--producer', '--parts', '--rig-config'], switches: ['--help'] },
1303
+ 'replace-parts': { valued: ['--parts', '--edits', '--out', '--source-sha256'], switches: ['--help'] },
1295
1304
  'external-receipt': { valued: ['--kind', '--file', '--painting', '--producer', '--out', '--verify'], switches: ['--help'] },
1296
1305
  'check-parts': { valued: ['--parts', '--out'], switches: ['--json', '--help'] },
1297
1306
  'bust-landmarks': { valued: ['--from-act', '--parts', '--config', '--out'], switches: ['--write-config', '--help'] },
@@ -1566,6 +1575,31 @@ function runStampClock(): string | undefined {
1566
1575
  return new Date(millis).toISOString();
1567
1576
  }
1568
1577
 
1578
+ /** Capture before clearing or writing outputs. Let the stage report its own input refusals first. */
1579
+ function capturePartsInput(path: string, out: string): () => RunStampFileEntry {
1580
+ let root: string;
1581
+ let sha256: string;
1582
+ try {
1583
+ root = realWhereItExists(resolve(path));
1584
+ sha256 = replacementTreeDigest(root);
1585
+ } catch (error) {
1586
+ return () => { throw error; };
1587
+ }
1588
+ return () => {
1589
+ const finalRoot = realWhereItExists(resolve(path));
1590
+ const outRoot = realWhereItExists(resolve(out));
1591
+ let detail: string | undefined;
1592
+ if (finalRoot !== root) detail = `resolved to ${JSON.stringify(finalRoot)} after the stage; expected ${JSON.stringify(root)}`;
1593
+ // An overlapping output can change the source inventory itself, so its digest is the pre-stage snapshot.
1594
+ else if (!withinPartsPath(root, outRoot) && !withinPartsPath(outRoot, root)) {
1595
+ const after = replacementTreeDigest(root);
1596
+ if (after !== sha256) detail = `SHA-256 ${after} after the stage; expected ${sha256} from before the stage`;
1597
+ }
1598
+ if (detail !== undefined) throw new PartsError([{ code: 'RUN_PARTS_INPUT_CHANGED', object: path, detail }]);
1599
+ return { path, sha256 };
1600
+ };
1601
+ }
1602
+
1569
1603
  function cmdRig(args: string[]): number {
1570
1604
  let fixedClock: string | undefined;
1571
1605
  try { fixedClock = runStampClock(); } catch (err) { return printRefusal(err); }
@@ -1613,6 +1647,7 @@ function cmdRig(args: string[]): number {
1613
1647
  } catch (err) {
1614
1648
  return printRefusal(err);
1615
1649
  }
1650
+ const partsInput = capturePartsInput(partsDir, out);
1616
1651
  clearRunStamp(out);
1617
1652
  let bin: string;
1618
1653
  try {
@@ -1626,7 +1661,7 @@ function cmdRig(args: string[]): number {
1626
1661
  const pkg = readPackageIdentity(join(import.meta.dir, 'package.json'));
1627
1662
  const rig = rigStage({ config, parts: partsDir, out, idleKeys: keys, pageEdges: edges, packShape: shape, ...(size === undefined ? {} : { pageSize: size }) }, rigcRunner(bin), scratch, console.log);
1628
1663
  const finishedAt = fixedClock ?? new Date().toISOString();
1629
- writeRunStamp({ pkg, command: 'rig', startedAt, finishedAt, outDir: out, configPath: config, outputPaths: rigOutputFiles(rig) });
1664
+ writeRunStamp({ pkg, command: 'rig', startedAt, finishedAt, outDir: out, configPath: config, partsInput: partsInput(), outputPaths: rigOutputFiles(rig) });
1630
1665
  return EXIT_OK;
1631
1666
  } catch (err) {
1632
1667
  return printRefusal(err);
@@ -1754,12 +1789,15 @@ function cmdCheck(args: string[]): number {
1754
1789
  try {
1755
1790
  const size = parsePageSize(f.get('--page-size'));
1756
1791
  const pkg = readPackageIdentity(join(import.meta.dir, 'package.json'));
1792
+ const parts = f.get('--parts');
1793
+ const partsHome = parts ?? rig;
1794
+ const partsInput = existsSync(join(resolve(partsHome), 'parts.json')) ? capturePartsInput(partsHome, out) : undefined;
1757
1795
  clearRunRecord(out, CHECK_RUN_FILE);
1758
1796
  const bin = findRigc(import.meta.dir, process.env.PATH ?? '');
1759
1797
  const startedAt = fixedClock ?? new Date().toISOString();
1760
1798
  const r = checkStage(
1761
1799
  {
1762
- rig, parts: f.get('--parts'), source: f.get('--source'), out, pageEdges: edges, packShape: shape,
1800
+ rig, parts, source: f.get('--source'), out, pageEdges: edges, packShape: shape,
1763
1801
  ...(size === undefined ? {} : { pageSize: size }), requirements: f.get('--requirements'), seamPairs: seamPairs === 1,
1764
1802
  keepStills: keepStills === 1, noExtremes: noExtremes === 1, ...(f.has('--set') ? { set: f.get('--set') as string } : {}),
1765
1803
  allSets: allSets === 1, ...(f.has('--environment') ? { environment: f.get('--environment') as string } : {}),
@@ -1769,9 +1807,10 @@ function cmdCheck(args: string[]): number {
1769
1807
  bin,
1770
1808
  json === 1 ? () => {} : console.log,
1771
1809
  );
1772
- // Issue #1541: the record of the run, beside the report it completed; never a refusal of its own.
1810
+ // Issue #1541: the record of the run, beside the report it completed.
1773
1811
  const wrote = checkWrote(r, out);
1774
1812
  writeRunRecord({ pkg, command: 'check', startedAt, finishedAt: fixedClock ?? new Date().toISOString(), outDir: out,
1813
+ partsInput: partsInput?.(),
1775
1814
  outputs: [...wrote.written, ...wrote.dirs.map((d) => `${d}/`)], argv: recordArgv('check', args, CHECK_ARGV, out, process.cwd()) });
1776
1815
  if (json === 1) process.stdout.write(`${JSON.stringify(r.figures, null, 1)}\n`);
1777
1816
  return r.figures.PASS ? EXIT_OK : EXIT_REFUSED;
@@ -2920,6 +2959,21 @@ function cmdEditedPart(args: string[]): number {
2920
2959
  } catch (error) { return printRefusal(error); }
2921
2960
  }
2922
2961
 
2962
+ function cmdReplaceParts(args: string[]): number {
2963
+ const values = flags(args, 'replace-parts', ['--parts', '--edits', '--out']);
2964
+ if (typeof values === 'string') return usage(values);
2965
+ try {
2966
+ replaceParts({
2967
+ parts: values.get('--parts')!,
2968
+ edits: values.get('--edits')!,
2969
+ out: values.get('--out')!,
2970
+ sourceSha256: values.get('--source-sha256'),
2971
+ });
2972
+ console.log('replace-parts: wrote the derived parts set and its replacement record');
2973
+ return EXIT_OK;
2974
+ } catch (error) { return printRefusal(error); }
2975
+ }
2976
+
2923
2977
  function cmdExternalReceipt(args: string[]): number {
2924
2978
  const f = flags(args, 'external-receipt', []);
2925
2979
  if (typeof f === 'string') return usage(f);
@@ -3223,6 +3277,7 @@ function main(argv: string[]): number | Promise<number> {
3223
3277
  if (command === 'depth-map') return cmdDepthMap(rest);
3224
3278
  if (command === 'depth-place') return cmdDepthPlace(rest);
3225
3279
  if (command === 'edited-part') return cmdEditedPart(rest);
3280
+ if (command === 'replace-parts') return cmdReplaceParts(rest);
3226
3281
  if (command === 'external-receipt') return cmdExternalReceipt(rest);
3227
3282
  if (command === 'bust-landmarks') return cmdBustLandmarks(rest);
3228
3283
  if (command === 'depth-bind') return cmdDepthBind(rest);
package/docs/AUTHORING.md CHANGED
@@ -5859,6 +5859,7 @@ row in this page's `rule` and `line` tables; the selftest holds that (`TY16`).
5859
5859
  | rule | means | change |
5860
5860
  | --- | --- | --- |
5861
5861
  | <a id="RUN_STAMP_EPOCH"></a>`RUN_STAMP_EPOCH` | SOURCE_DATE_EPOCH is not canonical non-negative integer seconds at most 253402300799 (9999-12-31T23:59:59Z) | unset the variable for wall-clock stamps or supply integer seconds at most 253402300799 for four-digit-year ISO stamps; 253402300800 and above, empty, signs, fractions, whitespace and leading zeroes are refused before any output is touched |
5862
+ | <a id="RUN_PARTS_INPUT_CHANGED"></a>`RUN_PARTS_INPUT_CHANGED` | the resolved parts directory changed during the stage, or its digest changed with disjoint input and output directories | run against a stable parts directory and write to a separate output directory |
5862
5863
  | <a id="CONFIG_HYBRID_SOURCE"></a>`CONFIG_HYBRID_SOURCE` | the two hybrid neighbours name different source parts | use a single continuous source layer for the joint band |
5863
5864
  | <a id="CONFIG_HYBRID_CUT"></a>`CONFIG_HYBRID_CUT` | a hybrid joint also declares a cut-cap option | remove cap, cap_shape, edge and cut_band at that joint |
5864
5865
  | <a id="ASSEMBLE_HYBRID_SOURCE"></a>`ASSEMBLE_HYBRID_SOURCE` | effective alternate layer selection gives a band different upper and lower source layers | select the same continuous layer for both rigid neighbours |
@@ -6952,6 +6953,95 @@ documents do not ship). Each is an input this package built; none is an author's
6952
6953
  | <a id="COMPARE_WARMUP_UNSUPPORTED"></a>`COMPARE_WARMUP_UNSUPPORTED` | a physics warm-up other than 0 was asked of the comparison; physics resets at time 0 and steps from there | an input this package built, not an author's: report it with the line |
6953
6954
  | <a id="SKINNING_RANGE_UNSUPPORTED"></a>`SKINNING_RANGE_UNSUPPORTED` | `skinningEnvelopeBone` was handed a bone range not declared by the bone's own keys (a physics swing, a range read off a posed schedule), or a bone whose setup scale is not uniform; the bound is not proven, so it is refused | nothing to change for the build: inside the residual clause it means the residual veto was not applied to that bone, and the motion comparison decides |
6954
6955
 
6956
+ ### replace-parts
6957
+
6958
+ Use `replace-parts` when you have a recorded parts set and replacement PNGs
6959
+ edited in the existing part crops. Give it a new, disjoint output directory.
6960
+
6961
+ ```sh
6962
+ rig-parts replace-parts --parts recorded --edits edits.json --out revised
6963
+ ```
6964
+
6965
+ An edit file has this shape (substitute the recorded rig size, part box and
6966
+ PNG hashes).
6967
+
6968
+ ```json
6969
+ {
6970
+ "rig_size": [1920, 1080],
6971
+ "dir": ".",
6972
+ "edits": [
6973
+ {
6974
+ "box": [0, 0, 24, 12],
6975
+ "receipt": {
6976
+ "part": "under",
6977
+ "file": "under.png",
6978
+ "sha256": "<replacement PNG SHA-256>",
6979
+ "from_sha256": "<recorded PNG SHA-256>",
6980
+ "editor": "retouch"
6981
+ }
6982
+ }
6983
+ ]
6984
+ }
6985
+ ```
6986
+
6987
+ `dir` resolves from the edit file's directory and `file` resolves from `dir`.
6988
+ Each edit names one existing part and carries one receipt. The receipt uses
6989
+ the [edited-part author declaration](#edited-rig-space-parts-assembleedited_parts-issue-1278),
6990
+ with either `editor` or `producer`. `from_sha256` is required for each edit and
6991
+ binds the exact encoded source PNG bytes. `sha256` binds the encoded replacement
6992
+ PNG bytes. The command always computes the whole source set's digest. To pin
6993
+ the command to an independently accepted inventory, also pass
6994
+ `--source-sha256 <accepted-digest>`.
6995
+
6996
+ The output uses the recorded rig grid, crop origin and crop extent. The command
6997
+ remeasures the edited part's opaque pixel count and derives change and removal
6998
+ evidence from the two PNGs. Live per-pixel source claims require bound source
6999
+ evidence. For a part with scalar depth, a support change keeps surviving
7000
+ samples and uses them to extend depth over the new support. Depth readings are
7001
+ refreshed when their measured support changes. A retained part's cross-part
7002
+ evidence must still hold at the same rig coordinates, including overlap and
7003
+ draw order and any recorded dependency affected by the edit. All replacements
7004
+ are evaluated together on the final set. The guard protects retained records,
7005
+ so editing both members of a pair in one call can avoid invalidating a
7006
+ retained record for either member. Affected evidence on a third, retained
7007
+ part must still hold.
7008
+
7009
+ The bound painting, source figure mask and retained part assets are copied
7010
+ byte-for-byte. The recomposite reading in `parts.json` is measured against
7011
+ the final stack when the source has a bound painting. A legacy set without a
7012
+ bound painting loses its prior recomposite reading if there is no scene mask
7013
+ binding that requires the reading. Composite preview and error PNGs, prior
7014
+ rigs, and old check reports are omitted. The revised row records fresh
7015
+ `opaque_px` and keeps its original count under `assembly_opaque_px` to scope
7016
+ the assembly counters. Read the `replacement_record` pointer in
7017
+ `revised/parts.json` for the sorted path lists and the source and result
7018
+ digests. Keep the source set to consult its original measurements.
7019
+
7020
+ In Bun, import `replacementTreeDigest` from `@rig-c/parts/replace-parts`.
7021
+ `replacementTreeDigest(recorded)` returns the digest accepted by
7022
+ `--source-sha256`. `replacementTreeDigest(revised, { result: true })`
7023
+ excludes the one record that `revised/parts.json` points to and returns the
7024
+ result digest. Result mode requires both the pointer and its record file.
7025
+ Source mode includes all regular files, including any earlier records.
7026
+
7027
+ | rule | means | change |
7028
+ | --- | --- | --- |
7029
+ | <a id="REPLACE_PART_GRID"></a>`REPLACE_PART_GRID` | The edit declares a different rig grid or box, or the PNG dimensions differ from the recorded crop. | Keep the source rig size, part box and PNG dimensions. |
7030
+ | <a id="REPLACE_PART_UNKNOWN"></a>`REPLACE_PART_UNKNOWN` | The receipt names a part absent from the source set. | Use a recorded source part name. |
7031
+ | <a id="REPLACE_PART_RECEIPT"></a>`REPLACE_PART_RECEIPT` | A required receipt is missing, malformed or fails its byte binding. | Supply one valid receipt per edit with both PNG hashes and an author declaration. |
7032
+ | <a id="REPLACE_PART_SOURCE_HASH"></a>`REPLACE_PART_SOURCE_HASH` | The computed source set digest differs from the supplied `--source-sha256`. | Use the accepted source set. |
7033
+ | <a id="REPLACE_PART_NEIGHBOUR"></a>`REPLACE_PART_NEIGHBOUR` | A retained part's dependency changes or cannot be established at the reported location. | Supply an edit that preserves the retained part's derivation. |
7034
+ | <a id="REPLACE_PART_DEPTH_SUPPORT"></a>`REPLACE_PART_DEPTH_SUPPORT` | A changed depth support has no surviving samples. | Preserve shared depth support from which to extend. |
7035
+ | <a id="REPLACE_PART_INPUT"></a>`REPLACE_PART_INPUT` | The set inventory contains an unreadable or unsupported path, or a file changed after inventory. | Supply a stable tree of readable regular files and directories. |
7036
+ | <a id="REPLACE_PART_OUTPUT"></a>`REPLACE_PART_OUTPUT` | The output already exists, overlaps an input, or cannot be published. | Use a new, writable output directory outside all inputs. |
7037
+ | <a id="REPLACE_PART_RECORD"></a>`REPLACE_PART_RECORD` | The derivation record or its binding is missing or invalid. | Use the matching, complete derived set and its original record. |
7038
+
7039
+ The output is published only after validation. Its record attests derivation
7040
+ from the recorded set. Reproducing the original assembly from its painting
7041
+ and layers is outside the scope of this command. Run `rig` from the revised
7042
+ set with the original assembly config and run `check` on the fresh rig to
7043
+ obtain downstream verification for the revised pixels.
7044
+
6955
7045
  ### check-parts
6956
7046
 
6957
7047
  Run `rig-parts check-parts --parts <assembled-dir> --out <disjoint-report-dir>`
@@ -7021,6 +7111,7 @@ outside the consumed inputs.
7021
7111
  | <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
7112
  | <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
7113
  | <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 |
7114
+ | <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
7115
  | <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
7116
  | <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
7117
  | <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 +7325,8 @@ and stay absent).
7234
7325
  | <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
7326
  | <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
7327
  | <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 |
7328
+ | <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 |
7329
+ | <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
7330
  | <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
7331
  | <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
7332
  | <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 +8209,14 @@ prefixed definitions already in the scene; this field adds no definitions.
8118
8209
  Generated dial names are stable: `<id>:yaw_dial`, `<id>:pitch_dial`, and
8119
8210
  `<id>:<turn.body.slider>` (default `<id>:body_yaw_dial`); renaming these is a major
8120
8211
  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.
8212
+ rotation keys must lie within their own slider's inclusive `[from, max]` range.
8213
+ Omitted `from` defaults to zero and `max` must be explicit and finite.
8214
+ `SCENE_DIAL_KEY_RANGE` names the bone, slider, time, found value and range.
8215
+ `SCENE_DIAL_RANGE_DECLARED` refuses missing `max`, malformed bounds and reversed bounds.
8124
8216
  Keys on a slider input must state numeric `v` values. `derive` there is refused
8125
8217
  by `SCENE_DIAL_KEY_DECLARED`, even alongside a raw `v`, because derived inputs
8126
8218
  are not a supported scene dial dialect. A group's explicit values are checked
8127
- against each member dial's own declared range.
8219
+ against each member dial's own resolved range.
8128
8220
  Slider source properties resolve to their numeric timeline channels: `x/y` read
8129
8221
  `translatex/translatey` or the respective `translate` channel; `scaleX/scaleY`
8130
8222
  read `scalex/scaley` or the respective `scale` channel; `shearY` reads `sheary`
@@ -8430,7 +8522,7 @@ Before composing, run `rig-parts check --clip-stretch <scene.json>` with the
8430
8522
  actual scene declaration. The scene's `build` paths must hold the assemble
8431
8523
  record and `rig/` outputs. This diagnostic can run before the character
8432
8524
  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,
8525
+ played take on its own, then the declared scene idle with character repeats,
8434
8526
  `with_idle` and scene-authored tracks applied. Each take starts from reset
8435
8527
  physics and measures all the scene's meshes as posed in that take. A clip declared `false` still has its
8436
8528
  own reading. Other clips and the idle are not playing during that reading.
@@ -8443,8 +8535,9 @@ If a clip passes alone but the idle fails, change one input, such as the
8443
8535
  wind key's peak, and rerun the same command on the edited build and scene.
8444
8536
  Read both lines before running the regular character check and `compose`,
8445
8537
  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.
8538
+ Exit 0 means every played take was measured and passed and the
8539
+ [slider rows](#slider-applied-clip-stretch-issue-1627) report `PASS` or `SKIP`.
8540
+ Exit 1 means a failure, refusal or missing required reading. Exit 2 means a usage error.
8448
8541
 
8449
8542
  Literal `false` is accepted at any character scale. The side clip still passes
8450
8543
  through the character's scale checks, which refuse nonzero `wind` or `gravity`
@@ -8492,14 +8585,14 @@ frame's pose, with physics stepping through the whole take.
8492
8585
  ##### Compose the generated fixture
8493
8586
 
8494
8587
  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.
8588
+ single-period reference, then render only `idle` with Core 3.12.0.
8496
8589
 
8497
8590
  ```sh
8498
8591
  bun fixtures/scene.ts scratch/fixture
8499
8592
  bun cli.ts compose --scene scratch/fixture/scene.json --out scratch/folded
8500
8593
  bun cli.ts compose --scene scratch/fixture/period.json --out scratch/period
8501
8594
  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
8595
+ 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
8596
  ```
8504
8597
 
8505
8598
  Both compose runs reported `PASS` on Linux. In
@@ -8513,6 +8606,9 @@ differing pixels and a maximum RGBA channel delta of 95. At 0.75 s, the
8513
8606
  256 × 204 `f0009.png` differs by 253 pixels between the physics-on and
8514
8607
  physics-off renders, with a maximum RGBA channel delta of 128. To compare
8515
8608
  the two frames, use the frame-set directory named in each `frames.json`.
8609
+ The physics-off render takes `--viewport-from scratch/physics-on` so that both
8610
+ renders draw on one pixel grid. Each render otherwise fits its own box, and
8611
+ frames from two different boxes cannot be compared pixel for pixel.
8516
8612
 
8517
8613
  ```sh
8518
8614
  bun - <<'TS'
@@ -8549,6 +8645,46 @@ The `scene.json` reports contain 13 period rows and 37 tiled rows in
8549
8645
  Figure rows differed from the reference phase on 36 of 37 frames, with
8550
8646
  zero outside the view.
8551
8647
 
8648
+ #### Slider-applied clip stretch (issue #1627)
8649
+
8650
+ For a bone-driven slider, declare `max` and set `from` when the lower bound
8651
+ differs from zero. See the [range and SKIP contract](STABILITY.md#slider-stretch-diagnostic-issue-1627).
8652
+
8653
+ The check takes 13 evenly spaced dial samples including both bounds of a
8654
+ nondegenerate range. Core 3.12.0's `poseSlider` starts each sample from a
8655
+ reset pose. Sliders that share the selected input respond in constraint
8656
+ order. The check uses the same canonical rest geometry, edge severity and
8657
+ rounded limit as [`CHECK_TEXTURE_STRETCH`](#CHECK_TEXTURE_STRETCH). A
8658
+ passing row covers the sampled values of one dial. The continuous maximum
8659
+ between samples is unknown. For a played take that drives several dials
8660
+ together, read that take's own `CHECK_CLIP_STRETCH` row.
8661
+
8662
+ `CHECK_SLIDER_STRETCH` names the slider, its clip, the sample count, and the
8663
+ peak's dial value and zero-based sample ordinal. The clip time is the applied
8664
+ time, after wrapping where applicable. The clip frame is its index on the
8665
+ 12 Hz grid. The row says `frame off-grid` and gives the clip time when the
8666
+ peak falls between grid frames. It also names the mesh slot, attachment,
8667
+ triangle, vertices and edge. Beside the edge it states the peak triangle's rest
8668
+ area share, `hull` versus `interior` placement, and the last passing dial sample
8669
+ on each side of the range midpoint (`<bound> (range end)` when a side never
8670
+ fails, `none (midpoint fails)` when sample 6 fails) so a silhouette sliver at an
8671
+ extreme dial angle can be told apart from broad interior stretch.
8672
+
8673
+ Stock `check` reports a measured dial `FAIL` at the existing `WARN` level and
8674
+ counts slider outcomes separately from the ordinary bars. The dial report is
8675
+ advisory. Run `rig-parts check --clip-stretch <scene.json>` to make the scene's
8676
+ slider findings count toward the command's exit. A failed or incomplete
8677
+ declared sweep exits 1. A slider `SKIP` leaves the exit unchanged.
8678
+ A slider-only clip has a dial row only. A separate played role
8679
+ explicit in the source or composition produces both a dial row and a played
8680
+ row. The declared idle and existing `with_idle` readings still apply.
8681
+
8682
+ When `rig` writes a rig with a slider, its notice reads
8683
+
8684
+ ```text
8685
+ 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>.
8686
+ ```
8687
+
8552
8688
  #### Keyed scene camera (issue #1596)
8553
8689
 
8554
8690
  A camera projects an already posed scene into the fixed canvas. It follows the
@@ -10990,8 +11126,8 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
10990
11126
  <!-- check-row-table:begin -->
10991
11127
  | Row family | Registered JSON paths | row_scope | row_kind | row_subjects (producer expression) | Producer |
10992
11128
  | --- | --- | --- | --- | --- | --- |
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) |
11129
+ | `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) |
11130
+ | `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
11131
  | `ART_JOINT_DISTANCE.joints` | `ART_JOINT_DISTANCE.joints` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [artjoints.ts:86](../src/artjoints.ts#L86) |
10996
11132
  | `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
11133
  | `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 +11143,54 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
11007
11143
  | `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
11144
  | `BOUNDARY_COLOUR_STEP.over` | `BOUNDARY_COLOUR_STEP.over` | 'pair' | finding | r.parts | [boundarycolour.ts:221](../src/boundarycolour.ts#L221) |
11009
11145
  | `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) |
11146
+ | `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
11147
  | `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) |
11148
+ | `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) |
11149
+ | `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:4064](../src/check.ts#L4064) |
11150
+ | `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4382](../src/check.ts#L4382) |
11015
11151
  | `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
11152
  | `PART_SUPPORT_REPORT.raw_pairs` | `PART_SUPPORT_REPORT.raw_pairs` | 'pair' | evidence | [F.name, B.name] | [coincide.ts:110](../src/coincide.ts#L110) |
11017
11153
  | `PART_SUPPORT_REPORT.unowned.regions` | `PART_SUPPORT_REPORT.unowned.regions` | 'rig' | finding | [] | [coincide.ts:145](../src/coincide.ts#L145) |
11018
11154
  | `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) |
11155
+ | `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:5737](../src/check.ts#L5737) |
11156
+ | `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) |
11157
+ | `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) |
11158
+ | `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5710](../src/check.ts#L5710) |
11159
+ | `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) |
11160
+ | `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:5680](../src/check.ts#L5680) |
11161
+ | `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
11162
  | `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) |
11163
+ | `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5664](../src/check.ts#L5664) |
11164
+ | `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) |
11165
+ | `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
11166
  | `SETUP_MATCHES_PAINTING.regions` | `SETUP_MATCHES_PAINTING.regions` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [setuppainting.ts:175](../src/setuppainting.ts#L175) |
11031
11167
  | `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
11168
  | `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
11169
  | `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) |
11170
+ | `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) |
11171
+ | `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) |
11172
+ | `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4310](../src/check.ts#L4310) |
11173
+ | `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) |
11174
+ | `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) |
11175
+ | `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) |
11176
+ | `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:10697](../src/check.ts#L10697), [check.ts:10704](../src/check.ts#L10704) |
11177
+ | `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) |
11178
+ | `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:6844](../src/check.ts#L6844) |
11179
+ | `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) |
11180
+ | `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6161](../src/check.ts#L6161) |
11181
+ | `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:7959](../src/check.ts#L7959) |
11182
+ | `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8293](../src/check.ts#L8293) |
11183
+ | `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8293](../src/check.ts#L8293) |
11184
+ | `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) |
11185
+ | `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5041](../src/check.ts#L5041) |
11186
+ | `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) |
11187
+ | `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) |
11188
+ | `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2187](../src/check.ts#L2187) |
11189
+ | `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2272](../src/check.ts#L2272) |
11190
+ | `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) |
11191
+ | `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2643](../src/check.ts#L2643) |
11192
+ | `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) |
11193
+ | `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:10640](../src/check.ts#L10640) |
11057
11194
 
11058
11195
  | Serialized type path | Reason for schema exclusion |
11059
11196
  | --- | --- |