rig-parts 2.72.0 → 2.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.ts +33 -12
- package/docs/AUTHORING.md +92 -70
- package/docs/STABILITY.md +47 -2
- package/package.json +1 -1
- package/src/build.ts +30 -3
- package/src/check.ts +2270 -146
- package/src/checkrow.ts +35 -29
- package/src/config.ts +4 -4
- package/src/parts.ts +3 -1
- package/src/propose.ts +27 -13
- package/src/runstamp.ts +13 -5
- package/src/scene.ts +102 -5
package/cli.ts
CHANGED
|
@@ -61,7 +61,7 @@ import { replacementTreeDigest } from './src/replacementrecord.ts';
|
|
|
61
61
|
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';
|
|
62
62
|
import { buildSheet, defaultCaption, type Tile, tilesFrom } from './src/sheet.ts';
|
|
63
63
|
import { loadComparison, requiredProblems, structureLines } from './src/structure.ts';
|
|
64
|
-
import { type ArgvTable, assembleOutputFiles, bindAssembleWrapperInputs, BUILD_RUN_FILE, type BuildWrapperRole, CHECK_RUN_FILE, clearComposeRun, clearRunRecord, clearRunStamp, readPackageIdentity, realWhereItExists, recordArgv, rigOutputFiles, RUN_STAMP_FILE, RUN_STAMP_SPEC, type RunStampFileEntry, type RunStampInputEntry, writeRunRecord, writeRunStamp } from './src/runstamp.ts';
|
|
64
|
+
import { type ArgvTable, assembleOutputFiles, bindAssembleWrapperInputs, buildAllocationOutputFiles, BUILD_RUN_FILE, type BuildWrapperRole, CHECK_RUN_FILE, clearComposeRun, clearRunRecord, clearRunStamp, readPackageIdentity, realWhereItExists, recordArgv, rigOutputFiles, RUN_STAMP_FILE, RUN_STAMP_SPEC, type RunStampFileEntry, type RunStampInputEntry, writeRunRecord, writeRunStamp } from './src/runstamp.ts';
|
|
65
65
|
import { authorLayerLine } from './src/tags.ts';
|
|
66
66
|
|
|
67
67
|
const EXIT_OK = 0;
|
|
@@ -946,9 +946,10 @@ usage:
|
|
|
946
946
|
--timeout s), and writes <out> only after the layer reader accepts what
|
|
947
947
|
came back.
|
|
948
948
|
--lama turns the wrapper's LaMa inpainting on and --nf4 its nf4
|
|
949
|
-
quantisation; both are off unless given.
|
|
950
|
-
|
|
951
|
-
|
|
949
|
+
quantisation; both are off unless given. Without --config, resolution, steps,
|
|
950
|
+
seed and offload default to 1024, 30, 42 and false; with --config, explicit
|
|
951
|
+
flags override config.seethrough, and an omitted steps, seed or offload with
|
|
952
|
+
no matching flag is refused (CONFIG_FIELD_PRESENT). The resolved resolution must be an integer of at
|
|
952
953
|
least 64, including config values. --no-offload overrides a config's true; it cannot
|
|
953
954
|
be combined with --offload. Each value prints its source. No config is
|
|
954
955
|
discovered automatically: give --config <config.json> to use its settings.
|
|
@@ -2511,17 +2512,32 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2511
2512
|
const depthRun = v.get('--depth-run');
|
|
2512
2513
|
if (sub === 'seethrough' && depthConfig !== undefined && depthRun !== 'full' && depthRun !== 'head') return usage('active config.depth requires --depth-run <full|head>; the source run is not inferred');
|
|
2513
2514
|
if (sub === 'seethrough' && depthConfig === undefined && depthRun !== undefined) return usage('--depth-run requires --config with an explicit depth block');
|
|
2514
|
-
const host = resolveHost(v.get('--host'), process.env.COMFY_HOST);
|
|
2515
|
-
const client = new ComfyClient(host, { poll: poll as number, request: 30, wait: wait as number });
|
|
2516
2515
|
if (sub === 'seethrough') {
|
|
2517
2516
|
const image = v.get('--image');
|
|
2518
2517
|
if (image === undefined) return usage('comfy seethrough needs --image <png>');
|
|
2519
2518
|
const resolution = intFlag(v, '--resolution', early?.seethrough.resolution ?? 1024, 64, 'config.seethrough.resolution');
|
|
2520
|
-
const steps = intFlag(v, '--steps',
|
|
2521
|
-
const seed = intFlag(v, '--seed',
|
|
2519
|
+
const steps = v.has('--steps') || early === undefined ? intFlag(v, '--steps', 30, 1) : early.seethrough.steps;
|
|
2520
|
+
const seed = v.has('--seed') || early === undefined ? intFlag(v, '--seed', 42, 0) : early.seethrough.seed;
|
|
2522
2521
|
for (const x of [resolution, steps, seed]) if (typeof x === 'string') return usage(x);
|
|
2523
2522
|
const prefix = v.get('--prefix') ?? 'spine_parts';
|
|
2524
2523
|
if (!/^[A-Za-z0-9_-]+$/.test(prefix)) return usage(`--prefix ${prefix} is not letters, digits, "_" and "-"`);
|
|
2524
|
+
const cliOffload = on.has('--offload') || on.has('--no-offload');
|
|
2525
|
+
if (early !== undefined) {
|
|
2526
|
+
const missing: Problem[] = [];
|
|
2527
|
+
if (!v.has('--steps') && early.seethrough.steps === undefined) {
|
|
2528
|
+
missing.push({ code: 'CONFIG_FIELD_PRESENT', object: 'config.seethrough.steps', detail: 'is absent and required by comfy seethrough; set config.seethrough.steps or pass --steps <n>' });
|
|
2529
|
+
}
|
|
2530
|
+
if (!v.has('--seed') && early.seethrough.seed === undefined) {
|
|
2531
|
+
missing.push({ code: 'CONFIG_FIELD_PRESENT', object: 'config.seethrough.seed', detail: 'is absent and required by comfy seethrough; set config.seethrough.seed or pass --seed <n>' });
|
|
2532
|
+
}
|
|
2533
|
+
if (!cliOffload && early.seethrough.offload === undefined) {
|
|
2534
|
+
missing.push({ code: 'CONFIG_FIELD_PRESENT', object: 'config.seethrough.offload', detail: 'is absent and required by comfy seethrough; set config.seethrough.offload or pass --offload or --no-offload' });
|
|
2535
|
+
}
|
|
2536
|
+
if (missing.length > 0) throw new PartsError(missing);
|
|
2537
|
+
}
|
|
2538
|
+
const offload = on.has('--offload') ? true : on.has('--no-offload') ? false : (early?.seethrough.offload ?? false);
|
|
2539
|
+
const host = resolveHost(v.get('--host'), process.env.COMFY_HOST);
|
|
2540
|
+
const client = new ComfyClient(host, { poll: poll as number, request: 30, wait: wait as number });
|
|
2525
2541
|
const run = {
|
|
2526
2542
|
image,
|
|
2527
2543
|
out,
|
|
@@ -2529,7 +2545,7 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2529
2545
|
resolution: resolution as number,
|
|
2530
2546
|
steps: steps as number,
|
|
2531
2547
|
seed: seed as number,
|
|
2532
|
-
offload
|
|
2548
|
+
offload,
|
|
2533
2549
|
lama: on.has('--lama'),
|
|
2534
2550
|
quant: on.has('--nf4') ? ('nf4' as const) : ('none' as const),
|
|
2535
2551
|
wait: wait as number,
|
|
@@ -2537,8 +2553,11 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2537
2553
|
...(depthConfig === undefined ? {} : { depth: { config: depthConfig, run: depthRun as 'full' | 'head', base: dirname(resolve(configPath as string)) } }),
|
|
2538
2554
|
};
|
|
2539
2555
|
console.log(`rig-parts comfy seethrough: ${image} -> ${out}`);
|
|
2540
|
-
const source = (key: 'resolution' | 'steps' | 'seed' | 'offload'): string =>
|
|
2541
|
-
v.has(`--${key}`) || (key === 'offload' &&
|
|
2556
|
+
const source = (key: 'resolution' | 'steps' | 'seed' | 'offload'): string => {
|
|
2557
|
+
if (v.has(`--${key}`) || (key === 'offload' && cliOffload)) return 'cli';
|
|
2558
|
+
if (early !== undefined && Object.hasOwn(early.seethrough, key) && early.seethrough[key] !== undefined) return `config.seethrough.${key}`;
|
|
2559
|
+
return 'default';
|
|
2560
|
+
};
|
|
2542
2561
|
console.log(` resolution ${run.resolution} (source=${source('resolution')}), steps ${run.steps} (source=${source('steps')}), seed ${run.seed} (source=${source('seed')}), offload ${run.offload} (source=${source('offload')}); lama ${run.lama}, quant ${run.quant}; wait <= ${run.wait} s, timeout ${run.timeout} s`);
|
|
2543
2562
|
if (early === undefined) console.log(' no config loaded; give --config <config.json> to use config.seethrough settings; explicit CLI flags override them');
|
|
2544
2563
|
const r = await runSeeThrough(client, run, (l) => console.log(l));
|
|
@@ -2546,6 +2565,8 @@ async function cmdComfy(args: string[]): Promise<number> {
|
|
|
2546
2565
|
console.log(` wrote ${join(out, 'layers.json')}, meta.json, parts/ (${r.layers.length} PNG) and previews/ (${r.previews.length} PNG); GPU job ended`);
|
|
2547
2566
|
return EXIT_OK;
|
|
2548
2567
|
}
|
|
2568
|
+
const host = resolveHost(v.get('--host'), process.env.COMFY_HOST);
|
|
2569
|
+
const client = new ComfyClient(host, { poll: poll as number, request: 30, wait: wait as number });
|
|
2549
2570
|
if (cfg === null) return usage('comfy paint needs --config <config.json>');
|
|
2550
2571
|
const seeds = intFlag(v, '--seeds', 1, 1);
|
|
2551
2572
|
if (typeof seeds === 'string') return usage(seeds);
|
|
@@ -2684,7 +2705,7 @@ function cmdBuild(args: string[]): number {
|
|
|
2684
2705
|
writeRunRecord({ pkg, command: 'build', startedAt, finishedAt: fixedClock ?? new Date().toISOString(), outDir: out, configPath: config,
|
|
2685
2706
|
inputs: { cwd, source, full, head, requirements, environment, windBand, alts },
|
|
2686
2707
|
...(wrapperPngs === undefined ? {} : { wrapperPngs }),
|
|
2687
|
-
outputs: [...BUILD_OWNS, ...BUILD_OWNS_FILES], argv: recordArgv('build', args, BUILD_ARGV, out, cwd) });
|
|
2708
|
+
outputs: [...BUILD_OWNS, ...BUILD_OWNS_FILES, ...buildAllocationOutputFiles(out)], argv: recordArgv('build', args, BUILD_ARGV, out, cwd) });
|
|
2688
2709
|
}
|
|
2689
2710
|
return r.stoppedAt === null ? EXIT_OK : EXIT_REFUSED;
|
|
2690
2711
|
} finally {
|
package/docs/AUTHORING.md
CHANGED
|
@@ -174,7 +174,7 @@ read by no CPU stage).
|
|
|
174
174
|
| `generation.*` | the optional `comfy` adapter only; no CPU stage | recorded: checkpoint, LoRAs, sampler, prompt parts, `latent`, `seed`, `control` |
|
|
175
175
|
| `generation.control.skeleton` | `comfy paint` — the OpenPose control image, drawn at `latent` | **authored**: a built-in standing pose, `"stand_sides"` or `"stand_clasp"`, or (issue #198) any other string, read as a path relative to the config file's directory to a pose file `{"width": W, "height": H, "points": {"nose": [x, y], "neck": [x, y], …}}` — `width` x `height` is the canvas and must be `generation.latent` (the points are not scaled; `CONFIG_POSE_CANVAS`), and `points` holds the 18 body-18 keypoints of `src/skeleton.ts` by name (`nose`, `neck`, `r_shoulder`, `r_elbow`, `r_wrist`, `l_shoulder`, `l_elbow`, `l_wrist`, `r_hip`, `r_knee`, `r_ankle`, `l_hip`, `l_knee`, `l_ankle`, `r_eye`, `l_eye`, `r_ear`, `l_ear`; `r`/`l` the subject's sides), each `[x, y]` in canvas px, x right, y down, `0 <= x <= W`, `0 <= y <= H`. The image is drawn from the file exactly as from a built-in (same renderer, same size), written as `control_pose-<first 12 hex of its sha256>.png`. A pose file carries no words, so `generation.pose` is required beside it (`CONFIG_FIELD_PRESENT`). The file is read wherever the config is read from a path, every problem at once: no such file — a misspelt built-in lands here too — or one that cannot be read (`CONFIG_FILE_PRESENT`), not JSON (`CONFIG_IS_JSON`), not an object, a size that is not a whole positive px count, a point that is not two numbers (`CONFIG_FIELD_TYPE`), a key besides the three (`CONFIG_KEY_KNOWN`) or written twice (`CONFIG_KEY_UNIQUE`), `points` holding other than the 18 names (`CONFIG_POSE_KEYPOINTS`, with the count found and required), a point off the canvas (`CONFIG_POSE_IN_CANVAS`, naming the point and the canvas size) |
|
|
176
176
|
| `seethrough.resolution` | assemble — each run's canvas must be `resolution` square (`ASSEMBLE_RUN_CANVAS`); with one run (no `--head`, issue #366) the file may be smaller on either side, and is padded to the `resolution` square, centred | recorded from the See-through runs; 1024 in both examples. With one run it is the square the file is read on: at least the file's longer side (`ASSEMBLE_RUN_CANVAS` otherwise), and nothing a part records depends on how much larger |
|
|
177
|
-
| `seethrough.steps`, `.seed`, `.offload` | `comfy seethrough --config` | run inputs when `--config <config.json>` is given
|
|
177
|
+
| `seethrough.steps`, `.seed`, `.offload` | `comfy seethrough --config` only; no CPU stage | **optional** (issue #1672): See-through run inputs (`steps` integer `>= 1`, `seed` integer `>= 0`, `offload` boolean; `CONFIG_FIELD_TYPE` when malformed). Omitted on an authored layered-file route (§4, *For artists*), where See-through never runs. When `--config <config.json>` is given to `comfy seethrough`, explicit `--steps`, `--seed` and `--offload` / `--no-offload` override them, and an omitted field with no matching flag is refused (`CONFIG_FIELD_PRESENT`) |
|
|
178
178
|
| `seethrough.head_box` | inputs (cuts the head image there; optional at the first call); assemble — where the head run sits on the painting | **proposed** by `propose --head-box` from the full run, square, source pixels, shifted inside the painting when needed; the head run must then be fed exactly that crop. With one run (no `--head`, issue #359: an artist's own file, §4 *For artists*) it is left out — there is no crop to place — and a config that sets it is refused (`ASSEMBLE_SINGLE_RUN_HEAD_BOX`) |
|
|
179
179
|
| `seethrough.arm_split` | assemble, `assemble --propose-plan` — separates a single full-run `handwear-r` or `handwear-l` layer that holds both overlapping arms into both arm tags | **authored**, optional (issue #439): `{x?: number, line?: [[x, y], …], order: ["handwear-r", "handwear-l"] \| ["handwear-l", "handwear-r"]}` in `seethrough.resolution` full-run pixels. Exactly one of `x` (image column, `0 <= x <= resolution`) or `line` (a polyline of two or more `[x, y]` points in `[0, resolution]`, interpolated in x along y and clamped above/below its endpoints) is required (`CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE`), and `order` is `[back_tag, front_tag]`, the draw order of the two separated arm layers (`CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE`). Pixels at `< splitX(y)` go to `handwear-r` (image left, the subject's right arm) and pixels at `>= splitX(y)` go to `handwear-l` (image right, the subject's left arm). A split line that cuts a horizontal opaque run of the arm layer into more than two segments is refused (`ASSEMBLE_ARM_SPLIT_CUTS_ARM`). Without the declaration, when one arm layer's 8-connected component reaches both wrists under `propose --keypoints`, `propose` emits an `overlapping-arms` `LINT` naming the part, both wrists and `seethrough.arm_split`; absent, no byte of any output moves |
|
|
180
180
|
| `assemble.seam` | assemble, build | **authored**, optional `"near-white"` or `"silhouette"` (issue #905). An explicit `--seam` overrides the config; otherwise this field overrides the existing `near-white` default. An invalid value is `CONFIG_FIELD_TYPE` at `config.assemble.seam`, including when a CLI override is given. Absent, existing build bytes are unchanged. |
|
|
@@ -806,10 +806,15 @@ Two rules read the figure rather than one tag, and each says so in a note:
|
|
|
806
806
|
`footwear`) at their narrowest between the shoulder line (their widest row
|
|
807
807
|
within one face height below the neck) and the figure's middle, and at most
|
|
808
808
|
0.8 of the shoulders — or `hip from 0.32 of figure height (no waist found: …)`,
|
|
809
|
-
naming why. Without `bottomwear` the
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
809
|
+
naming why. Without `bottomwear`, `propose` uses the same waist rule first and
|
|
810
|
+
prints `no bottomwear: hip from 0.32 of figure height` if no waist is found.
|
|
811
|
+
Without `bottomwear` or a pair of hip joints, a hip at or above the neck, a
|
|
812
|
+
rounded hip at or above the rounded chest, or a rounded hip above the 0.25
|
|
813
|
+
figure-height line is refused by [`PROPOSE_HIP_PLACEMENT`](#PROPOSE_HIP_PLACEMENT)
|
|
814
|
+
before writing the draft.
|
|
815
|
+
This also refuses a head-only part set whose height puts the fallback hip
|
|
816
|
+
above the neck. The two reference examples use the bottomwear top edge:
|
|
817
|
+
their hips sit at 0.436 (`reference-demo`) and 0.342 (`reference-sample`) of their figures.
|
|
813
818
|
- **What a skirt hangs from** (issue #262). A `bottomwear` part whose art starts
|
|
814
819
|
below the `chest` bone's origin (along neck → hip where the joints give that line,
|
|
815
820
|
down the screen otherwise) hangs from the waist: its mesh takes the hip line and
|
|
@@ -4320,15 +4325,17 @@ early loader does not read it.
|
|
|
4320
4325
|
| loader | steps | requires | the step also refuses without |
|
|
4321
4326
|
| --- | --- | --- | --- |
|
|
4322
4327
|
| `paint` | 0 `comfy paint` | `key`, `generation` | — |
|
|
4323
|
-
| `layers` | 1 and 4 `inputs`, 6 `assemble --propose-plan` | `key`, `seethrough`, `assemble.rig_scale` | `seethrough.head_box`, for `--propose-plan`
|
|
4324
|
-
| `assemble` | 7 `assemble` | `key`, `seethrough`, `assemble.rig_scale`, `assemble.plan` | `seethrough.head_box` (`ASSEMBLE_FIELD_PRESENT`) |
|
|
4328
|
+
| `layers` | 1 and 4 `inputs`, `comfy seethrough --config`, 6 `assemble --propose-plan` | `key`, `seethrough`, `assemble.rig_scale` | `seethrough.head_box`, for two-run `--propose-plan` (`ASSEMBLE_FIELD_PRESENT`); `seethrough.steps`, `.seed`, `.offload` (or CLI flags), for `comfy seethrough --config` (`CONFIG_FIELD_PRESENT`) |
|
|
4329
|
+
| `assemble` | 7 `assemble` | `key`, `seethrough`, `assemble.rig_scale`, `assemble.plan` | `seethrough.head_box` when `--head` is given (`ASSEMBLE_FIELD_PRESENT`); on the authored layered-file route (no `--head`), `seethrough: { "resolution": N }` |
|
|
4325
4330
|
| `full` | 8 `propose --from-config`, `propose --compare`, `compare` (a side that states a `key`), `rig`, 9 `build` | `key`, `assemble.rig_scale`, `assemble.plan`, `bones`, `meshes`, `regions`, `motion` | for `build`, the `assemble` row's too: its assemble stage reads through that loader after this one |
|
|
4326
4331
|
| `cloth` | 8 `propose --cloth` (issue #364) | `key`, `cloth` | every other key must still be one a config knows; only `cloth` is vouched for. Every other loader vouches for `cloth` too when it is present |
|
|
4327
4332
|
|
|
4328
|
-
|
|
4329
|
-
the
|
|
4330
|
-
`
|
|
4331
|
-
|
|
4333
|
+
Inside `seethrough`, only `resolution` is required by the loaders, so a config for
|
|
4334
|
+
the authored layered-file route (*For artists* below) holds
|
|
4335
|
+
`seethrough: { "resolution": N }`. A missing field is `CONFIG_FIELD_PRESENT` naming
|
|
4336
|
+
it; a missing `generation` names the fields the block holds, and a missing
|
|
4337
|
+
`assemble.plan` names `assemble --propose-plan`, which prints one. `build` runs
|
|
4338
|
+
`rig`, so it asks the full loader before its assemble stage writes anything.
|
|
4332
4339
|
|
|
4333
4340
|
`comfy paint` records each seed in `painting_<seed>_meta.json` beside the PNG:
|
|
4334
4341
|
|
|
@@ -4750,8 +4757,9 @@ need that no tag fits is `author:<label>` (§5, *A layer the author made*).
|
|
|
4750
4757
|
needs no config field to say whose it is; a `:hidden` layer whose layer the file
|
|
4751
4758
|
does not hold is refused (`LAYERS_HIDDEN_OF_PRESENT`).
|
|
4752
4759
|
|
|
4753
|
-
**The commands.**
|
|
4754
|
-
|
|
4760
|
+
**The commands.** A config for this route holds `seethrough: { "resolution": N }` (at
|
|
4761
|
+
least the file's longer side; no `steps`, `seed`, `offload` or `head_box`). Leave
|
|
4762
|
+
`--head` out everywhere:
|
|
4755
4763
|
|
|
4756
4764
|
```sh
|
|
4757
4765
|
rig-parts layers art.psd
|
|
@@ -5019,7 +5027,7 @@ that check the manifest against a config refuse a stale digest as
|
|
|
5019
5027
|
| `check` (inside `build`) | the gate lines verbatim, the pack line, `loop:` (and `loop physics:` when the rig declares a physics constraint, §7), `seam:`, the six judgement lines, then — when `motion.json` holds an animation, the idle included — `ANIMATIONS_DO_NOT_FOLD` and one `folds` line per folding mesh, rigc's own (issues #320, #333), then — where a `footwear` part rides a bone that hangs from another — `FEET_STAY_LEVEL` and one `foot` line per such part (issue #348), then — when `parts.json` names a `handwear` part and there is an idle — `STRESS_OFF_CHAIN` (issue #347), then — where `parts.json` holds a limb segment's part — `LIMB_ONE_BONE` and one `limb` line per such part (issue #349), then — where a limb record carries a `range` — `SEAM_OVER_RANGE` and one `joint` line per joint and angle (issue #360), then `SEAM_OVER_MOTION` — a SKIP naming why on a rig that declares no neighbour pair, else the pairs read in every animation; existing internal-joint and explicit-seam pairs retain their `WARN seam` policy (issue #493), while proven body-root tears print `FAIL seam` and fail a counted bar (issue #686), then `CLOTH_SETTLES` — a SKIP naming why on a rig with no physics constraint, else the chains read and one `WARN chain` line per chain whose tip comes to rest before the idle's loop length (issue #501, a warning and never a bar), then `PHYSICS_CONTRIBUTES` — where a part is under physics — how many parts it read against the same build posed with physics off, and one `WARN PHYSICS_CONTRIBUTES` line per part that reads exactly 0 (issue #1320, a report and never a bar), then `figure_openings:` — `CLEAR` or `WARN` with the undeclared setup-overlapping pairs, animations and cell size read and one `WARN opening` line per pair and animation whose transparent interior opening exceeds the one-cell floor, or a named `SKIP` when there is no `parts.json`, no animation or no undeclared setup-overlapping pair (issue #933, a warning and never a bar), `RECOMPOSITE_HOLES` and, under `--source`, `SETUP_POSE_VS_SOURCE` (§7), `check.json`; the last line says how many of the bars measured — nine, ten with the fold bar, one more each with the feet-level bar, the stress bar, the limb bar, the range bar and, where proven body-root pairs exist, the body-root seam bar — and names the ones that said SKIP, then — where `SEAM_OVER_MOTION` read a pair — how many warnings it printed, `; N warning(s) (SEAM_OVER_MOTION, not a bar)` — with `CLOTH_SETTLES` named beside it where the rig declares a physics constraint, and `PHYSICS_CONTRIBUTES` after that where it printed a warning, and N their sum — which no bar counts | `check: PASS; 10 of 11 bar(s) measured, 1 skipped (loop)` on `demo` and `scarf`, whose sleeves each ride one chain and whose physics constraints omit shipped-frame loop closure (issue #1590); `check: PASS; 10 of 11 bar(s) measured, 1 skipped (STRESS_OFF_CHAIN)` on `reference-demo` (no physics constraints) and `9 of 11 bar(s) measured, 2 skipped (loop, STRESS_OFF_CHAIN)` on `reference-sample`, whose one `sleeves` mesh rides both sleeve chains (issue #347) — no example writes `FEET_STAY_LEVEL`, every shoe riding `root`; a judgement line SKIP only where the character lacks what it reads; on a rig spec with no `parts.json` or no `idle` (a merged rig, §7 *Measuring a rig rig-parts did not assemble*), PASS with the skipped bars named | `CHECK_SEAM_WITHIN_BAR` or `CHECK_LOOP_CLOSES` (§6); `CHECK_ANIMATIONS_DO_NOT_FOLD` — a clip turns a mesh over (§6); `CHECK_STRESS_OFF_CHAIN` — a sleeve weighted off its chain (§6); `CHECK_LIMB_ONE_BONE` — a limb part on a second bone (§6); `CHECK_SEAM_OVER_RANGE` — a joint that opens when bent (§6); `CHECK_SEAM_OVER_MOTION` — a proven body-root seam opens over the existing floor (§6) |
|
|
5020
5028
|
| `check` / `build`: extremes observations | `extremes/<segment>/extremes.png` and `extremes.json` beside the other check outputs; `<segment>` follows [Diagnostic path segments](STABILITY.md#diagnostic-path-segments), while JSON retains the original animation; generated by core `render --extremes-only` at 12 fps on its fitted world box at scale 1; one `EXTREMES` geometry-pair frame/distance summary per animation | open the native setup/min/max/diffs and label every changed boundary tear, ghost or clean before human review (step 9) | core's named static/observation SKIPs retain JSON without a PNG; diagnostic failure is `CHECK_EXTREMES_RENDER_FAILED` SKIP and leaves the measured verdict unchanged; `--no-extremes` runs no extra render and removes stale `extremes/` |
|
|
5021
5029
|
| `check --requirements` (and `build --requirements`) | after the lines above, one line per declared requirement, `NAME: PASS`, `FAIL` or `NOT MEASURABLE — …` with its figures, the bar as declared and the worst frame; then `requirements: N declared — M measured (P PASS, F FAIL), K NOT MEASURABLE; not declared: <kinds>`; `check.json`'s `requirements` block, first its `file` record (issue #556); the renders under `requirements/` (§7, *Declared requirements*) — `build` reads `config.requirements` in place of the flag when it is not given | every line PASS and `0 NOT MEASURABLE`; a follow's `released_copy` says whether rigc's consumer-driven door was taken on the throwaway copy; a `stretch` line's `held_by` (issue #321), right after `worst`, names the bones the worst edge's two vertices hang on and their idle chains, in `CHECK_TEXTURE_STRETCH`'s words (§6) and by the same function, on a PASS as on a FAIL | `CHECK_REQUIREMENT_MET` (a figure past its bar; the line names the frame) or `CHECK_REQUIREMENT_MEASURABLE` (the quantity is undefined in the frames: a tip or an axis on a bone of length 0, an aim with no line, a follow no frame of which reaches its least drive); the last line then reads `check: FAIL — B bar(s) not met, R declared requirement(s) not PASS` |
|
|
5022
|
-
| `compose` | the `[compose]` lines: one per character (its offset, its scale, its placed bounds, the shift and how many first-level bones, regions on `root` and weights bound to `root` it moved, its bone, slot, track and constraint counts, its `rig_scale` and idle), the declared order and the slot count it expands to, rigc's gate lines; then the `[check]` lines as for `check`, and `scene.json` | both gate summaries `0 failed`, `check: PASS` with the bars that measured and the ones that said SKIP named —
|
|
5030
|
+
| `compose` | the `[compose]` lines: one per character (its offset, its scale, its placed bounds, the shift and how many first-level bones, regions on `root` and weights bound to `root` it moved, its bone, slot, track and constraint counts, its `rig_scale` and idle), the declared order and the slot count it expands to, rigc's gate lines; then the `[check]` lines as for `check`, and `scene.json` | both gate summaries `0 failed`, `check: PASS` with the bars that measured and the ones that said SKIP named — `compose` forwards each bound character's manifest (`parts.json` and `parts/`) and `rig/mesh_report.json` so the nine parts-backed bars and `SEAM_OVER_MOTION` are measured on the composed take per character (`check.json`'s `characters.<id>`), leaving `no-parts` only when a manifest is absent. `scene.json`'s `order.slots` is the order the compiled skeleton draws | a `SCENE_*` refusal (§6, *compose*) — the scene file, a build, or the order; `COMPOSE_RIGC_GREEN` — rigc's own line, quoted |
|
|
5023
5031
|
| `loop` (inside `build --loop`, or `loop --frames … --out …`) | the dropped-duplicate line, or, when the end frame is not frame 0, the jump line: its max \|d\| and px over 40, then why — under `build`, `the rig holds N physics constraint(s), and rigc's render starts every one at rest at frame 0` with the remedy `build --loop --lead-in <n>`, or `the rig holds no physics constraint, so the idle itself does not close` (`CHECK_LOOP_CLOSES`); under `loop --frames`, which reads frames alone, both causes (issue #325); under `build --lead-in`, the lead-in line in its place (the frames kept and the jump at the wrap); each file's line, then `loop: idle.png N B (lossless); idle-indexed.png N B (max …, mean …); idle.gif N B (max …, mean …)` | `f0048.png equals f0000.png byte for byte, so it is dropped` | `LOOP_ENCODE` (§6) |
|
|
5024
5032
|
|
|
5025
5033
|
`RECOMPOSITE_HOLES` is `REPORTED`, never judged, and its count reads large: for scale, the
|
|
@@ -5956,7 +5964,7 @@ See-through with another seed.
|
|
|
5956
5964
|
| <a id="CONFIG_WRITE_CHANGED"></a>`CONFIG_WRITE_CHANGED` | the existing destination no longer matches the snapshot read for `--write-config` when the writer is ready to commit: it is absent, no longer a regular file, or its permissions or text differ. The writer refuses to replace the current destination | keep the current config, reconcile any concurrent edit, and rerun against it |
|
|
5957
5965
|
| <a id="CONFIG_WRITE_FAILED"></a>`CONFIG_WRITE_FAILED` | a proposed-value splice moved an unintended field, or a config-writing operation failed: reading, checking collisions, staging, writing proposal artifacts, publishing or replacing the destination, or removing the staged temporary. The message names the action and path. Cleanup failures retain the primary failure and name the stranded temporary. Fresh cloth publication precedes temporary cleanup, so a cleanup failure may leave the complete new config present; there is no transaction over every proposal artifact | inspect the named action, destination and temporary; restore access or permissions as needed; remove only the specifically reported stranded temporary, and inspect any published config before retrying |
|
|
5958
5966
|
| <a id="CONFIG_FILE_PRESENT"></a><a id="CONFIG_IS_JSON"></a>`CONFIG_FILE_PRESENT`, `CONFIG_IS_JSON` | no such file, or not JSON; for a file the config names (`motion.animations_from`, `requirements`), the path is read relative to the config's directory, and the `motion.animations_from` line names the path as typed, that directory and what the two resolved to (issue #569) | `--config`; a file the config names: put it at the resolved path, or write the path from the config's directory |
|
|
5959
|
-
| <a id="CONFIG_KEY_KNOWN"></a><a id="CONFIG_KEY_RETIRED"></a><a id="CONFIG_FIELD_PRESENT"></a><a id="CONFIG_FIELD_TYPE"></a>`CONFIG_KEY_KNOWN`, `CONFIG_KEY_RETIRED`, `CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE` | an unknown key (a retired one says what replaces it), a missing one (a `motion.animations_from` file with no `spec` is told to write `"spec": "rigc-motion/1"` and the whole file's shape, issue #569), a wrong type (`bones[i].link_inherit` must be an object whose values are strings); a project's own record under a plain key, or an annotation (`note`, `<name>_note`) holding something other than a string; in `meshes.<part>.auto` (§3, *An automatic mesh*), a missing or out-of-range number, a Stage B opt-in that is not exactly a value rig-c accepts, or a field the mode does not have — a bound on one of the five allocation rows, or an authored `motionAmplitude` (it is derived, never written); under `comfy paint`, `CONFIG_FIELD_PRESENT` on `config.generation`: a config with no `generation` block (the line names the fields it holds) | the named field; a record goes under a key beginning `x-` (any JSON, read by nothing), a remark under `note` or `<name>_note` (a string) — §3; under `comfy paint`, `config.generation` |
|
|
5967
|
+
| <a id="CONFIG_KEY_KNOWN"></a><a id="CONFIG_KEY_RETIRED"></a><a id="CONFIG_FIELD_PRESENT"></a><a id="CONFIG_FIELD_TYPE"></a>`CONFIG_KEY_KNOWN`, `CONFIG_KEY_RETIRED`, `CONFIG_FIELD_PRESENT`, `CONFIG_FIELD_TYPE` | an unknown key (a retired one says what replaces it), a missing one (a `motion.animations_from` file with no `spec` is told to write `"spec": "rigc-motion/1"` and the whole file's shape, issue #569), a wrong type (`bones[i].link_inherit` must be an object whose values are strings); a project's own record under a plain key, or an annotation (`note`, `<name>_note`) holding something other than a string; in `meshes.<part>.auto` (§3, *An automatic mesh*), a missing or out-of-range number, a Stage B opt-in that is not exactly a value rig-c accepts, or a field the mode does not have — a bound on one of the five allocation rows, or an authored `motionAmplitude` (it is derived, never written); under `comfy paint`, `CONFIG_FIELD_PRESENT` on `config.generation`: a config with no `generation` block (the line names the fields it holds); under `comfy seethrough --config`, `CONFIG_FIELD_PRESENT` on `config.seethrough.steps`, `.seed` or `.offload` when omitted from the config with no matching flag | the named field; a record goes under a key beginning `x-` (any JSON, read by nothing), a remark under `note` or `<name>_note` (a string) — §3; under `comfy paint`, `config.generation`; under `comfy seethrough --config`, set the field in `config.seethrough` or pass `--steps`, `--seed`, `--offload` / `--no-offload` |
|
|
5960
5968
|
| <a id="CONFIG_KEY_UNIQUE"></a>`CONFIG_KEY_UNIQUE` | a key written twice in an existing config updated by `--write-config`, or in one object of a file the config names — the pose file `generation.control.skeleton` names, or the `motion.animations_from` file; JSON keeps only the last value, so every other would be dropped without a word | that file: each key once |
|
|
5961
5969
|
| <a id="CONFIG_ANIMATION_NAME_FREE"></a>`CONFIG_ANIMATION_NAME_FREE` | the `motion.animations_from` file holds an animation named `idle`, the animation `config.motion` writes | rename that animation |
|
|
5962
5970
|
| <a id="CONFIG_HEAD_BOX_SQUARE"></a>`CONFIG_HEAD_BOX_SQUARE` | `seethrough.head_box` is not a non-empty square | `head_box` — take `propose --head-box`'s |
|
|
@@ -6051,7 +6059,9 @@ says why each requirement exists and what breaks without it.
|
|
|
6051
6059
|
reads `seethrough.resolution`, `.steps`, `.seed` and `.offload` through the early
|
|
6052
6060
|
layers config loader. Explicit `--resolution`, `--steps`, `--seed` and
|
|
6053
6061
|
`--offload` / `--no-offload` win over config values; the two offload switches
|
|
6054
|
-
cannot be combined.
|
|
6062
|
+
cannot be combined. When `--config` omits `steps`, `seed` or `offload` and no
|
|
6063
|
+
matching CLI flag supplies it, the command refuses with `CONFIG_FIELD_PRESENT`
|
|
6064
|
+
naming the field and the flag before any request. The resolved resolution must be an integer of at least 64,
|
|
6055
6065
|
including config values; `--resolution 64` overrides a smaller configured
|
|
6056
6066
|
resolution for this run. Without `--config`, the defaults are resolution 1024,
|
|
6057
6067
|
steps 30, seed 42 and offload false. No config is discovered automatically,
|
|
@@ -6610,6 +6620,7 @@ recorded transform. The record fields and sampling formula are specified in
|
|
|
6610
6620
|
| <a id="HEADBOX_FACE_PRESENT"></a><a id="HEADBOX_RUN_SQUARE"></a><a id="HEADBOX_CANVAS_SIZE"></a><a id="HEADBOX_FITS_CANVAS"></a>`HEADBOX_FACE_PRESENT`, `HEADBOX_RUN_SQUARE`, `HEADBOX_CANVAS_SIZE`, `HEADBOX_FITS_CANVAS` | the full run has no face or is not square; `--canvas` is not a positive size; or the painting cannot hold the proposed box at its size — its shorter side is the bound (shrinking it would cut the head) | `--full`, `--canvas`, or the painting |
|
|
6611
6621
|
| <a id="PROPOSE_SOURCE_PRESENT"></a><a id="PROPOSE_PNG_PRESENT"></a><a id="PROPOSE_PNG_MATCHES_BOX"></a>`PROPOSE_SOURCE_PRESENT`, `PROPOSE_PNG_PRESENT`, `PROPOSE_PNG_MATCHES_BOX` | the painting or a part PNG is missing, or a PNG is not its box | `--source`, `--parts` (re-run assemble) |
|
|
6612
6622
|
| <a id="PROPOSE_FACE_PRESENT"></a>`PROPOSE_FACE_PRESENT` | no part comes from a `face` layer, and the face-less fallback cannot derive a face box either: it needs the head run's `neck` and at least one head-run `front hair`/`back hair` part whose top is above the neck's, and the message names the half that is missing. With both, `propose` does not refuse — it derives the box and says so in its first note (§5) | `assemble.plan`: take the face, or the head run's hair and neck |
|
|
6623
|
+
| <a id="PROPOSE_HIP_PLACEMENT"></a>`PROPOSE_HIP_PLACEMENT` | without `bottomwear` or a pair of hip joints, the chosen rule puts the hip at or above the neck, rounds it at or above the draft chest, or rounds it above 0.25 of the figure height | supply `--keypoints` with both hip joints, or a `bottomwear` part that puts the hip below the neck and chest and within the figure's hip band |
|
|
6613
6624
|
| <a id="PROPOSE_CUT_FROM_RECORDED"></a>`PROPOSE_CUT_FROM_RECORDED` | two parts share one layer and none of them records `cut_from`: a `parts.json` an `assemble` before 1.6.0 wrote with `assemble.cuts`. The records are in draw order, so which is the plan part and which the piece cannot be read off the file; the message names the parts and the layer. Every other reader still takes the file | `--parts`: re-run assemble (1.6.0+) to record `cut_from` |
|
|
6614
6625
|
| <a id="PROPOSE_LIMB_PARTS"></a>`PROPOSE_LIMB_PARTS` | `parts.json` holds a standalone or incomplete limb part `config.limbs` cut at its joints (issues #349, #440) that cannot be reassembled into the source part `of` (a missing segment or `cap` record, or `of` still present beside the limb parts); a complete `assemble` output with `config.limbs` reconstructs its pre-limb parts in the same run | `--parts` a complete `assemble` output (every segment of each limb, with its `cap` record) or a build assembled with `config.limbs` left out; `propose --from-config` reads the config's bones on either build |
|
|
6615
6626
|
| <a id="PROPOSE_FIGURE_LAYER"></a>`PROPOSE_FIGURE_LAYER` | with `--keypoints` (issue #577): a limb is drafted from the figure layer (no handwear or legwear part over 500 px for it), and two or more `topwear` parts each hold every joint and the trunk bones' origins within 15 px with the same opaque px in the 31x31 squares about them, so nothing says which is the figure; or the only `topwear` parts that hold them are named by a cloth recipe (`config.cloth.<tag>.part` or `.parts`, issue #631), whose mesh a limb would take (§3, *A figure of one material*) | leave the others out of `assemble.plan`, or give the arms and legs their own handwear and legwear layers; for a recipe's part, take it out of the recipe |
|
|
@@ -7071,6 +7082,15 @@ outside the consumed inputs.
|
|
|
7071
7082
|
| <a id="PARTS_INVENTED_EXPOSURE"></a>`PARTS_INVENTED_EXPOSURE` | HOLE: `check-parts` reads an assembled directory, which has no rig, motion or build to pose. The measurement lives in `check`, as [`SOURCE_EXPOSURE`](#SOURCE_EXPOSURE), over the gated build's setup pose and every animation | run `rig-parts check` on the rig, and read its `SOURCE_EXPOSURE` line |
|
|
7072
7083
|
| <a id="PARTS_DRAW_ORDER_INVERTED"></a>`PARTS_DRAW_ORDER_INVERTED` | REPORTED for each recorded pair of overlapping parts: inverted pixels, where the [record](#draw-order-inversions-source_overlaps-issue-1474) shows the part drawn behind and hides the part drawn in front, with the other classes of the shared pixels. Never a pass; a set with no record has no row. | read the inverted pixels; move the material to a layer drawn in front, or change the plan order |
|
|
7073
7084
|
|
|
7085
|
+
Whether a route can ever measure a quality class that `check-parts` reports as a HOLE:
|
|
7086
|
+
|
|
7087
|
+
| HOLE | See-through route | authored layered-file route |
|
|
7088
|
+
| --- | --- | --- |
|
|
7089
|
+
| `PARTS_PLATE_GHOST`, `PARTS_PLATE_STRUCTURE`, `PARTS_PLATE_SMEAR`, `PARTS_PLATE_STEPS` | HOLE on every input: no measure exists, and `check-parts` reads no plate | HOLE on every input, for the same reason |
|
|
7090
|
+
| `PARTS_INVENTED_MATERIAL` | REPORTED when the parts carry the [See-through visibility record](#see-through-layer-visibility), which only `comfy seethrough` writes | HOLE: no producer writes that record for an artist's file |
|
|
7091
|
+
| `PARTS_INVENTED_EXPOSURE` | HOLE here; measured by `check` as [`SOURCE_EXPOSURE`](#SOURCE_EXPOSURE) | HOLE here, and `SOURCE_EXPOSURE` has no visibility record to read |
|
|
7092
|
+
| `PARTS_PAINTING_ALLOCATION` | a config choice: `assemble.project: "visible"` writes `painting_allocation.json`; the default `core` does not | the same config choice |
|
|
7093
|
+
|
|
7074
7094
|
### check and build
|
|
7075
7095
|
|
|
7076
7096
|
| rule | means | change |
|
|
@@ -8174,7 +8194,7 @@ the composed idle under `<out>/check/`, at the viewport used for the shipped fra
|
|
|
8174
8194
|
| `characters[].placement_pivot` | optional literal `true` (issue #1498). Generates an identity `<id>:placement` under `root` and requires a scene-authored `translate`, `translatex` or `translatey` key on it. Every explicit value other than `true` is `SCENE_FIELD_TYPE` |
|
|
8175
8195
|
| `characters[].idle_repeats` | optional safe integer of 2 or more (issue #1511). Counts total plays of this character's source idle within an explicit `scene.animations.idle`. Its declared duration must equal `idle_repeats * source idle duration` exactly. In the same scene, each character without the key must fill the duration once. In `scene.json`, `characters[].idle_duration` gives the source period, `characters[].idle_repeats` appears on opted-in rows, and top-level `idle_duration` gives the scene period |
|
|
8176
8196
|
| `characters[].with_idle` | map from each source physics-only clip beside `idle` to a safe integer of at least 1 or literal `false` (issue #1615). A count requires character scale 1 and folds whole periods into the played idle. `false` leaves that clip out of the idle at any character scale. Both retain the prefixed side clip, which must pass the character's scale checks. See [Physics clips and scene repeats](#physics-clips-and-scene-repeats-issue-1615) |
|
|
8177
|
-
| `characters[].accept` | optional, a list of bar names: the bars this character's own check may have failed and still be composed (issue #203). `compose --accept <bar>[,<bar>…]` is the same list for every character; the two are joined, so the command line applies to every character and a character's list adds to it. Each name is one of the bars `check`'s summary names, less the gate — `loop`, `seam`, `BREATH_VISIBLE`, `BLINK_NO_HOLE`, `CHAIN_LAG`, `TIP_OVER_ROOT`, `STILL_REGIONS_DARK`, `TEXTURE_STRETCH`, `ANIMATIONS_DO_NOT_FOLD` (issue #320), `STRESS_OFF_CHAIN` (issue #347), `SEAM_OVER_MOTION` (the body-root bar, issue #686); anything else is `SCENE_ACCEPT_KNOWN`. When `check/check.json` declares `spec: "rig-parts-check/1"`, `compose` reads its `bar_outcomes` for the bars whose outcome status is `FAIL` in the report's order (issue #1373); without that spec it keeps the legacy `barsNotMet` reading. A build is taken when every bar its `check.json` failed is named; its gate red, a declared requirement not PASS, or a bar not named is `SCENE_BUILD_GREEN` as before. **It is for looking, not for shipping:** the `[compose]` line says which failing bars were accepted, `scene.json` records them as the character's `accepted`, the composed rig's own check measures them again and reports them as it finds them, and the run exits 1 even when that check is PASS (a
|
|
8197
|
+
| `characters[].accept` | optional, a list of bar names: the bars this character's own check may have failed and still be composed (issue #203). `compose --accept <bar>[,<bar>…]` is the same list for every character; the two are joined, so the command line applies to every character and a character's list adds to it. Each name is one of the bars `check`'s summary names, less the gate — `loop`, `seam`, `BREATH_VISIBLE`, `BLINK_NO_HOLE`, `CHAIN_LAG`, `TIP_OVER_ROOT`, `STILL_REGIONS_DARK`, `TEXTURE_STRETCH`, `ANIMATIONS_DO_NOT_FOLD` (issue #320), `STRESS_OFF_CHAIN` (issue #347), `SEAM_OVER_MOTION` (the body-root bar, issue #686); anything else is `SCENE_ACCEPT_KNOWN`. When `check/check.json` declares `spec: "rig-parts-check/1"`, `compose` reads its `bar_outcomes` for the bars whose outcome status is `FAIL` in the report's order (issue #1373); without that spec it keeps the legacy `barsNotMet` reading. A build is taken when every bar its `check.json` failed is named; its gate red, a declared requirement not PASS, or a bar not named is `SCENE_BUILD_GREEN` as before. **It is for looking, not for shipping:** the `[compose]` line says which failing bars were accepted, `scene.json` records them as the character's `accepted`, the composed rig's own check measures them again against each bound manifest and reports them as it finds them, and the run exits 1 even when that check is PASS (for example on a stub build with no `parts/`, where `no-parts` bars say SKIP). A list that accepts nothing — every build green — composes to the bytes a scene without one writes |
|
|
8178
8198
|
| `animations` | optional map by scene clip name, each value a rigc `MotionAnimation` (`duration`, `tracks`, optional `loop`, `note`, and core timeline collections). Names resolve against the final scene without another prefix or unit conversion: `root`, `plate`, declared named plate bones and `<id>:<bone>`, including generated dials. Keying `root` moves the whole scene. A new name adds a clip. `idle` appends the resulting tracks and timelines to the composed idle, preserving character metadata and physics constraints. Its duration must exactly equal the composed idle (`SCENE_DURATION_AGREES`, or `SCENE_REPEAT_DURATION` when a character opts in to repetition). Imported animation names are reserved (`SCENE_ANIMATION_NAME_FREE`). See `repeats` for period-authored tracks and deforms |
|
|
8179
8199
|
| `repeats` | optional map from authored take names to safe integers of at least 2 (issue #1615). Repeats the scene-authored tracks, deforms and camera keys on a single period clock. `animations.<take>.duration` is the whole take duration. `scene.json` echoes the map in declared order as its final top-level key and omits it when absent. See [Physics clips and scene repeats](#physics-clips-and-scene-repeats-issue-1615) |
|
|
8180
8200
|
| `camera` | optional keyed view over composed animation names. See [Keyed scene camera](#keyed-scene-camera-issue-1596) for the camera clock, coverage requirements and opt-in report version |
|
|
@@ -8415,22 +8435,19 @@ What is composed:
|
|
|
8415
8435
|
by the turn contract.
|
|
8416
8436
|
- **Gated as `rig` gates its own, and where outputs are written:** `rigc build --profile rig-play --pack`, the
|
|
8417
8437
|
compile and the packed pages on disk, in a scratch directory; `--out` receives
|
|
8418
|
-
`rig/` (`rig.json`, `motion.json`, `images/` — the composed rig spec, not the
|
|
8438
|
+
`rig/` (`rig.json`, `motion.json`, `mesh_report.json` when any character build carries one, `images/` — the composed rig spec, not the
|
|
8419
8439
|
compiled Spine skeleton) and `scene.json` only when it is
|
|
8420
8440
|
green. `--page-size <px>` (a positive integer, refused as `PACK_PAGE_SIZE`
|
|
8421
8441
|
otherwise; issue #1352) is forwarded to both packed builds and recorded as
|
|
8422
8442
|
`pack_mode.page_size` in `scene.json` and `check/check.json` only when given;
|
|
8423
8443
|
without it, rigc's default 2048 px page and padding 2 on each side bound any
|
|
8424
8444
|
plate or region side to at most 2044 px before `CE_ATLAS_REGION_EXCEEDS_PAGE`
|
|
8425
|
-
(`COMPOSE_RIGC_GREEN`). Then `check` runs over `rig/` into `check/`,
|
|
8426
|
-
build: **the compiled Spine model and packed atlas (`skeleton.json`,
|
|
8445
|
+
(`COMPOSE_RIGC_GREEN`). Then `check` runs over `rig/` into `check/`, forwarding each bound character's manifest (`parts.json` and `parts/`), its hash-bound `check/check.json` part exceptions (`not_swinging`, `rises`, `rests`, `not_planted`, attributed under `forwarded_from_build`), and `rig/mesh_report.json` so slot and bone names resolve under `<id>:`, part boxes map through `offset` and `scale` onto the scene canvas, `LIMB_ONE_BONE` reads contour `region_bones` from `<out>/rig/mesh_report.json`, `STILL_REGIONS_DARK` excludes slider-driven idle slots (naming each slot and dial under `slider_driven_slots`), and per-character figures are recorded under `check.json`'s `characters.<id>` (issue #1679): **the compiled Spine model and packed atlas (`skeleton.json`,
|
|
8427
8446
|
`skeleton.model.json`, `skeleton.atlas`, `skeleton.png`) are written only under
|
|
8428
|
-
`<out>/check/build/`** (there is no `<out>/build/` at the root).
|
|
8429
|
-
`TIP_OVER_ROOT`, `STILL_REGIONS_DARK` and `RECOMPOSITE_HOLES` say SKIP and why,
|
|
8430
|
-
and the gate, the loop, `CHAIN_LAG` and `TEXTURE_STRETCH` measure.
|
|
8447
|
+
`<out>/check/build/`** (there is no `<out>/build/` at the root). Only when no manifest is bound (standalone `check` without `--parts`, or a stub build without `parts/`) do the parts-backed bars say `SKIP` with `no-parts`.
|
|
8431
8448
|
`--requirements` is forwarded, and its names are `<id>:<name>`. Every bar and
|
|
8432
|
-
requirement measures the composed rig
|
|
8433
|
-
`scale
|
|
8449
|
+
requirement measures the composed rig on the scene canvas after each character's
|
|
8450
|
+
`scale`, while per-character rig-px bars normalize counts by the effective character frame scale: a ratio (`TEXTURE_STRETCH`'s edge against its rest length) or an angle
|
|
8434
8451
|
(`CHAIN_LAG`, a `range` in degrees) does not move with it, while a requirement's
|
|
8435
8452
|
px figures and its px bar are canvas px — a character composed at 0.5 shows half
|
|
8436
8453
|
the px its own `build` measured.
|
|
@@ -8466,9 +8483,7 @@ character, it does not resample its art); a non-uniform scale, a flip or a rotat
|
|
|
8466
8483
|
of a character; any order, overlap or occlusion inferred from an image — the order is the author's,
|
|
8467
8484
|
and a per-pixel vote that holds for a still pose would not hold once the bodies
|
|
8468
8485
|
move; person detection, segmentation, isolation or occlusion completion (each
|
|
8469
|
-
character's input arrives isolated); a
|
|
8470
|
-
read See-through tags are measured per character by its own `build`, not over the
|
|
8471
|
-
scene; a rig `build` did not write.
|
|
8486
|
+
character's input arrives isolated); a single merged `parts.json` file (composed `check` reads each character's own manifest under `<id>:` and maps its boxes through `offset` and `scale`); a rig `build` did not write.
|
|
8472
8487
|
|
|
8473
8488
|
#### Compose output profiles (issue #1610)
|
|
8474
8489
|
|
|
@@ -11153,8 +11168,8 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
|
|
|
11153
11168
|
<!-- check-row-table:begin -->
|
|
11154
11169
|
| Row family | Registered JSON paths | row_scope | row_kind | row_subjects (producer expression) | Producer |
|
|
11155
11170
|
| --- | --- | --- | --- | --- | --- |
|
|
11156
|
-
| `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:
|
|
11157
|
-
| `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:
|
|
11171
|
+
| `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:4151](../src/check.ts#L4151) |
|
|
11172
|
+
| `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:4111](../src/check.ts#L4111) |
|
|
11158
11173
|
| `ART_JOINT_DISTANCE.joints` | `ART_JOINT_DISTANCE.joints` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [artjoints.ts:86](../src/artjoints.ts#L86) |
|
|
11159
11174
|
| `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) |
|
|
11160
11175
|
| `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) |
|
|
@@ -11170,55 +11185,55 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
|
|
|
11170
11185
|
| `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) |
|
|
11171
11186
|
| `BOUNDARY_COLOUR_STEP.over` | `BOUNDARY_COLOUR_STEP.over` | 'pair' | finding | r.parts | [boundarycolour.ts:221](../src/boundarycolour.ts#L221) |
|
|
11172
11187
|
| `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) |
|
|
11173
|
-
| `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:
|
|
11188
|
+
| `CLOTH_SETTLES.rows` | `CLOTH_SETTLES.rows` | 'rig' | finding when speeds.length > 0 && s < speeds.length; otherwise evidence | [] | [check.ts:6625](../src/check.ts#L6625) |
|
|
11174
11189
|
| `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) |
|
|
11175
|
-
| `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:
|
|
11176
|
-
| `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:
|
|
11177
|
-
| `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:
|
|
11190
|
+
| `FEET_STAY_LEVEL.feet` | `FEET_STAY_LEVEL.feet`; `characters.*.FEET_STAY_LEVEL.feet` | 'part' | finding when row.status === 'FAIL'; otherwise evidence | [row.part] | [check.ts:4353](../src/check.ts#L4353) |
|
|
11191
|
+
| `FEET_STAY_LEVEL.feet[].worst.through` | `FEET_STAY_LEVEL.feet[].worst.through`; `characters.*.FEET_STAY_LEVEL.feet[].worst.through` | 'rig' | evidence | [] | [check.ts:4328](../src/check.ts#L4328) |
|
|
11192
|
+
| `LIMB_ONE_BONE.parts` | `LIMB_ONE_BONE.parts`; `characters.*.LIMB_ONE_BONE.parts` | 'part' | finding when fail; otherwise evidence | [p.name] | [check.ts:4655](../src/check.ts#L4655) |
|
|
11178
11193
|
| `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) |
|
|
11179
11194
|
| `PART_SUPPORT_REPORT.raw_pairs` | `PART_SUPPORT_REPORT.raw_pairs` | 'pair' | evidence | [F.name, B.name] | [coincide.ts:137](../src/coincide.ts#L137) |
|
|
11180
11195
|
| `PART_SUPPORT_REPORT.unowned.regions` | `PART_SUPPORT_REPORT.unowned.regions` | 'rig' | finding | [] | [coincide.ts:172](../src/coincide.ts#L172) |
|
|
11181
|
-
| `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) |
|
|
11182
|
-
| `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:
|
|
11183
|
-
| `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:
|
|
11184
|
-
| `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:
|
|
11185
|
-
| `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:
|
|
11186
|
-
| `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:
|
|
11187
|
-
| `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b] | [check.ts:
|
|
11188
|
-
| `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b] | [check.ts:
|
|
11189
|
-
| `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) |
|
|
11190
|
-
| `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:
|
|
11191
|
-
| `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:
|
|
11192
|
-
| `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:
|
|
11196
|
+
| `PHYSICS_CONTRIBUTES.rows` | `PHYSICS_CONTRIBUTES.rows`; `characters.*.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) |
|
|
11197
|
+
| `SEAM_OVER_MOTION.pairs` | `SEAM_OVER_MOTION.pairs`; `characters.*.SEAM_OVER_MOTION.pairs` | 'pair' | evidence | [p.a, p.b] | [check.ts:6022](../src/check.ts#L6022) |
|
|
11198
|
+
| `SEAM_OVER_MOTION.required.pairs` | `SEAM_OVER_MOTION.required.pairs`; `characters.*.SEAM_OVER_MOTION.required.pairs` | 'pair' | finding when open > 0; otherwise evidence | [p.a, p.b] | [check.ts:5329](../src/check.ts#L5329) |
|
|
11199
|
+
| `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames`; `characters.*.SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5321](../src/check.ts#L5321) |
|
|
11200
|
+
| `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured`; `characters.*.SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5995](../src/check.ts#L5995) |
|
|
11201
|
+
| `SEAM_OVER_MOTION.rows` | `SEAM_OVER_MOTION.rows`; `characters.*.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:5952](../src/check.ts#L5952), [check.ts:6028](../src/check.ts#L6028) |
|
|
11202
|
+
| `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells`; `characters.*.SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b]; subjects | [check.ts:5965](../src/check.ts#L5965), [check.ts:12485](../src/check.ts#L12485) |
|
|
11203
|
+
| `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons`; `characters.*.SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b]; subjects | [check.ts:5955](../src/check.ts#L5955), [check.ts:12476](../src/check.ts#L12476) |
|
|
11204
|
+
| `SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | `SEAM_OVER_MOTION.rows[].pose_at_worst.joints`; `characters.*.SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | 'rig' | evidence | [] | [motionseampose.ts:53](../src/motionseampose.ts#L53) |
|
|
11205
|
+
| `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows`; `characters.*.SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5949](../src/check.ts#L5949) |
|
|
11206
|
+
| `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints`; `characters.*.SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4983](../src/check.ts#L4983), [check.ts:5029](../src/check.ts#L5029) |
|
|
11207
|
+
| `SEAM_OVER_RANGE.joints[].poses` | `SEAM_OVER_RANGE.joints[].poses`; `characters.*.SEAM_OVER_RANGE.joints[].poses` | 'part' | finding when fail; otherwise evidence | [j.part] | [check.ts:5027](../src/check.ts#L5027) |
|
|
11193
11208
|
| `SETUP_MATCHES_PAINTING.regions` | `SETUP_MATCHES_PAINTING.regions` | 'rig' | finding when status === 'FAIL'; otherwise evidence | [] | [setuppainting.ts:175](../src/setuppainting.ts#L175) |
|
|
11194
11209
|
| `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) |
|
|
11195
11210
|
| `SETUP_SEAM_TRANSMISSION.rows` | `SETUP_SEAM_TRANSMISSION.rows` | 'pair' | evidence | [under, over] | [coincide.ts:453](../src/coincide.ts#L453) |
|
|
11196
11211
|
| `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) |
|
|
11197
11212
|
| `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) |
|
|
11198
|
-
| `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:
|
|
11199
|
-
| `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:
|
|
11200
|
-
| `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:
|
|
11201
|
-
| `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:
|
|
11202
|
-
| `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:
|
|
11203
|
-
| `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:
|
|
11204
|
-
| `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:
|
|
11205
|
-
| `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:
|
|
11206
|
-
| `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:
|
|
11207
|
-
| `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:
|
|
11208
|
-
| `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:
|
|
11209
|
-
| `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:
|
|
11210
|
-
| `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:
|
|
11211
|
-
| `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:
|
|
11212
|
-
| `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:
|
|
11213
|
-
| `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:
|
|
11214
|
-
| `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:
|
|
11215
|
-
| `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:
|
|
11216
|
-
| `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:
|
|
11217
|
-
| `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:
|
|
11218
|
-
| `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:
|
|
11219
|
-
| `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:
|
|
11220
|
-
| `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:
|
|
11221
|
-
| `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:
|
|
11213
|
+
| `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing`; `characters.*.STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:10144](../src/check.ts#L10144) |
|
|
11214
|
+
| `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots`; `characters.*.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:10130](../src/check.ts#L10130), [check.ts:10135](../src/check.ts#L10135) |
|
|
11215
|
+
| `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read`; `characters.*.STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4574](../src/check.ts#L4574) |
|
|
11216
|
+
| `STRESS_OFF_CHAIN.per_part` | `STRESS_OFF_CHAIN.per_part`; `characters.*.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:4562](../src/check.ts#L4562) |
|
|
11217
|
+
| `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain`; `characters.*.STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4562](../src/check.ts#L4562) |
|
|
11218
|
+
| `STRESS_OFF_CHAIN.per_part[].poses` | `STRESS_OFF_CHAIN.per_part[].poses`; `characters.*.STRESS_OFF_CHAIN.per_part[].poses` | 'part' | evidence; finding when shown > STRESS_RIGID; otherwise evidence | [r.part] | [check.ts:4530](../src/check.ts#L4530), [check.ts:4548](../src/check.ts#L4548) |
|
|
11219
|
+
| `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:11340](../src/check.ts#L11340), [check.ts:11347](../src/check.ts#L11347) |
|
|
11220
|
+
| `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts`; `characters.*.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:9383](../src/check.ts#L9383), [check.ts:9394](../src/check.ts#L9394), [check.ts:9420](../src/check.ts#L9420), [check.ts:9431](../src/check.ts#L9431) |
|
|
11221
|
+
| `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:7129](../src/check.ts#L7129) |
|
|
11222
|
+
| `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:7140](../src/check.ts#L7140) |
|
|
11223
|
+
| `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6446](../src/check.ts#L6446) |
|
|
11224
|
+
| `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:8332](../src/check.ts#L8332) |
|
|
11225
|
+
| `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8694](../src/check.ts#L8694) |
|
|
11226
|
+
| `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8694](../src/check.ts#L8694) |
|
|
11227
|
+
| `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:8694](../src/check.ts#L8694) |
|
|
11228
|
+
| `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5318](../src/check.ts#L5318) |
|
|
11229
|
+
| `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise []; resolved piece for setupTop ?? ''; otherwise [] | [check.ts:5278](../src/check.ts#L5278), [check.ts:12450](../src/check.ts#L12450) |
|
|
11230
|
+
| `seam_pairs` | `seam_pairs`; `seam_scope.whole_pairs`; `sets.*.seam_pairs`; `sets.*.seam_scope.whole_pairs`; `characters.*.seam_pairs`; `characters.*.seam_scope.whole_pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:2909](../src/check.ts#L2909) |
|
|
11231
|
+
| `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes`; `characters.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2387](../src/check.ts#L2387) |
|
|
11232
|
+
| `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states`; `characters.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2472](../src/check.ts#L2472) |
|
|
11233
|
+
| `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs`; `characters.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:8130](../src/check.ts#L8130) |
|
|
11234
|
+
| `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs`; `characters.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2843](../src/check.ts#L2843) |
|
|
11235
|
+
| `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art`; `characters.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:2844](../src/check.ts#L2844) |
|
|
11236
|
+
| `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:11283](../src/check.ts#L11283) |
|
|
11222
11237
|
|
|
11223
11238
|
| Serialized type path | Reason for schema exclusion |
|
|
11224
11239
|
| --- | --- |
|
|
@@ -11233,6 +11248,13 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
|
|
|
11233
11248
|
| `TIP_OVER_ROOT.*` | Open judgement figures; every emitted nested object row is schema checked. |
|
|
11234
11249
|
| `requirements.lines.*.*` | Open requirement figures; the dictionary rows and nested object arrays are schema checked. |
|
|
11235
11250
|
| `sets.*.RECOMPOSITE_HOLES.*` | Open alternate reported figures; every emitted nested object row is schema checked. |
|
|
11251
|
+
| `characters.*.BLINK_NO_HOLE.*` | Open character judgement figures; every emitted nested object row is schema checked. |
|
|
11252
|
+
| `characters.*.BREATH_VISIBLE.*` | Open character judgement figures; every emitted nested object row is schema checked. |
|
|
11253
|
+
| `characters.*.RECOMPOSITE_HOLES.*` | Open character reported figures; every emitted nested object row is schema checked. |
|
|
11254
|
+
| `characters.*.SETUP_POSE_VS_SOURCE.*` | Open character reported figures; every emitted nested object row is schema checked. |
|
|
11255
|
+
| `characters.*.STILL_REGIONS_DARK.*` | Open character judgement figures; every emitted nested object row is schema checked. |
|
|
11256
|
+
| `characters.*.STRESS_OFF_CHAIN.*` | Open character judgement figures; every emitted nested object row is schema checked. |
|
|
11257
|
+
| `characters.*.TIP_OVER_ROOT.*` | Open character judgement figures; every emitted nested object row is schema checked. |
|
|
11236
11258
|
| `loop_seam.series` | Direct samples in the met rigc-loop-seam/1 report keep their native Core fields. Nested object arrays remain schema checked. |
|
|
11237
11259
|
<!-- check-row-table:end -->
|
|
11238
11260
|
|
package/docs/STABILITY.md
CHANGED
|
@@ -803,7 +803,7 @@ part name, `[i]` an entry of a list):
|
|
|
803
803
|
- **generation.sampler** — required: `steps`, `cfg`, `sampler`, `scheduler`
|
|
804
804
|
- **generation.control** — required: `skeleton`, `strength`, `end_percent`; optional: `model`
|
|
805
805
|
- **generation.control.skeleton**, the pose file it names when it is no built-in — required: `width`, `height`, `points`
|
|
806
|
-
- **seethrough** — required: `resolution
|
|
806
|
+
- **seethrough** — required: `resolution`; optional: `steps`, `seed`, `offload` (read by comfy seethrough only), `head_box`, `arm_split`
|
|
807
807
|
- **seethrough.arm_split** — required: `order`, and one of `x` or `line` (issue #439)
|
|
808
808
|
- **assemble** — required: `rig_scale`, `plan` (from plain `assemble` on); optional: `seam`, `project`, `ground`, `extend_below_crop`, `patches`, `cuts`, `alternates`, `head_face_underfill`, `yield_refused`, `stage_map`, `keep_under_occluders`, `require_hidden_extent`, `extend_painting`, `edge_splits`, `take`, `editor_receipts`, `edited_parts`, `occluders`. The yield setting accepts a boolean or a nonempty list of final yielding output part names. The list is bound to the assembly config reading.
|
|
809
809
|
- **assemble.edge_splits[i]** — required: `over`, `under`, `band`
|
|
@@ -1557,13 +1557,14 @@ pairs and the unmeasured render rows. [Motion seam coverage](AUTHORING.md#motion
|
|
|
1557
1557
|
| `SETUP_MATCHES_PAINTING` | Native-grid source vs rendered setup under authored regional mismatch limits | `undeclared`, `no-limit` (at least one region lacks a limit and none fail) |
|
|
1558
1558
|
| `BOUNDARY_COLOUR_STEP` | Authored allowance for excess colour step between parts in idle | `undeclared` |
|
|
1559
1559
|
| `BEHIND_PART_SEAMS` | Authored thresholds for standing at setup and motion-opened rear seam cells, including `motion_opened` at requested turn poses | `undeclared`, `no-complete-threshold-reading` (including no eligible pairs or an incomplete non-failing reading) |
|
|
1560
|
-
| `SEAM_OVER_MOTION` | Body-root gap plus under-owned ghost floor and required zero-background seam readings | `no-root-gate`, `no-animation`, `no-complete-root-reading` (root evidence unmeasured) |
|
|
1560
|
+
| `SEAM_OVER_MOTION` | Body-root gap plus under-owned ghost floor and required zero-background seam readings | `no-parts`, `no-root-gate`, `no-animation`, `no-complete-root-reading` (root evidence unmeasured) |
|
|
1561
1561
|
|
|
1562
1562
|
| SEAM_OVER_MOTION precedence | Declared outcome |
|
|
1563
1563
|
| --- | --- |
|
|
1564
1564
|
| Root FAIL or required FAIL | FAIL |
|
|
1565
1565
|
| Otherwise required PASS | PASS |
|
|
1566
1566
|
| No required block, root PASS | PASS |
|
|
1567
|
+
| No parts manifest read | SKIP with `no-parts` |
|
|
1567
1568
|
| No required block, root SKIP | SKIP with `no-animation` or `no-complete-root-reading` |
|
|
1568
1569
|
| Neither root nor required gate present | SKIP with `no-root-gate` |
|
|
1569
1570
|
|
|
@@ -1573,6 +1574,50 @@ Compose reads `bar_outcomes` on a report that declares this spec (issue
|
|
|
1573
1574
|
readers, the historical interpretation is kept, including for reports
|
|
1574
1575
|
written before this version.
|
|
1575
1576
|
|
|
1577
|
+
#### Composed character manifest block (`characters.<id>`, issue #1679)
|
|
1578
|
+
|
|
1579
|
+
When `check` runs against a composed rig with bound character manifests (every
|
|
1580
|
+
`compose` run whose character builds carry `<build>/parts/`, and standalone
|
|
1581
|
+
`rig-parts check --rig <composed>/rig --parts <char-build> [--source <painting.png>]`),
|
|
1582
|
+
`compose` forwards prefixed `<build>/rig/mesh_report.json` entries to
|
|
1583
|
+
`<out>/rig/mesh_report.json` and `check` resolves each character's manifest under
|
|
1584
|
+
`<id>:` with part boxes mapped through `offset` and `scale` onto the scene canvas.
|
|
1585
|
+
|
|
1586
|
+
`check.json` keeps its top-level `spec`, `bar_outcomes`, `build` and `PASS`
|
|
1587
|
+
contract and adds `characters` immediately before `PASS`, keyed in scene
|
|
1588
|
+
character declaration order. Each `characters.<id>` object writes keys in this
|
|
1589
|
+
fixed order:
|
|
1590
|
+
|
|
1591
|
+
1. `offset` (`[x, y]`), and `scale` (present only when `scale !== 1`).
|
|
1592
|
+
2. `bar_outcomes`: the 10-bar character map in fixed order (`seam`,
|
|
1593
|
+
`BREATH_VISIBLE`, `BLINK_NO_HOLE`, `TIP_OVER_ROOT`, `STILL_REGIONS_DARK`,
|
|
1594
|
+
`FEET_STAY_LEVEL`, `STRESS_OFF_CHAIN`, `LIMB_ONE_BONE`, `SEAM_OVER_RANGE`,
|
|
1595
|
+
`SEAM_OVER_MOTION`).
|
|
1596
|
+
3. `seam_mean`, `seam_px_over_40`, `seam_px_over_80`, `seam_frame_scale`,
|
|
1597
|
+
`seam_scope`, optional `seam_border`, optional `seam_pairs`.
|
|
1598
|
+
4. `BREATH_VISIBLE`, `BLINK_NO_HOLE`, `TIP_OVER_ROOT`, `STILL_REGIONS_DARK`.
|
|
1599
|
+
5. Optional `FEET_STAY_LEVEL`, `STRESS_OFF_CHAIN`, `LIMB_ONE_BONE`,
|
|
1600
|
+
`SEAM_OVER_RANGE`, `SEAM_OVER_MOTION`, `PHYSICS_CONTRIBUTES`.
|
|
1601
|
+
6. `RECOMPOSITE_HOLES`, and optional `SETUP_POSE_VS_SOURCE` (under standalone
|
|
1602
|
+
`--source`).
|
|
1603
|
+
|
|
1604
|
+
Top-level `bar_outcomes` aggregates character outcomes across all bound
|
|
1605
|
+
characters (`FAIL` if any character fails, else `PASS` if any character passes,
|
|
1606
|
+
else `SKIP` preferring an active reading skip reason over an inapplicable one).
|
|
1607
|
+
When `compose` binds a character build's `check/check.json` by hash, any
|
|
1608
|
+
`declared_not_swinging`, `declared_rises`, `declared_rests`, and
|
|
1609
|
+
`declared_not_planted` entries recorded there are forwarded under `<id>:`,
|
|
1610
|
+
unioned with any scene `--requirements` file, and attributed in
|
|
1611
|
+
`forwarded_from_build` on the bar's console line and in `check.json` (naming the
|
|
1612
|
+
character's `build`); if forwarding leaves no measurable swinging part,
|
|
1613
|
+
`TIP_OVER_ROOT` is `SKIP` (`no-reading`), never `PASS`. On `STILL_REGIONS_DARK`,
|
|
1614
|
+
slots driven by a slider whose input bone channel the idle keys away from rest
|
|
1615
|
+
(including `face`-tagged slots) are added to `driven_slots` and listed under
|
|
1616
|
+
`face.slider_driven_slots` (`slot -> [dial, ...]`); if every still slot of a
|
|
1617
|
+
character is excluded across `face` and `feet`, `STILL_REGIONS_DARK` is `SKIP`
|
|
1618
|
+
(`no-eligible-region`), never `PASS`. Single-character non-composed builds omit
|
|
1619
|
+
`characters`.
|
|
1620
|
+
|
|
1576
1621
|
#### Slider stretch diagnostic (issue #1627)
|
|
1577
1622
|
|
|
1578
1623
|
Stock `check.json` gains `slider_stretch` immediately after `TEXTURE_STRETCH`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rig-parts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.0",
|
|
4
4
|
"description": "AI-authored 2D character parts from one anime painting and its See-through layer decomposition: measured parts, weighted-mesh rig specs, verified through rig-c before anything is written. A CLI for agents that cannot see the image.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|