rig-parts 2.68.0 → 2.70.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.
@@ -118,13 +125,17 @@ usage:
118
125
  Write <map>.binding.json with both file hashes; never overwrite a receipt.
119
126
  Attests the current files, not that inference used this input.
120
127
 
121
- rig-parts depth-apply --parts <assembled-dir> --manifest <manifest.json> --config <depth-recipe.json> --rig-config <config.json> --out <empty-dir> [--groups <name>[,<name>...]]
128
+ rig-parts depth-apply --parts <assembled-dir> --manifest <manifest.json> --config <depth-recipe.json> --rig-config <config.json> --out <dir> [--groups <name>[,<name>...]] [--source-sha256 <sha256>]
122
129
  Register floating-point JSON depth or signed normals, normalize inside
123
130
  alpha >=128, apply declared median/relief and group near/zScale/pivot,
124
131
  extend past alpha, and write parts, relocated config and depth-report.json.
125
132
  Normals require one closed convex island. See AUTHORING for the schemas.
126
133
  --groups applies only the named recipe groups; the others' parts get no
127
134
  sheet, and the selection is recorded in depth-report.json.
135
+ --source-sha256 verifies the source tree and writes a derivation receipt
136
+ inside <dir>/set, with config.json and depth-report.json beside set.
137
+ This bundle requires an absent output directory. Without the flag, an
138
+ absent or empty output directory receives the parts and both sidecars.
128
139
 
129
140
  rig-parts layers <dir | layers.json | file.psd>
130
141
  Read a See-through decomposition — the ComfyUI wrapper form (a directory
@@ -1293,6 +1304,7 @@ function printLayerTable(set: LayerSet): void {
1293
1304
  */
1294
1305
  const TAKES = {
1295
1306
  'edited-part': { valued: ['--config', '--part', '--file', '--from', '--editor', '--producer', '--parts', '--rig-config'], switches: ['--help'] },
1307
+ 'replace-parts': { valued: ['--parts', '--edits', '--out', '--source-sha256'], switches: ['--help'] },
1296
1308
  'external-receipt': { valued: ['--kind', '--file', '--painting', '--producer', '--out', '--verify'], switches: ['--help'] },
1297
1309
  'check-parts': { valued: ['--parts', '--out'], switches: ['--json', '--help'] },
1298
1310
  'bust-landmarks': { valued: ['--from-act', '--parts', '--config', '--out'], switches: ['--write-config', '--help'] },
@@ -1302,7 +1314,7 @@ const TAKES = {
1302
1314
  'depth-bind': { valued: ['--map', '--input', '--part'], switches: ['--help'] },
1303
1315
  'depth-prepare': { valued: ['--parts', '--config', '--out'], switches: ['--help'] },
1304
1316
  'depth-place': { valued: ['--parts', '--config', '--rig-config', '--out'], switches: ['--check-turn', '--help'] },
1305
- 'depth-apply': { valued: ['--parts', '--manifest', '--config', '--rig-config', '--out', '--groups'], switches: ['--help'] },
1317
+ 'depth-apply': { valued: ['--parts', '--manifest', '--config', '--rig-config', '--out', '--groups', '--source-sha256'], switches: ['--help'] },
1306
1318
  layers: { valued: ['--export', '--template', '--canvas', '--full', '--source', '--config'], switches: ['--help'] },
1307
1319
  sheet: { valued: ['--source', '--layers', '--out', '--cell', '--cols'], switches: ['--help'] },
1308
1320
  rig: { valued: ['--config', '--parts', '--out', '--idle-keys', '--page-edges', '--pack-shape', '--page-size'], switches: ['--help'] },
@@ -1567,6 +1579,31 @@ function runStampClock(): string | undefined {
1567
1579
  return new Date(millis).toISOString();
1568
1580
  }
1569
1581
 
1582
+ /** Capture before clearing or writing outputs. Let the stage report its own input refusals first. */
1583
+ function capturePartsInput(path: string, out: string): () => RunStampFileEntry {
1584
+ let root: string;
1585
+ let sha256: string;
1586
+ try {
1587
+ root = realWhereItExists(resolve(path));
1588
+ sha256 = replacementTreeDigest(root);
1589
+ } catch (error) {
1590
+ return () => { throw error; };
1591
+ }
1592
+ return () => {
1593
+ const finalRoot = realWhereItExists(resolve(path));
1594
+ const outRoot = realWhereItExists(resolve(out));
1595
+ let detail: string | undefined;
1596
+ if (finalRoot !== root) detail = `resolved to ${JSON.stringify(finalRoot)} after the stage; expected ${JSON.stringify(root)}`;
1597
+ // An overlapping output can change the source inventory itself, so its digest is the pre-stage snapshot.
1598
+ else if (!withinPartsPath(root, outRoot) && !withinPartsPath(outRoot, root)) {
1599
+ const after = replacementTreeDigest(root);
1600
+ if (after !== sha256) detail = `SHA-256 ${after} after the stage; expected ${sha256} from before the stage`;
1601
+ }
1602
+ if (detail !== undefined) throw new PartsError([{ code: 'RUN_PARTS_INPUT_CHANGED', object: path, detail }]);
1603
+ return { path, sha256 };
1604
+ };
1605
+ }
1606
+
1570
1607
  function cmdRig(args: string[]): number {
1571
1608
  let fixedClock: string | undefined;
1572
1609
  try { fixedClock = runStampClock(); } catch (err) { return printRefusal(err); }
@@ -1614,6 +1651,7 @@ function cmdRig(args: string[]): number {
1614
1651
  } catch (err) {
1615
1652
  return printRefusal(err);
1616
1653
  }
1654
+ const partsInput = capturePartsInput(partsDir, out);
1617
1655
  clearRunStamp(out);
1618
1656
  let bin: string;
1619
1657
  try {
@@ -1627,7 +1665,7 @@ function cmdRig(args: string[]): number {
1627
1665
  const pkg = readPackageIdentity(join(import.meta.dir, 'package.json'));
1628
1666
  const rig = rigStage({ config, parts: partsDir, out, idleKeys: keys, pageEdges: edges, packShape: shape, ...(size === undefined ? {} : { pageSize: size }) }, rigcRunner(bin), scratch, console.log);
1629
1667
  const finishedAt = fixedClock ?? new Date().toISOString();
1630
- writeRunStamp({ pkg, command: 'rig', startedAt, finishedAt, outDir: out, configPath: config, outputPaths: rigOutputFiles(rig) });
1668
+ writeRunStamp({ pkg, command: 'rig', startedAt, finishedAt, outDir: out, configPath: config, partsInput: partsInput(), outputPaths: rigOutputFiles(rig) });
1631
1669
  return EXIT_OK;
1632
1670
  } catch (err) {
1633
1671
  return printRefusal(err);
@@ -1755,12 +1793,15 @@ function cmdCheck(args: string[]): number {
1755
1793
  try {
1756
1794
  const size = parsePageSize(f.get('--page-size'));
1757
1795
  const pkg = readPackageIdentity(join(import.meta.dir, 'package.json'));
1796
+ const parts = f.get('--parts');
1797
+ const partsHome = parts ?? rig;
1798
+ const partsInput = existsSync(join(resolve(partsHome), 'parts.json')) ? capturePartsInput(partsHome, out) : undefined;
1758
1799
  clearRunRecord(out, CHECK_RUN_FILE);
1759
1800
  const bin = findRigc(import.meta.dir, process.env.PATH ?? '');
1760
1801
  const startedAt = fixedClock ?? new Date().toISOString();
1761
1802
  const r = checkStage(
1762
1803
  {
1763
- rig, parts: f.get('--parts'), source: f.get('--source'), out, pageEdges: edges, packShape: shape,
1804
+ rig, parts, source: f.get('--source'), out, pageEdges: edges, packShape: shape,
1764
1805
  ...(size === undefined ? {} : { pageSize: size }), requirements: f.get('--requirements'), seamPairs: seamPairs === 1,
1765
1806
  keepStills: keepStills === 1, noExtremes: noExtremes === 1, ...(f.has('--set') ? { set: f.get('--set') as string } : {}),
1766
1807
  allSets: allSets === 1, ...(f.has('--environment') ? { environment: f.get('--environment') as string } : {}),
@@ -1770,9 +1811,10 @@ function cmdCheck(args: string[]): number {
1770
1811
  bin,
1771
1812
  json === 1 ? () => {} : console.log,
1772
1813
  );
1773
- // Issue #1541: the record of the run, beside the report it completed; never a refusal of its own.
1814
+ // Issue #1541: the record of the run, beside the report it completed.
1774
1815
  const wrote = checkWrote(r, out);
1775
1816
  writeRunRecord({ pkg, command: 'check', startedAt, finishedAt: fixedClock ?? new Date().toISOString(), outDir: out,
1817
+ partsInput: partsInput?.(),
1776
1818
  outputs: [...wrote.written, ...wrote.dirs.map((d) => `${d}/`)], argv: recordArgv('check', args, CHECK_ARGV, out, process.cwd()) });
1777
1819
  if (json === 1) process.stdout.write(`${JSON.stringify(r.figures, null, 1)}\n`);
1778
1820
  return r.figures.PASS ? EXIT_OK : EXIT_REFUSED;
@@ -2921,6 +2963,21 @@ function cmdEditedPart(args: string[]): number {
2921
2963
  } catch (error) { return printRefusal(error); }
2922
2964
  }
2923
2965
 
2966
+ function cmdReplaceParts(args: string[]): number {
2967
+ const values = flags(args, 'replace-parts', ['--parts', '--edits', '--out']);
2968
+ if (typeof values === 'string') return usage(values);
2969
+ try {
2970
+ replaceParts({
2971
+ parts: values.get('--parts')!,
2972
+ edits: values.get('--edits')!,
2973
+ out: values.get('--out')!,
2974
+ sourceSha256: values.get('--source-sha256'),
2975
+ });
2976
+ console.log('replace-parts: wrote the derived parts set and its replacement record');
2977
+ return EXIT_OK;
2978
+ } catch (error) { return printRefusal(error); }
2979
+ }
2980
+
2924
2981
  function cmdExternalReceipt(args: string[]): number {
2925
2982
  const f = flags(args, 'external-receipt', []);
2926
2983
  if (typeof f === 'string') return usage(f);
@@ -3126,11 +3183,14 @@ function cmdDepthApply(args: string[]): number {
3126
3183
  if (typeof f === 'string') return usage(f);
3127
3184
  try {
3128
3185
  const groups = f.get('--groups'), selected = groups === undefined ? {} : { groups: groups === '' ? [] : groups.split(',') };
3129
- const result = applyDepth({ parts: f.get('--parts')!, manifest: f.get('--manifest')!, config: f.get('--config')!, rigConfig: f.get('--rig-config')!, out: f.get('--out')!, ...selected });
3186
+ const sourceSha256 = f.get('--source-sha256');
3187
+ const result = applyDepth({ parts: f.get('--parts')!, manifest: f.get('--manifest')!, config: f.get('--config')!, rigConfig: f.get('--rig-config')!, out: f.get('--out')!, sourceSha256, ...selected });
3130
3188
  for (const row of result.parts as Array<Record<string, unknown>>) console.log(`depth-apply: ${row.part} levels=${row.levels} clip=${row.clipFraction} reliefRigPixels=${row.reliefRigPixels} sign=${row.sign}`);
3131
3189
  const selection = result.selection as { groups: string[]; leftOut: string[] } | undefined;
3132
3190
  if (selection !== undefined) console.log(`depth-apply: applied groups ${selection.groups.join(', ')}; left out ${selection.leftOut.length === 0 ? 'no part' : selection.leftOut.join(', ')}, without a depth sheet`);
3133
- console.log('depth-apply: wrote registered parts, config.json and depth-report.json; run rig for the core gate');
3191
+ console.log(sourceSha256 === undefined
3192
+ ? 'depth-apply: wrote registered parts, config.json and depth-report.json; run rig for the core gate'
3193
+ : 'depth-apply: wrote registered parts with derivation receipt in set, with config.json and depth-report.json beside set; run rig for the core gate');
3134
3194
  return EXIT_OK;
3135
3195
  } catch (error) { return printRefusal(error); }
3136
3196
  }
@@ -3224,6 +3284,7 @@ function main(argv: string[]): number | Promise<number> {
3224
3284
  if (command === 'depth-map') return cmdDepthMap(rest);
3225
3285
  if (command === 'depth-place') return cmdDepthPlace(rest);
3226
3286
  if (command === 'edited-part') return cmdEditedPart(rest);
3287
+ if (command === 'replace-parts') return cmdReplaceParts(rest);
3227
3288
  if (command === 'external-receipt') return cmdExternalReceipt(rest);
3228
3289
  if (command === 'bust-landmarks') return cmdBustLandmarks(rest);
3229
3290
  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>`
@@ -6988,7 +7078,7 @@ outside the consumed inputs.
6988
7078
  | <a id="CHECK_INPUT_PRESENT"></a><a id="CHECK_INPUT_IS_JSON"></a><a id="CHECK_PART_PNG_PRESENT"></a><a id="CHECK_PART_PNG_MATCHES_BOX"></a><a id="CHECK_PART_SLOT_PRESENT"></a><a id="CHECK_RIG_STAGE_PRESENT"></a><a id="CHECK_RIG_STAGE_IS_THE_CANVAS"></a><a id="CHECK_RIG_ROOT_BONE"></a><a id="CHECK_IDLE_PRESENT"></a>`CHECK_INPUT_PRESENT`, `CHECK_INPUT_IS_JSON`, `CHECK_PART_PNG_PRESENT`, `CHECK_PART_PNG_MATCHES_BOX`, `CHECK_PART_SLOT_PRESENT`, `CHECK_RIG_STAGE_PRESENT`, `CHECK_RIG_STAGE_IS_THE_CANVAS`, `CHECK_RIG_ROOT_BONE`, `CHECK_IDLE_PRESENT` | the rig directory is incomplete or disagrees with `parts.json` (`CHECK_PART_SLOT_PRESENT`: a part with no slot of its own name, which the judgement lines render it by; `CHECK_INPUT_PRESENT` on `--set` / `--all-sets`: no `parts.json`, no `alternates`, or the named set is not in `alternates`). `motion.json` is required even with no animation in it, because `rigc build` takes `--motion` (a spec with `"animations": {}` builds green); `CHECK_IDLE_PRESENT` names an `idle` with no positive `duration`, or a missing `idle` when the loop seam bar is declared. Without that bar, an absent `idle` is measured around (§7). `CHECK_INPUT_PRESENT` on `…/parts.json`: `--parts` named a directory without `parts.json` — most often `parts/` itself — or, without `--parts`, the rig directory has none while the directory above it does (build's layout, `<out>/rig` under `<out>/parts.json`). The detail says it: "--parts names the directory holding parts.json and parts/, not parts/ itself (after build, that is build's --out, whose rig is <out>/rig); without --parts it is --rig", and names the parent when the parent holds `parts.json`. With neither (no `--parts`, and no `parts.json` beside `rig.json` or above it), the rig is measured without parts and nothing is refused (§7) | re-run rig (`build` does both); for `…/parts.json`, `--parts` — the directory above `parts/` |
6989
7079
  | <a id="CHECK_SOURCE_SIZE"></a>`CHECK_SOURCE_SIZE` | the painting `--source` names is not this rig's: no single `rig_scale` takes its width and height to the stage's (assemble makes the canvas `trunc(w × rig_scale)` x `trunc(h × rig_scale)`), or, with `parts.json` read, its `scale_rig_per_source` does not; or the stage is not whole pixels. Refused before anything is built | the painting the rig was made from — the stage's own size, or the painting `assemble` was given |
6990
7080
  | <a id="CHECK_SOURCE_PNG"></a>`CHECK_SOURCE_PNG` | `--source` names a file that does not read as a PNG | a PNG |
6991
- | <a id="CHECK_SETUP_MATCHES_PAINTING"></a>`CHECK_SETUP_MATCHES_PAINTING` | region, slot, failing-pixel box, slot pixelcount, complete region pixelcount and declared limit | compare the source painting beside the actual setup; follow [Source before scissors](#source-before-scissors), then rerun with the same authored limit |
7081
+ | <a id="CHECK_SETUP_MATCHES_PAINTING"></a>`CHECK_SETUP_MATCHES_PAINTING` | region, slot, failing-pixel box, slot pixelcount, complete region pixelcount and declared limit. A `max_pixels` budget set to its own baseline with margin 0 is a no-regression bar, and cannot see a defect present when the baseline was measured | compare the source painting beside the actual setup; follow [Source before scissors](#source-before-scissors), then rerun with the same authored limit |
6992
7082
  | <a id="CHECK_SETUP_PAINTING_MASK"></a>`CHECK_SETUP_PAINTING_MASK` | declared figure-mask PNG cannot be read or decoded, its byte SHA-256 or original painting grid differs, or its alpha support is empty | supply independent figure alpha support with the declared hash and source grid; rendering never supplies the missing mask |
6993
7083
  | <a id="CHECK_SETUP_PAINTING_BACKDROP"></a>`CHECK_SETUP_PAINTING_BACKDROP` | declared backdrop PNG cannot be read or decoded, its byte SHA-256 differs, its original painting grid differs, or any alpha is not 255 | supply an opaque plate with the declared lowercase SHA-256, aligned to the original painting; no fitting or white fallback |
6994
7084
  | <a id="CHECK_SETUP_PAINTING_SOURCE"></a>`CHECK_SETUP_PAINTING_SOURCE` | a declaration without a source painting | supply `--source`; the assembled composite is not an independent reference |
@@ -7893,10 +7983,11 @@ Under `--source <painting.png>`, a second reported line, also never a FAIL
7893
7983
  | <a id="SETUP_POSE_VS_SOURCE"></a>`SETUP_POSE_VS_SOURCE` | the setup pose against the painting, by `assemble`'s own `measureRecomposite` over the stage's pixels — `mean_abs` and `within_share` (mean channel, within 8), `error_px` (max channel over 40), `uncovered_error_px` (of those, where the pose has alpha 128 or less), `hole_count` and the largest hole's box — with `painting_px`, `stage_px`, `render_px` and `render_scale` beside them. The painting is resampled onto the stage as assemble resamples it (lanczos3, alpha dropped). rigc renders onto an opaque grey, so the pose over white and its alpha are read off a second still of the same pose with every slot tinted black; both are carried onto the stage with the seam's map turned round (bilinear) | none — status `REPORTED`; assemble applies no bar to the figures it measures, so none is derived here | 3.146 / 93.43 % / 12,399 / 1,732, 518 holes, the largest 61 px at 351,157 6x20 (assemble's recomposite: 2.391 / 95.81 % / 11,050 / 1,564, 453) | 1.095 / 97.30 % / 5,348 / 1,239, 313 holes, the largest 88 px at 479,416 6x29 (assemble's: 0.835 / 97.95 % / 4,512 / 1,185, 259) | not written without `--source` |
7894
7984
  | <a id="PART_SUPPORT_REPORT"></a>`PART_SUPPORT_REPORT` | report-only alpha >= 128 observation; pairs use pre-rig `parts.json` placements in setup slot order, and Unowned uses the official renderer's setup on the native stage grid | every pair is measured with its independent authored cut domain or unavailable with its reason; the headline gives adjacent raw pairs and classified coverage, with UNCLASSIFIED when there is no extent witness. Every touching or overlapping raw pair carries shared boundary length, bounds of shared segments and overlap cells, overlap area, and the label "ownership unknown, unclassified". Disjoint pairs are absent from raw rows. Exact shared 4-neighbour unit edges carry both names, an edge box and candidate missing-domain area under the front part. Unowned painted silhouette cells outside the actual setup union carry 4-connected boxes and areas, including open-edge gaps. Default build supplies its painting internally for this report only. Standalone check needs `--source`. Legacy output without the optional domain sidecar, bone-only bindings and limbs without an authored radial width are unavailable. WARN, REPORTED and UNCLASSIFIED add no gate. |
7895
7985
  | <a id="CHECK_SUPPORT_GRID"></a>`CHECK_SUPPORT_GRID` | a support sidecar, part PNG or painting cannot be registered to the declared native canvas | use the same parts.json dimensions and source scale, and regenerate assemble output; no resized or guessed domain is substituted |
7896
- | <a id="SETUP_MATCHES_PAINTING"></a>`SETUP_MATCHES_PAINTING` | declared region count, native box, limit and actual top contributor rows; observations source-over white unless `setup_painting.backdrop` declares the opaque plate behind a full-frame painting | PASS/FAIL against authored limits; no limit is SKIP, or the refusal `SETUP_PAINTING_REQUIRED_LIMIT` under `setup_painting.required: true`; with `--source`, no declaration is SKIP with its reason and declaration remedy; undeclared regions are not judged |
7986
+ | <a id="SETUP_MATCHES_PAINTING"></a>`SETUP_MATCHES_PAINTING` | declared region count, native box, limit and actual top contributor rows; observations source-over white unless `setup_painting.backdrop` declares the opaque plate behind a full-frame painting | PASS/FAIL against authored limits; no limit is SKIP, or the refusal `SETUP_PAINTING_REQUIRED_LIMIT` under `setup_painting.required: true`; with `--source`, no declaration is SKIP with its reason and declaration remedy; undeclared regions are not judged. A `max_pixels` budget set to its own baseline with margin 0 is a no-regression bar, and cannot see a defect present when the baseline was measured |
7897
7987
  | <a id="BOUNDARY_COLOUR_STEP"></a>`BOUNDARY_COLOUR_STEP` | the worst colour-step excess over the rig's own pieces at any part boundary of the setup and every idle frame, its part pair, frame and stage pixel, and the declared `max_step_excess` | PASS/FAIL against the declared allowance (FAIL is [`CHECK_BOUNDARY_COLOUR_STEP`](#CHECK_BOUNDARY_COLOUR_STEP), an unreadable piece [`CHECK_BOUNDARY_COLOUR_UNMEASURED`](#CHECK_BOUNDARY_COLOUR_UNMEASURED)); no `boundary_colour` in the requirements file is SKIP with its reason and the declaration to add, never a pass |
7898
7988
  | <a id="BEHIND_PART_SEAMS"></a>`BEHIND_PART_SEAMS` | selected front pair and declaration provenance, per-frame `behind_slots`, core seam grid, separate `setup`, `motion_opened` and `standing` readings, sampled/read/unmeasured counts, per-frame hits, worst frame, temporal spans and spatial runs | required for pairs with an authored effective threshold: PASS/FAIL against the effective allowance, default 0; a contact-only pair's motion line ends `; support setup-contact` (and the frame count with `lower_bound_cells`) when it is read from setup contact edges; missing T is a nonrequired SKIP and HOLE, while mandatory unread evidence causes `CHECK_BEHIND_PART_SEAMS_UNMEASURED` and combined FAIL; no declaration is SKIP, and curved or diagonal openings are not certified |
7899
7989
  | <a id="SOURCE_EXPOSURE"></a>`SOURCE_EXPOSURE` | for each part with a `source_state_map`, the stage pixels per state (`occluded`, `partial-top`, `depth-tie`, `mixed-source-states`) that the setup pose and every frame of every animation show, one row per part, state and frame; how many texels of each state the part holds; the frames read; the signal used | REPORTED, never a pass, without a declaration; PASS/FAIL against a declared `source_exposure.max_px` (FAIL is [`CHECK_SOURCE_EXPOSURE`](#CHECK_SOURCE_EXPOSURE), an unreadable piece [`CHECK_SOURCE_EXPOSURE_UNMEASURED`](#CHECK_SOURCE_EXPOSURE_UNMEASURED)). Absent from `check.json` and the console when no part has a map and nothing is declared |
7990
+ | <a id="SETUP_SEAM_TRANSMISSION"></a>`SETUP_SEAM_TRANSMISSION` | Written only when a painting is registered on the setup grid (a hash-bound `painting_in_rig` or a declared `setup_painting` source); without one the block is absent, which means not measured, not clean. Measures pixels along a shared edge of an over/under pair of normal-blend drawn pieces where the setup render is lighter than the painting, and the longest unbroken run of them (`longest_lighter_run_px`, `lighter_px`, `world_box`, `edge_length_px`, `sampled_px`, `painting_eligible_px`, `darker_px`, `worst_transmission`). It usually means the under piece ends at the over piece's edge instead of running beneath it, so whatever is behind shows through the two soft edges; `worst_transmission` saturates and is not a severity | none — status `REPORTED`, outside `bar_outcomes`, the warning tally and the exit code; a measured run with no qualifying pair writes `rows: []` and prints `no shared edge has a lighter run`. To confirm and repair, render over two background colours — a line that takes the background's colour is transmission — and extend the under piece beneath the edge |
7900
7991
 
7901
7992
  `assemble` writes optional `part_support_domains.json` beside `parts.json`, with
7902
7993
  spec `rig-parts-support-domains/1`. It binds the exact parts.json and named PNG
@@ -8574,7 +8665,11 @@ peak's dial value and zero-based sample ordinal. The clip time is the applied
8574
8665
  time, after wrapping where applicable. The clip frame is its index on the
8575
8666
  12 Hz grid. The row says `frame off-grid` and gives the clip time when the
8576
8667
  peak falls between grid frames. It also names the mesh slot, attachment,
8577
- triangle, vertices and edge.
8668
+ triangle, vertices and edge. Beside the edge it states the peak triangle's rest
8669
+ area share, `hull` versus `interior` placement, and the last passing dial sample
8670
+ on each side of the range midpoint (`<bound> (range end)` when a side never
8671
+ fails, `none (midpoint fails)` when sample 6 fails) so a silhouette sliver at an
8672
+ extreme dial angle can be told apart from broad interior stretch.
8578
8673
 
8579
8674
  Stock `check` reports a measured dial `FAIL` at the existing `WARN` level and
8580
8675
  counts slider outcomes separately from the ordinary bars. The dial report is
@@ -10319,6 +10414,25 @@ config it would emit with the recipe applied. If either changes the assembly
10319
10414
  reading, it reports [`ASSEMBLY_CONFIG_STALE`](#ASSEMBLY_CONFIG_STALE) before
10320
10415
  writing the mapped output. A successful handoff carries the original digest.
10321
10416
 
10417
+ For a recorded source, pass its accepted whole-set digest to publish a
10418
+ depth-only derivation. Prepare and bind the maps against that exact source.
10419
+
10420
+ ```sh
10421
+ rig-parts depth-apply --parts recorded --manifest inference/manifest.json --config depth.json --rig-config config.json --source-sha256 <accepted-digest> --out mapped
10422
+ rig-parts rig --parts mapped/set --config mapped/config.json --out compiled
10423
+ ```
10424
+
10425
+ Use a new, disjoint `--out` directory. The command publishes `set/`,
10426
+ `config.json`, and `depth-report.json` together after verification. The parts
10427
+ tree and its active receipt live in `set/`. Prior receipts stay in the tree
10428
+ with their original bytes. A source digest mismatch or a bad receipt is
10429
+ reported as [`REPLACE_PART_SOURCE_HASH`](#REPLACE_PART_SOURCE_HASH) or
10430
+ [`REPLACE_PART_RECORD`](#REPLACE_PART_RECORD). In Bun, use
10431
+ `verifyDepthReplacementDelta(recorded, 'mapped/set')` from
10432
+ `@rig-c/parts/replace-parts` to verify the derivation. The
10433
+ [replacement record contract](STABILITY.md#parts-replacement-record)
10434
+ defines both inventories and the depth variant.
10435
+
10322
10436
  The separate recipe is not a new field on character config:
10323
10437
 
10324
10438
  ```json
@@ -10499,6 +10613,9 @@ by `rig`, so their output requires no alternate compiler or dependency pin.
10499
10613
  | <a id="DEPTH_INPUT_JSON"></a>`DEPTH_INPUT_JSON` | malformed numeric or configuration JSON | write valid finite JSON |
10500
10614
  | <a id="DEPTH_PART_RESOLVES"></a>`DEPTH_PART_RESOLVES` | selected or cleared name absent from parts.json | use the assembled part name |
10501
10615
  | <a id="DEPTH_OUTPUT_EMPTY"></a>`DEPTH_OUTPUT_EMPTY` | nonempty output directory or output containing an input, or `depth-map` cannot create its output exclusively | choose a separate absent or empty output directory, or for `depth-map` an absent output file in a writable directory |
10616
+ | <a id="DEPTH_RECORD_OUTPUT"></a>`DEPTH_RECORD_OUTPUT` | the recorded output path is occupied, overlaps an input, or cannot be published, or the source already contains the proposed receipt path | choose an absent, writable `--out` directory disjoint from every input and use a source with a fresh receipt path |
10617
+ | <a id="DEPTH_RECORD_DELTA"></a>`DEPTH_RECORD_DELTA` | the manifests, sheet ownership, byte inventories or receipt claims disagree with a depth-only derivation | restore the exact source and regenerate the result through `depth-apply --source-sha256` with distinct sheet paths |
10618
+ | <a id="DEPTH_RECORD_MANIFEST_BOUND"></a>`DEPTH_RECORD_MANIFEST_BOUND` | the recorded source contains `cut_material_sources.json`, which binds to its `parts.json` | supply a recorded source whose assembly did not emit the cut-material sidecar |
10502
10619
  | <a id="DEPTH_MAP_BINDING"></a>`DEPTH_MAP_BINDING` | invalid part name for `depth-map` or `depth-bind`, or malformed present map receipt, wrong part, map hash or inference-input hash | use a nonempty plain part filename for the command, or re-run depth for the affected receipt and call `rig-parts depth-bind --map <numeric-map.json> --input <prepared.png> --part <name>` |
10503
10620
  | <a id="DEPTH_MAP_BINDING_ABSENT"></a>`DEPTH_MAP_BINDING_ABSENT` | WARN only: no receipt, compatibility policy dated 2026-11-16 | re-run depth for these inputs, then `rig-parts depth-bind --map <numeric-map.json> --input <prepared.png> --part <name>` |
10504
10621
  | <a id="DEPTH_INPUT_BINDING"></a>`DEPTH_INPUT_BINDING` | changed recipe, art, part record, crop, padding or inference PNG | prepare again for these exact inputs |
@@ -11032,8 +11149,8 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
11032
11149
  <!-- check-row-table:begin -->
11033
11150
  | Row family | Registered JSON paths | row_scope | row_kind | row_subjects (producer expression) | Producer |
11034
11151
  | --- | --- | --- | --- | --- | --- |
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) |
11152
+ | `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:3889](../src/check.ts#L3889) |
11153
+ | `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:3849](../src/check.ts#L3849) |
11037
11154
  | `ART_JOINT_DISTANCE.joints` | `ART_JOINT_DISTANCE.joints` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [artjoints.ts:86](../src/artjoints.ts#L86) |
11038
11155
  | `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) |
11039
11156
  | `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) |
@@ -11049,54 +11166,55 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
11049
11166
  | `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) |
11050
11167
  | `BOUNDARY_COLOUR_STEP.over` | `BOUNDARY_COLOUR_STEP.over` | 'pair' | finding | r.parts | [boundarycolour.ts:221](../src/boundarycolour.ts#L221) |
11051
11168
  | `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) |
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) |
11169
+ | `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:6342](../src/check.ts#L6342) |
11053
11170
  | `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) |
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) |
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) |
11058
- | `PART_SUPPORT_REPORT.raw_pairs` | `PART_SUPPORT_REPORT.raw_pairs` | 'pair' | evidence | [F.name, B.name] | [coincide.ts:110](../src/coincide.ts#L110) |
11059
- | `PART_SUPPORT_REPORT.unowned.regions` | `PART_SUPPORT_REPORT.unowned.regions` | 'rig' | finding | [] | [coincide.ts:145](../src/coincide.ts#L145) |
11171
+ | `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:4091](../src/check.ts#L4091) |
11172
+ | `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:4066](../src/check.ts#L4066) |
11173
+ | `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4384](../src/check.ts#L4384) |
11174
+ | `PART_SUPPORT_REPORT.pairs` | `PART_SUPPORT_REPORT.pairs` | 'pair' | evidence; finding when length > 0; otherwise evidence | [F.name, B.name] | [coincide.ts:141](../src/coincide.ts#L141), [coincide.ts:157](../src/coincide.ts#L157) |
11175
+ | `PART_SUPPORT_REPORT.raw_pairs` | `PART_SUPPORT_REPORT.raw_pairs` | 'pair' | evidence | [F.name, B.name] | [coincide.ts:137](../src/coincide.ts#L137) |
11176
+ | `PART_SUPPORT_REPORT.unowned.regions` | `PART_SUPPORT_REPORT.unowned.regions` | 'rig' | finding | [] | [coincide.ts:172](../src/coincide.ts#L172) |
11060
11177
  | `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) |
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) |
11178
+ | `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:5739](../src/check.ts#L5739) |
11179
+ | `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:5054](../src/check.ts#L5054) |
11180
+ | `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5046](../src/check.ts#L5046) |
11181
+ | `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5712](../src/check.ts#L5712) |
11182
+ | `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:5669](../src/check.ts#L5669), [check.ts:5745](../src/check.ts#L5745) |
11183
+ | `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:5682](../src/check.ts#L5682) |
11184
+ | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b] | [check.ts:5672](../src/check.ts#L5672) |
11068
11185
  | `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) |
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) |
11186
+ | `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5666](../src/check.ts#L5666) |
11187
+ | `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4708](../src/check.ts#L4708), [check.ts:4754](../src/check.ts#L4754) |
11188
+ | `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:4752](../src/check.ts#L4752) |
11072
11189
  | `SETUP_MATCHES_PAINTING.regions` | `SETUP_MATCHES_PAINTING.regions` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [setuppainting.ts:175](../src/setuppainting.ts#L175) |
11073
11190
  | `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) |
11191
+ | `SETUP_SEAM_TRANSMISSION.rows` | `SETUP_SEAM_TRANSMISSION.rows` | 'pair' | evidence | [under, over] | [coincide.ts:453](../src/coincide.ts#L453) |
11074
11192
  | `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) |
11075
11193
  | `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) |
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) |
11194
+ | `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:9556](../src/check.ts#L9556) |
11195
+ | `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:9542](../src/check.ts#L9542), [check.ts:9547](../src/check.ts#L9547) |
11196
+ | `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4312](../src/check.ts#L4312) |
11197
+ | `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:4300](../src/check.ts#L4300) |
11198
+ | `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4300](../src/check.ts#L4300) |
11199
+ | `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:4268](../src/check.ts#L4268), [check.ts:4286](../src/check.ts#L4286) |
11200
+ | `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:10703](../src/check.ts#L10703), [check.ts:10710](../src/check.ts#L10710) |
11201
+ | `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:8931](../src/check.ts#L8931), [check.ts:8936](../src/check.ts#L8936), [check.ts:8957](../src/check.ts#L8957), [check.ts:8968](../src/check.ts#L8968) |
11202
+ | `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:6846](../src/check.ts#L6846) |
11203
+ | `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:6857](../src/check.ts#L6857) |
11204
+ | `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6163](../src/check.ts#L6163) |
11205
+ | `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:7964](../src/check.ts#L7964) |
11206
+ | `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8299](../src/check.ts#L8299) |
11207
+ | `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8299](../src/check.ts#L8299) |
11208
+ | `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:8299](../src/check.ts#L8299) |
11209
+ | `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5043](../src/check.ts#L5043) |
11210
+ | `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:5003](../src/check.ts#L5003) |
11093
11211
  | `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
11212
  | `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2187](../src/check.ts#L2187) |
11095
11213
  | `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) |
11214
+ | `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:7811](../src/check.ts#L7811) |
11097
11215
  | `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
11216
  | `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) |
11217
+ | `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:10646](../src/check.ts#L10646) |
11100
11218
 
11101
11219
  | Serialized type path | Reason for schema exclusion |
11102
11220
  | --- | --- |