@melite/estate-queue 0.2.0-alpha → 0.2.2-alpha

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.
Files changed (61) hide show
  1. package/README.md +0 -5
  2. package/lib/cardsCompose.d.ts +31 -0
  3. package/lib/cardsCompose.js +55 -0
  4. package/lib/cardsRegistry.d.ts +5 -2
  5. package/lib/cardsRegistry.js +160 -3
  6. package/lib/discloseRegistry.d.ts +5 -0
  7. package/lib/discloseRegistry.js +3 -3
  8. package/lib/flowsData.d.ts +77 -21
  9. package/lib/flowsData.js +156 -21
  10. package/lib/flowsRegistryRows.d.ts +0 -4
  11. package/lib/flowsRegistryRows.js +137 -351
  12. package/lib/index.d.ts +0 -1
  13. package/lib/index.js +0 -4
  14. package/lib/loadPlane.d.ts +46 -4
  15. package/lib/loadPlane.js +107 -7
  16. package/lib/loadRegistry.js +9 -2
  17. package/lib/managePlane.d.ts +5 -0
  18. package/lib/managePlane.js +404 -49
  19. package/lib/managePreflight.js +38 -6
  20. package/lib/manageProbe.d.ts +35 -0
  21. package/lib/manageProbe.js +110 -0
  22. package/lib/queueLock.js +19 -10
  23. package/lib/queueResurrect.d.ts +0 -3
  24. package/lib/queueResurrect.js +0 -3
  25. package/lib/queueRetry.d.ts +12 -10
  26. package/lib/queueRetry.js +2 -4
  27. package/lib/queueSidecar.d.ts +12 -0
  28. package/lib/queueSidecar.js +15 -0
  29. package/lib/queueSubmit.d.ts +4 -1
  30. package/lib/queueSubmit.js +28 -5
  31. package/lib/runsExecute.d.ts +16 -1
  32. package/lib/runsExecute.js +63 -45
  33. package/lib/runsGates.d.ts +11 -3
  34. package/lib/runsGates.js +11 -3
  35. package/lib/runsList.d.ts +59 -3
  36. package/lib/runsList.js +217 -36
  37. package/lib/runsRegistry.d.ts +58 -3
  38. package/lib/runsRegistry.js +479 -92
  39. package/lib/runsStart.d.ts +6 -4
  40. package/lib/runsStart.js +32 -25
  41. package/lib/runsTypes.d.ts +19 -1
  42. package/lib/runsTypes.js +40 -3
  43. package/lib/runsValidate.d.ts +1 -0
  44. package/lib/runsValidate.js +5 -0
  45. package/lib/runsValidateArms.js +25 -0
  46. package/lib/runsValidateServe.js +15 -12
  47. package/lib/runsValidateShared.d.ts +8 -10
  48. package/lib/runsValidateShared.js +41 -15
  49. package/lib/runsValidateStages.d.ts +1 -1
  50. package/lib/runsValidateStages.js +90 -50
  51. package/lib/skillAuthored.d.ts +50 -0
  52. package/lib/skillAuthored.js +178 -0
  53. package/lib/skillPlane.d.ts +40 -2
  54. package/lib/skillPlane.js +63 -13
  55. package/lib/skillRegistry.d.ts +24 -1
  56. package/lib/skillRegistry.js +69 -5
  57. package/lib/skillRows.d.ts +13 -3
  58. package/lib/skillRows.js +42 -3
  59. package/package.json +24 -14
  60. package/lib/resurrect.d.ts +0 -6
  61. package/lib/resurrect.js +0 -18
@@ -58,137 +58,18 @@ export const ANNY_PARAMS = {
58
58
  tool: null,
59
59
  skillRefs: [],
60
60
  };
61
- export const AUDIO_NATIVE_TTS = {
62
- id: "audio-native-tts",
63
- description: "Phase 1b gate: Qwen3-TTS 12Hz CustomVoice via the live melite-audio-nodes " +
64
- "island pack in the serving ComfyUI container (pure-ComfyUI audio lane; " +
65
- "retires the C audio engine for TTS). RUNS on the {flow:} door " +
66
- "(2026-10-04: the VALIDATE-ONLY stamp is GONE — the start door " +
67
- "composes the row's card stages through the card plane); the {model:} " +
68
- "door drives the same card directly.",
69
- stages: [
70
- plainStage({
71
- id: "tts",
72
- engine: CARD_PLANE_ENGINE,
73
- card: "tts",
74
- description: "Qwen3-TTS text to speech via the tts card",
75
-
76
- // merge-hole cure): the wiring law spells every wired channel
77
- // `$<channel>`, and the merge resolves a $spell against links ∪
78
- // request INITIALS — so a channel `text` fed by initial("prompt")
79
- // spelled `$text` resolved against neither and the run died at
80
- // the merge. anny-hmr names all three the same (photo/photo/
81
- // $photo); so does this row now.
82
- inputs: { text: initial("text") },
83
- // every wired input needs its expected Kind (kindsOk's own
84
- // law) — this row shipped without it and only the LIVE
85
- // /v1/flows/validate path tripped it; completed at the
86
-
87
- // the class (kindsOk over every registry flow)
88
- expected: { text: "text" },
89
- outputs: { wav: "audio" },
90
- cardIo: { wav: "audio" },
91
- // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no seed stamp —
92
- // the tts card's own default (-1, random) rules at compose and
93
- // the seed-sentinel gate mints a fresh take per run, the same
94
- // take-freshness a GUI card stage gets. A stated seed rides the
95
- // declared overlay; the stamp that stood here (seed 42) was a
96
- // second default-write that locked every flow take to 42.
97
- params: { model: "qwen3-tts", text: "$text" },
98
- }),
99
- ],
100
- initialValidators: { text: "text" },
101
- tool: {
102
- name: "speak",
103
- version: 1,
104
- description: "Qwen3-TTS 12Hz CustomVoice speech in one call — text in, wav out " +
105
- "(pure-ComfyUI audio lane).",
106
- properties: {
107
-
108
- // lifts declared validators only, so a `prompt` property over a
109
- // `text` initial would advertise a key the door never reads.
110
- text: {
111
- ptype: "string",
112
- description: "what to say",
113
- default: null,
114
- hasDefault: false,
115
- minimum: null,
116
- maximum: null,
117
- enum: null,
118
- },
119
- // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): the tool publishes
120
- // no seed default — the tts card's own default (-1, fresh mint)
121
- // rules when the caller omits the seed, so a published number
122
- // here would advertise a take-lock the run never composes. The
123
- // overlay stays: a stated seed pins the take.
124
- seed: {
125
- ptype: "integer",
126
- description: "voice sampler seed (omit for a fresh take — the card mints one)",
127
- default: null,
128
- hasDefault: false,
129
- minimum: 0,
130
- maximum: 2147483647,
131
- enum: null,
132
- },
133
- },
134
- required: ["text"],
135
- overlays: [{ param: "seed", stage: "tts", path: ["seed"], choices: null }],
136
- },
137
- skillRefs: [],
138
- };
139
- export const BODY_TO_SOMAX = {
140
- id: "body-to-somax",
141
- description: "Bare body GLB → SOMAX-rigged GLB: the anny→kimodo bridge (the baked " +
142
- "SOMA-77 template weight transfer, standalone-rig mode — no Blender). The " +
143
- "motion studio posts this behind the scenes when a wired body isn't SOMAX; " +
144
- "any bare human mesh (anny bake, TRELLIS, upload) rides the same door. " +
145
- "RUNS on the {flow:} door (2026-10-04: the VALIDATE-ONLY stamp is " +
146
- "GONE — the start door composes the row's card stages through the " +
147
- "card plane); drive the rig card " +
148
- "through the bench or {model:}.",
149
- stages: [
150
- plainStage({
151
- id: "rig",
152
- engine: CARD_PLANE_ENGINE,
153
- card: "rig",
154
- description: "SOMA-77 template weight transfer (barycentric, the autorig pack's " +
155
- "baked function) via the rig card's auto mode — the gem-soma " +
156
- "family's declared rig action composes the KimodoExportFBX segment",
157
- inputs: { glb: initial("glb") },
158
- expected: { glb: "mesh" },
159
- outputs: { body: "mesh" },
160
- cardIo: { body: "mesh" },
161
- // THE LANE IS THE FAMILY'S (the atom vocabulary, stroke 3): this
162
- // stage hand-wired the KimodoExportFBX node in the flow plane —
163
- // a second copy of the gem-soma rig lane. It names the card +
164
- // mode; the family's declared action composes the graph.
165
- // (out_dir/timeout_s are RAW-stage knobs — a card stage's
166
- // params are card-admitted knobs only; the compose door owns
167
- // the run dir and the card's own contract the timeout.)
168
- params: {
169
- mesh_glb: "$glb",
170
- mode: "auto",
171
- preserve_texture: true,
172
- decimate_ratio: 0,
173
- },
174
- }),
175
- ],
176
- initialValidators: { glb: "glb" },
177
- tool: null,
178
- skillRefs: [],
179
- };
180
61
  export const FIT_SEAT = {
181
62
  id: "fit-seat",
182
63
  description: "Seat a static prop onto a SOMAX body under the meld fit laws (the " +
183
64
  "dress/prop verb engine): the meld row assembles in-pack from the verb's " +
184
65
  "own vocabulary, and the request MUST carry `bone` (the bone that " +
185
66
  "carries the prop — the door refuses without it), " +
186
- "FitProp grafts, the turnaround proves.",
67
+ "FitProp grafts — the seated GLB is the verb's output.",
187
68
  stages: [
188
69
  plainStage({
189
70
  id: "seat",
190
71
  engine: CARD_PLANE_ENGINE,
191
- description: "FitRow (knobs -> meld row) -> FitProp (graft) -> proof views",
72
+ description: "FitRow (knobs -> meld row) -> FitProp (graft) — the seated GLB out",
192
73
  // THE TWO FILES AND THE BONE (the rest of the fit row is the
193
74
  // verb's own vocabulary inside the action — stroke-89's law).
194
75
  // The bone is a BARE NAME, so it rides the text initial kind,
@@ -198,8 +79,8 @@ export const FIT_SEAT = {
198
79
  expected: { body: "mesh", prop: "mesh", bone: "text" },
199
80
  // THE VERB'S BACKEND IS A DECLARED ACTION (the atom
200
81
  // vocabulary, stroke 4): the fit-seat verb's nodes compose
201
- // from the fit family's DECL — every knob rides verbatim, the
202
- // proof framing is FIXED in the action build. The row routes;
82
+ // from the fit family's DECL — every knob rides verbatim. The
83
+ // row routes;
203
84
  // the declaration owns the graph (SubActionMod law — the
204
85
 
205
86
  // the sanctioned seam, not a revival).
@@ -233,6 +114,11 @@ export const IMAGE_UPSCALE = {
233
114
  inputs: { prompt: initial("prompt") },
234
115
 
235
116
  expected: { prompt: "text" },
117
+ // THE ROW RENAMES THE CARD'S CHANNEL (the object-forge concept
118
+ // precedent): the image-gen card binds `default` on its
119
+ // flowOutputBindings row; this row renames it to the flow-plane
120
+ // `image` the polish stage wires — kind-matched, one-to-one.
121
+ outputs: { image: "image" },
236
122
  cardIo: { image: "image" },
237
123
  // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no seed stamp on
238
124
  // either stage — the image-gen and upscale-tools cards both
@@ -301,6 +187,42 @@ export const IMAGE_UPSCALE = {
301
187
  maximum: 2147483647,
302
188
  enum: null,
303
189
  },
190
+
191
+ // row published no make-size or polish-resolution face, so
192
+ // every press rode the cards' defaults — the make at
193
+ // krea-2's 1024×1024, the polish at the FHD rail (1080 short
194
+ // side) — the burn's "never doubles": a 2x press needs the
195
+ // make at the operator's class (e.g. 1344×768) and the polish
196
+ // resolution at twice that short side (1536). Declared the
197
+ // seed-overlay way (the twin-stage pattern), bounds the cards'
198
+ // own schemas already enforce.
199
+ width: {
200
+ ptype: "integer",
201
+ description: "make canvas width (16-step, 256–2048; state the operator's class, e.g. 1344)",
202
+ default: null,
203
+ hasDefault: false,
204
+ minimum: 256,
205
+ maximum: 2048,
206
+ enum: null,
207
+ },
208
+ height: {
209
+ ptype: "integer",
210
+ description: "make canvas height (16-step, 256–2048; e.g. 768)",
211
+ default: null,
212
+ hasDefault: false,
213
+ minimum: 256,
214
+ maximum: 2048,
215
+ enum: null,
216
+ },
217
+ resolution: {
218
+ ptype: "integer",
219
+ description: "SeedVR2 target short side (256–2160; 1080 = the FHD rail, state twice the make short side to double, e.g. 1536)",
220
+ default: null,
221
+ hasDefault: false,
222
+ minimum: 256,
223
+ maximum: 2160,
224
+ enum: null,
225
+ },
304
226
  },
305
227
  required: ["image_model", "prompt"],
306
228
  overlays: [
@@ -312,6 +234,9 @@ export const IMAGE_UPSCALE = {
312
234
  },
313
235
  { param: "seed", stage: "make", path: ["seed"], choices: null },
314
236
  { param: "seed", stage: "polish", path: ["seed"], choices: null },
237
+ { param: "width", stage: "make", path: ["width"], choices: null },
238
+ { param: "height", stage: "make", path: ["height"], choices: null },
239
+ { param: "resolution", stage: "polish", path: ["resolution"], choices: null },
315
240
  ],
316
241
  },
317
242
  skillRefs: [
@@ -322,209 +247,13 @@ export const IMAGE_UPSCALE = {
322
247
  "model:z-image:prompt-enhance",
323
248
  ],
324
249
  };
325
- export const VIDEO_EXTEND = {
326
- id: "extend-video",
327
- description: "More seconds of coherent motion appended to a prior clip — the " +
328
- "extend-video flow (report dev_docs/audits/features/" +
329
- "extend-video-flow-2026-11-12.md): ONE card= stage on h3-timeline " +
330
- "whose extend arm renders a fresh continuation anchored on the prior " +
331
- "clip's LAST FRAME (negative batch index, in-graph), at full denoise " +
332
- "under an all-white mask, then joins prior + new through the film " +
333
- "tail's own file law (both parts save at SaveVideo prefixes; " +
334
- "MeliteConcatVideos decodes them back strictly after every save). " +
335
- "RUNS on the {flow:} door (the 2026-10-04 card-stage cure — the row " +
336
- "composes through the card plane as one merged run); the {model:} " +
337
- "door drives the same card with the extend mod armed on the bench.",
338
- stages: [
339
- plainStage({
340
- id: "extend",
341
- engine: CARD_PLANE_ENGINE,
342
- card: "h3-timeline",
343
- description: "The continuation window via the h3-timeline card's extend arm — " +
344
- "prior clip in (VHS force_rate 24), last-frame anchor, fresh " +
345
- "denoise-1 window, joined film out",
346
- inputs: {
347
- source_clip: initial("source_clip"),
348
- extend_prompt: initial("extend_prompt"),
349
- },
350
- // hand-written ONLY because the card's flowKinds declares
351
- // none of these slots (the derivation law's exception clause:
352
- // the row names what the card cannot know about its own
353
- // initials). The numeric seats (extend_seconds, seed) ride NO
354
- // initial — the initial kinds are the closed five
355
- // (photo/video/glb/bake_params/text, flowsData.ts:74) and a
356
- // number refuses every one; worse, a $spell ALWAYS resolves
357
- // to its normalized STRING at the merge, so a numeric spell
358
- // would land "2.33" in the bag and the renderer's typed read
359
- // would silently snap to the default — the exact silent snap
360
- // the grid door exists to kill. Numbers state through the
361
- // WHOLE-BAG params override (applyFlowParamsOverlay: the
362
- // array value replaces the bag raw, JSON numbers intact).
363
- expected: { source_clip: "video", extend_prompt: "text" },
364
- cardIo: { default: "video" },
365
- params: {
366
- model: "h3-timeline",
367
- // THE MOD BAG (params-emit's law: entries ride as an array
368
- // under params.<param_key>, never flattened): the two string
369
- // seats are $spells resolved at the merge against this
370
- // stage's wired initials — both REQUIRED, so every spell
371
- // always resolves (an optional spell would refuse mid-run;
372
- // the requiredInitials door guarantees the body carries
373
- // both). The numeric seats (extend_seconds, seed) ride the
374
- // renderer's own defaults (2.33s / seed 0); a caller pinning
375
- // one passes params: {extend: [{…full bag…}]} and the
376
- // override replaces this stamp wholesale with raw values.
377
- extend: [
378
- {
379
- source_clip: "$source_clip",
380
- extend_prompt: "$extend_prompt",
381
- },
382
- ],
383
- },
384
- }),
385
- ],
386
- initialValidators: { source_clip: "video", extend_prompt: "text" },
387
- requiredInitials: ["source_clip", "extend_prompt"],
388
- tool: {
389
- name: "extend_video",
390
- version: 1,
391
- description: "Append fresh seconds to a prior clip (one call: the prior clip + " +
392
- "a continuation prompt in, the joined extended film out — the prior " +
393
- "plays first, new motion and sound follow). The prior clip is a " +
394
- "stageable video (mp4/webm/mkv/mov/m4v/avi — a /melite-media/runs/ " +
395
- "artifact URL from an earlier run lands) and rides the flow body's " +
396
- "source_clip key. The prompt states MOTION and SOUND picking up " +
397
- "where the clip ends. extend_seconds (default 2.33) must land on " +
398
- "the engine grid (frames become seconds at the schema fps " +
399
- "default: 2.33s = 56f, 3.75s = 90f, 5.17s = 124f, 15.08s = 362f " +
400
- "the largest single window — beyond it the door composes N " +
401
- "uniform windows under the 39f overlap, exact delivery or a " +
402
- "loud refusal; off-grid values refuse at the compose door) and " +
403
- "states " +
404
- "through params: {extend: [{extend_seconds: …, seed: …}]} — " +
405
- "numbers ride the bag, never the flow body.",
406
- properties: {
407
- source_clip: {
408
- ptype: "string",
409
- description: "the prior clip — a stageable video path (a /melite-media/" +
410
- "runs/<run_id>/<file>.mp4 artifact URL from an earlier run " +
411
- "lands; a browser-local blob/data URL refuses — upload first)",
412
- default: null,
413
- hasDefault: false,
414
- minimum: null,
415
- maximum: null,
416
- enum: null,
417
- },
418
- extend_prompt: {
419
- ptype: "string",
420
- description: "the continuation text — MOTION and SOUND for the appended " +
421
- "seconds, picking up exactly where the clip ends",
422
- default: null,
423
- hasDefault: false,
424
- minimum: null,
425
- maximum: null,
426
- enum: null,
427
- },
428
- },
429
- required: ["source_clip", "extend_prompt"],
430
- overlays: [],
431
- },
432
- skillRefs: ["card:h3-timeline"],
433
- };
434
- export const MUSIC_NATIVE = {
435
- id: "music-native",
436
- description: "Music generation as a CARD stage — prompt in, audio out via the music " +
437
- "card (MiniMax Music 3, the boarded row; see GET /v1/models). Repointed " +
438
- "at the mono-engine law by the wiring wall 2026-09-20: the row still " +
439
- "named the retired audio_cpp tier and a card id that no longer exists — " +
440
- "a fossil only the live validate path ever tripped. RUNS on the " +
441
- "{flow:} door (2026-10-04: the VALIDATE-ONLY stamp is GONE — the " +
442
- "start door composes the row's card stages through the card plane); " +
443
- "the {model:} door drives the same card directly.",
444
- stages: [
445
- plainStage({
446
- id: "music",
447
- engine: CARD_PLANE_ENGINE,
448
- card: "music",
449
- description: "MiniMax Music 3 via the music card — the lane composes the doc " +
450
- "into the ComfyUI graph (UNET/CLIP/VAE loaders + the music sampler)",
451
- inputs: { prompt: initial("prompt") },
452
- expected: { prompt: "text" },
453
- cardIo: { default: "audio" },
454
- params: {
455
- prompt: "$prompt",
456
-
457
- // instrumental default — the card bakes an absent/empty lyric
458
- // as "" (MiniMax's instrumental convention), never an absent
459
- // ref, so the seat stays a plain literal (a "$lyrics" spell
460
- // would refuse unresolved on instrumental calls) and the
461
- // stated lyric rides the declared overlay.
462
- lyrics: "",
463
- model: "music3",
464
- // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): no duration
465
- // stamp — the music card's own default (30) rules, the same
466
- // length a GUI card stage gets; the stamp that stood here
467
- // (120) was a second default-write that made agent music
468
- // 120 s while human card music stayed 30 s. A stated duration
469
- // rides the declared overlay.
470
- seed: -1,
471
- },
472
- }),
473
- ],
474
- initialValidators: { prompt: "text" },
475
- tool: {
476
- name: "compose_music",
477
- version: 1,
478
- description: "Music generation in one call (MiniMax Music 3 via the music card) — " +
479
- "prompt in, audio out; state lyrics for sung verses (omit for instrumental).",
480
- properties: {
481
- prompt: {
482
- ptype: "string",
483
- description: "what to play",
484
- default: null,
485
- hasDefault: false,
486
- minimum: null,
487
- maximum: null,
488
- enum: null,
489
- },
490
- // ONE HOME FOR FLOW DEFAULTS (audit 015 C2): the tool publishes
491
- // no duration default — the music card's own default (30)
492
- // rules when the caller omits it, so a published 120 advertised
493
- // a length the run never composes. The bounds stay (the card's
494
- // own declared cap, pointed at, not restated as a default).
495
- duration: {
496
- ptype: "integer",
497
- description: "seconds of music (the card caps 5..360; omit for the card's own default)",
498
- default: null,
499
- hasDefault: false,
500
- minimum: 5,
501
- maximum: 360,
502
- enum: null,
503
- },
504
- lyrics: {
505
- ptype: "string",
506
- description: "song lyrics (verse-form text sung by the music); omit for instrumental",
507
- default: null,
508
- hasDefault: false,
509
- minimum: null,
510
- maximum: null,
511
- enum: null,
512
- },
513
- },
514
- required: ["prompt"],
515
- overlays: [
516
- { param: "duration", stage: "music", path: ["duration"], choices: null },
517
- { param: "lyrics", stage: "music", path: ["lyrics"], choices: null },
518
- ],
519
- },
520
- skillRefs: [],
521
- };
522
250
  export const CRAFT_LOOP = {
523
251
  id: "craft-loop",
524
252
  description: "The agentic craft loop: a named image-capable model route critiques " +
525
253
  "each capture and decides the next act command until done (or the " +
526
254
  "iteration cap). The act leg rides ANY registered engine (comfyui " +
527
- "graphs, mcp:blender tool calls); captures land in the run dir and " +
255
+ "graphs, MCP tool calls on the DSH-profile seats); captures land " +
256
+ "in the run dir and " +
528
257
  "attach to the critique. Driven by the runs door with engine " +
529
258
  "'craft' stages — see flows/craft-loop/agents/AGENT.md.",
530
259
  stages: [
@@ -532,47 +261,97 @@ export const CRAFT_LOOP = {
532
261
  id: "loop",
533
262
  engine: "craft",
534
263
  description: "act → capture → critique → decide (the loop engine)",
535
- inputs: {},
264
+ // THE CHANNEL LAW (the merge-hole cure, born on the retired
265
+ // audio-native-tts wrapper): a $spell in params must name a channel the stage
266
+ // WIRES — the compose judge's pool is inputNames ∪ initial
267
+ // edges, so the three dials ride as initial("…") edges of the
268
+ // same name (agent_prompt/agent_prompt/$agent_prompt, the
269
+ // anny-hmr naming law). The craft executor consumes them
270
+ // through its own $spell fold against the run's request
271
+ // initials (the executor contract's fifth argument) — the
272
+ // edges are the channel truth, the fold the value truth.
273
+ inputs: {
274
+ agent_prompt: initial("agent_prompt"),
275
+ command: initial("command"),
276
+ max_iterations: initial("max_iterations"),
277
+ },
278
+ // hand-written (the derivation law is for card= stages; this
279
+ // is an engine-verb row): brief prose is TEXT, the command
280
+ // object is DATA, the bound is NUM — the closed Kind
281
+ // vocabulary's own words.
282
+ expected: { agent_prompt: "text", command: "data", max_iterations: "num" },
536
283
  outputs: { default: "image" },
537
- params: {},
284
+
285
+ // $spells against the run's request initials — the brief as
286
+ // PROSE (the door's `brief` kind: no path law, the critic
287
+ // reads it as data), the command as a JSON OBJECT (the `json`
288
+ // kind: the {engine, params} row the craft gate owns — NOT
289
+ // the {engine, comfyui, workflow} shape FAILURES pressed),
290
+ // and max_iterations as a NUMBER (digit-strings refuse at the
291
+ // door; the typed value rides the merge unchanged). An
292
+ // omitted max_iterations omits the key — the engine's own
293
+ // default law. `model` stays a LANE DEFAULT this wave (the
294
+ // loop's route id, not a flow initial — documented in
295
+ // flows/craft-loop/agents/AGENT.md).
296
+ params: {
297
+ agent_prompt: "$agent_prompt",
298
+ command: "$command",
299
+ max_iterations: "$max_iterations",
300
+ },
538
301
  }),
539
302
  ],
540
- initialValidators: {},
303
+ // requiredInitials (fit-seat's GOOD shape): the door refuses an
304
+ // absent brief or command BEFORE the run registers — not sixty
305
+ // seconds in at the engine gate. max_iterations is optional (the
306
+ // engine defaults it).
307
+ initialValidators: {
308
+ agent_prompt: "brief",
309
+ command: "json",
310
+ max_iterations: "number",
311
+ },
312
+ requiredInitials: ["agent_prompt", "command"],
541
313
  tool: null,
542
314
  skillRefs: [],
543
315
  };
544
316
  export const CHARACTER_FACTORY = {
545
317
  id: "character-factory",
546
- description: "Photo → clothed character → rigged → animated (the AssetFurnace-shape " +
547
- "chain, estate-native): img-to-mesh lift with the repair knobs ON, rig " +
548
- "auto (SOMA-77, BODY_TO_SOMAX's lane chained), kimodo text→motion " +
549
- "skinned onto the rigged mesh (somax bake in-graph). Multi-stage: " +
550
- "named registry flows DRIVE at start (the curated-lane lift, " +
551
- "runsRegistry's own law — the refusal is hand-authored inline " +
552
- "only); stages also drive one card at a time — see " +
553
- "flows/character-factory/agents/AGENT.md. Creature motion rides the " +
554
- "MOTION phase instead (unimate dataset clip → rig copy bridge, " +
555
- "game-profile MCPs) — documented in the leaf, never a registry " +
556
- "stage (unimate is an MCP, not melite).",
318
+ description: "Supplied body → rigged → animated, one merged run (the character " +
319
+ "factory's rig→motion leg): the body GLB path rides the `mesh` " +
320
+ "initial — the rig lane's own feed, any bare human mesh " +
321
+ "(an anny bake, a TRELLIS lift, an estimator body) — the rig stage " +
322
+ "composes SOMA-77 auto (KimodoExportFBX), and the motion stage " +
323
+ "skins kimodo text→motion onto the rigged mesh in-graph " +
324
+ "(RaySomaxBake; the rigged-path link is STRING→STRING, the one " +
325
+ "hop the served engine carries). THE LIFT HOP IS NOT A STAGE " +
326
+ "(2026-11-01, the rig-hop dead ref, GPU live-receipt C9): the " +
327
+ "photo→mesh lift's served producer (img-to-mesh's Save3DAdvanced) " +
328
+ "is a terminal FILE_3D save — no served node consumes FILE_3D and " +
329
+ "the merge's slot-0 link is the only in-graph transport — so the " +
330
+ "lift rides the img-to-mesh card door or the object-forge row, and " +
331
+ "its artifact path feeds THIS row's `mesh` initial (the run-chain; " +
332
+ "the C6→D8 receipt shape). Multi-stage: named registry flows " +
333
+ "DRIVE at start (the curated-lane lift, runsRegistry's own law — " +
334
+ "the refusal is hand-authored inline only); stages also drive one " +
335
+ "card at a time — see flows/character-factory/agents/AGENT.md. " +
336
+ "Creature motion rides the MOTION phase instead (unimate dataset " +
337
+ "clip → rig copy bridge, game-profile MCPs) — documented in the " +
338
+ "leaf, never a registry stage (unimate is an MCP, not melite).",
557
339
  stages: [
558
- plainStage({
559
- id: "lift",
560
- engine: CARD_PLANE_ENGINE,
561
- card: "img-to-mesh",
562
- description: "Photo → textured mesh via the img-to-mesh card (repair knobs ON)",
563
- inputs: { photo: initial("photo") },
564
-
565
- expected: { photo: "image" },
566
- outputs: { mesh: "mesh" },
567
- cardIo: { mesh: "mesh" },
568
- params: { model: "pixal3d", input_image: "$photo" },
569
- }),
570
340
  plainStage({
571
341
  id: "rig",
572
342
  engine: CARD_PLANE_ENGINE,
573
343
  card: "rig",
574
- description: "SOMA-77 auto-rig via the rig card (BODY_TO_SOMAX's lane, chained)",
575
- inputs: { mesh: fromStage("lift", "mesh") },
344
+ // THE SEAT IS THE INITIAL (the re-aim): the rig hop's mesh
345
+ // rides a GLB path initial, exactly the lane the retired
346
+ // body-to-somax wrapper served live — an initial substitutes as a STRING value at
347
+ // the merge, so the carrier (PrimitiveString) is type-clean.
348
+ // The old in-graph `mesh: fromStage("lift", "mesh")` wire is
349
+ // the dead ref: the lift's bound producer slot is FILE_3D,
350
+ // and the engine refuses the STRING carrier input loud
351
+ // (silently dropping the downstream KimodoExportFBX +
352
+ // RaySomaxBake outputs — the C9 class).
353
+ description: "SOMA-77 auto-rig via the rig card (BODY_TO_SOMAX's lane, on the supplied body)",
354
+ inputs: { mesh: initial("mesh") },
576
355
  expected: { mesh: "mesh" },
577
356
  outputs: { body: "mesh" },
578
357
  cardIo: { body: "mesh" },
@@ -594,8 +373,8 @@ export const CHARACTER_FACTORY = {
594
373
  params: { model: "kimodo", prompt: "$prompt", preview_glb: "$preview" },
595
374
  }),
596
375
  ],
597
- initialValidators: { photo: "photo", prompt: "text" },
598
- requiredInitials: ["photo", "prompt"],
376
+ initialValidators: { mesh: "glb", prompt: "text" },
377
+ requiredInitials: ["mesh", "prompt"],
599
378
  tool: null,
600
379
  skillRefs: [],
601
380
  };
@@ -618,6 +397,13 @@ export const OBJECT_FORGE = {
618
397
  inputs: { prompt: initial("prompt") },
619
398
 
620
399
  expected: { prompt: "text" },
400
+ // THE ROW RENAMES THE CARD'S CHANNEL (the character-factory
401
+ // lift/rig precedent): the image-gen card binds `default` on its
402
+ // flowOutputBindings row (the producer-law declaration door);
403
+ // this row renames it to the flow-plane `image` the lift wires —
404
+ // kind-matched, one-to-one, so output_nodes follow the rename
405
+ // and `concept.image` resolves in the producer table.
406
+ outputs: { image: "image" },
621
407
  cardIo: { image: "image" },
622
408
  params: { model: "z-image", prompt: "$prompt" },
623
409
  }),
package/lib/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export { ManageGatewayService } from "./manageRegistry.js";
6
6
  export type { QueueConfig } from "./service.js";
7
7
  export * from "./vocab.js";
8
8
  export * from "./queue.js";
9
- export { bootSweep } from "./resurrect.js";
10
9
  export declare const name = "estate-queue";
11
10
  export declare const inject: string[];
12
11
  export declare function apply(ctx: Context, config?: QueueConfig): void;
package/lib/index.js CHANGED
@@ -11,10 +11,6 @@ export { RunsRuntimeService } from "./runsRegistry.js";
11
11
  export { ManageGatewayService } from "./manageRegistry.js";
12
12
  export * from "./vocab.js";
13
13
  export * from "./queue.js";
14
- // bootSweep twins (queue.ts core impl + resurrect.ts QueueRoots
15
- // wrapper): the explicit export wins over the stars — the wrapper
16
- // is the domain seam.
17
- export { bootSweep } from "./resurrect.js";
18
14
  import { FlowsSeatService } from "./flowsData.js";
19
15
  export const name = "estate-queue";
20
16
  export const inject = ["timer"];